HTML
bã¿ã°ã¯ãå²ãã æååã太åã«ããã<b> - 太å - ã¨ã»ã»ã®WWWå ¥é æåã®è¡¨ç¤ºNormalã¨ããæååã®å¾ã®Boldã®ã¨ããã ãbã¿ã°ã§å²ãã¨ã Boldã ã太åã«ãªã£ã¦ãããBoldã ã太åã«ãªã£ã¦ãããSample/html/b/b/src/b at master · bg1bgst333/Sample · GitHub</b>
enctypeå±æ§ãæå®ããªãå ´åã¯ãããã©ã«ãã§"application/x-www-form-urlencoded"ã«ãªããHTMLã¿ã°/ãã©ã¼ã ã¿ã°/éä¿¡æã®ãã¼ã¿å½¢å¼ãæå®ãã - TAG indexform.htmlã§ã <html> <head> <title>form#enctype#application/x-www-form-urlencoded</title> </head> <body> <script type="text/javascript"> <!-- // --> </script> </body></html>
multipart/form-dataã¯ããã®åã®éããè¤æ°ã®ãã¼ãã«åãããã¦ããã®ã§ããã¡ã¤ã«ä»¥å¤ã«ããã¹ããªã©ã®ãã¼ã¿ãéããã<form> - ãã©ã¼ã - ã¨ã»ã»ã®WWWå ¥éform.htmlã§ãåå¾ã«ããã¹ãå ¥åãã©ã¼ã ãæãã¨ã ãããªããããã¦æ¢ã«ãã¡ã¤ã«ãé¸æãã¦ããã</form>â¦
ãã¡ã¤ã«ãéä¿¡ããå ´åã¯ãenctypeå±æ§ã§"multipart/form-data"ãæå®ããªãã¨ãããªããHTMLã¿ã°/ãã©ã¼ã ã¿ã°/éä¿¡æã®ãã¼ã¿å½¢å¼ãæå®ãã - TAG indexform.htmlã§ãã¨ãã¦ã æåã¯ãã®ç¶æ æåã¯ãã®ç¶æ ã "ãã¡ã¤ã«ãé¸æ"ãã¿ã³ãã¯ãªãã¯ãã åâ¦
inputã¿ã°ã®typeå±æ§ã«"file"ãæå®ããã¨ããã¡ã¤ã«ãé¸æã§ããã<input> - ãã©ã¼ã é¨åï¼å ¥åæ¬ - ã¨ã»ã»ã®WWWå ¥éinput.htmlã§ããã®ããã«"type=file"ã¨"type=submit"ãçµã¿åãããã¨ããã¡ã¤ã«ãã¢ãããã¼ãã§ãããããã ããã¡ã¤ã«ãé¸æããæ¼ãã¨ããâ¦
methodå±æ§ãPOSTã ã¨ãURLã«ã¯ã¨ãªæååã¯ä»ããããªã¯ã¨ã¹ãããã£ã«ã¯ã¨ãªæååãæ¸ãè¾¼ã¾ããã<form> - ãã©ã¼ã - ã¨ã»ã»ã®WWWå ¥éform.htmlã§ãã¨ããã¨ã æåãã®ç¶æ ã§submitãæ¼ãã¨æåãã®ç¶æ ã§submitãæ¼ãã¨ã query_stringã®ã»ãã空ãªã®ã«å¯¾ã</form>â¦
methodå±æ§ã§GETã®æã«ã¯ãinputã¿ã°ã®nameå±æ§ããã¼ãvalueå±æ§ãå¤ã¨ãªããã¯ã¨ãªæååã¨ãã¦æ¸¡ãããã<form> - ãã©ã¼ã - ã¨ã»ã»ã®WWWå ¥éform.htmlã§ãããæ¸ãã action.cã¯ãã¯ã¨ãªæååã¯ç°å¢å¤æ°ã§åå¾ããªã¯ã¨ã¹ãããã£ã¯æ¨æºå ¥åã§èªã¿è¾¼ãã ãã®</form>â¦
methodå±æ§ã§ãªã¯ã¨ã¹ãã¡ã½ãããå¤ããããã<form> - ãã©ã¼ã - ã¨ã»ã»ã®WWWå ¥éform.htmlã§ã <html> <head> <title>form#method</title> </head> <body> <script type="text/javascript"> <!-- // --> </script> <form action="/cgi-bin/action.cgi"> <input type="submit" value="submit"> </form> </body> </html> ä½ãæå®ãã¦ãªãã¨ã submitãã¿ã³ãæ¼ããæsubmitâ¦</form>
ååCGIã®URLã¨æ¸ãã¦ãã¾ã£ãããactionå±æ§ã¯ãæ£ç¢ºã«ã¯ãªã¯ã¨ã¹ãã®éãå ãã¼ã¸ã®URLãªã®ã§ãPHPã§ãå¯è½ã<form> - ãã©ã¼ã - ã¨ã»ã»ã®WWWå ¥éform.htmlãããããã¦ãaction.phpããããããã¨ã ãã®ç¶æ ã§submitãæ¼ãã¨ãã®ç¶æ ã§submitãæ¼ãã¨ã actio</form>â¦
inputã¿ã°ã®typeå±æ§ã§"submit"ã«ããå ´åãformã¿ã°ã§å²ã¿ãactionå±æ§ã«CGIã®URLãæå®ãããã¨ã§ãCGIãå®è¡ã§ããã<form> - ãã©ã¼ã - ã¨ã»ã»ã®WWWå ¥éform.htmlã¯ãformã®actionã«å®è¡ããCGIã®URLãæå®ã ãã®action.cgiã¯ãããããå 容ã æåããã ã</form>â¦
typeå±æ§ã§"submit"ãé¸ãã å ´åã¯ããå®è¡ãã¿ã³ãã¨ããç¹æ®ãªãã¿ã³ã«ãªãã<input> - ãã©ã¼ã é¨åï¼å ¥åæ¬ - ã¨ã»ã»ã®WWWå ¥éã¨ã¯ãã£ã¦ãããã®ãã¿ã³ã ãã§ã¯ã ãã®ç¶æ ããsubmitãæ¼ãã¦ããã®ç¶æ ããsubmitãæ¼ãã¦ãã ä½ãèµ·ããªãä½ãèµ·ããªããSampâ¦
typeå±æ§ã§"button"ãé¸ãã å ´åã¯ããã¿ã³ã«ãªãã ãã®æãvalueã¯ãã¿ã³ã®ã©ãã«ããã¹ãã«ãªãã<input> - ãã©ã¼ã é¨åï¼å ¥åæ¬ - ã¨ã»ã»ã®WWWå ¥éON/OFFãåãæ¿ãããã°ã«ãã¿ã³ãä½ã£ã¦ã¿ããããããã¨ã æåãã®ç¶æ æåãã®"OFF"ã®ç¶æ ã ãã¿ã³ãæ¼ãâ¦
typeå±æ§ã§"text"ãé¸ãã å ´åã¯ãããã¹ãå ¥åãåºæ¥ãã<input> - ãã©ã¼ã é¨åï¼å ¥åæ¬ - ã¨ã»ã»ã®WWWå ¥éJavaScriptã§valueã®åå¾ã¯ãã£ããã©ãvalueã®ä»£å ¥ã¯ãã¦ãªããããã¦ã¿ãã <html> <head> <title>input#type#text</title> </head> <body> <script type="text/javascript"> </body></html>
nameå±æ§ã¯idå±æ§ã¨éããéè¤ãã¦ã大ä¸å¤«ãname=name - ååæå® - ã¨ã»ã»ã®WWWå ¥éidãnameã«ãã¦ã¿ããããããã¨ã ãããããã¼ãã¼ã«ã§ãè¦åã¯åºãªããããããã¼ãã¼ã«ã§ãè¦åã¯åºãªããSample/html/input/name/src/input at master · bg1bgst333/â¦
idå±æ§ã¯ä¸æã«èå¥ããã¨æ¸ããããããç°ãªãã¿ã°ã§idãåããªãã¨ã©ã¼ã«ãªãã®ãã試ãã¦ã¿ããid=id - IDã®å²ãå½ã¦ - ã¨ã»ã»ã®WWWå ¥é2ã¤ã®inputã¿ã°ã§idãåãã«ãããããã§ã¢ã¯ã»ã¹ããã¨ã æ®éã«è¡¨ç¤ºãããæ®éã«è¡¨ç¤ºãããã button1ãæ¼ãã¦ããâ¦
inputã¿ã°ã§typeãbuttonã«ããå ´åãonclickã§JavaScriptã®1è¡ã¹ã¯ãªãããé¢æ°ãæå®ããã¨ããããã¯ãªãã¯æã«å®è¡ãããã°ãã¼ãã«å±æ§ - ã¨ã»ã»ã®WWWå ¥éã°ãã¼ãã«å±æ§ãªã®ã§ãinputã®typeãbuttonã§ãªãã¦ãåºæ¥ãå ´åãããããã¾ãinputã®typeãbuâ¦
valueå±æ§ã§åæå¤ãè¨å®ã§ããã<input> - ãã©ã¼ã é¨åï¼å ¥åæ¬ - ã¨ã»ã»ã®WWWå ¥éãã®ããã«valueã«"abcde"ãæå®ããã°ã åãããã»ããããã¦ãåãããã»ããããã¦ããSample/html/input/value/src/input at master · bg1bgst333/Sample · GitHub
typeå±æ§ã§å ¥åã®ç¨®é¡ãå¤ããããã<input> - ãã©ã¼ã é¨åï¼å ¥åæ¬ - ã¨ã»ã»ã®WWWå ¥étypeãbuttonã«ããã°ããã¿ã³å½¢å¼ã«ãªãã ãã¿ã³ãå ¥åã¨è¨ãã°å ¥åã ãã¨ããã¨ã ã¨ãã£ããã³ã³ããã¼ã«ã®ä¸ã«ãã¿ã³ã表示ããããã¨ãã£ããã³ã³ããã¼ã«ã®ä¸ã«ãã¿ã³ãâ¦
å ¥åãã©ã¼ã ã«ã¯inputã¿ã°ã使ãã<input> - ãã©ã¼ã é¨åï¼å ¥åæ¬ - ã¨ã»ã»ã®WWWå ¥éã¨ãã£ããã³ã³ããã¼ã«å½¢å¼ã«ãããªããtypeã«ã¯textãæå®ã ããã ãã§ã ã¨ãã£ããã³ã³ããã¼ã«ã表示ããã¦ã¨ãã£ããã³ã³ããã¼ã«ã表示ããã¦ã æååãå ¥åã§ããæåâ¦
ããã¾ã§ãã³ã³ãã³ãã®ã¡ãã¥ã¼ã¨ããulã¿ã°ã¨liã¿ã°ã§ãã£ã¦ãããã©ããã¨ãã¨menuã¿ã°ã¨ããã®ããããããã<menu> - ã¡ãã¥ã¼ - ã¨ã»ã»ã®WWWå ¥éulãããªãã¦menuã§liãå²ããããããã è¦ãç®ã¯å¤ãã£ã¦ãªãããã«è¦ããè¦ãç®ã¯å¤ãã£ã¦ãªãããã«è¦ãã</menu>â¦
ããã¹ãã«è²ãä»ãããããbody#textã ã¨å ¨ä½çã«åãè²ã«ãªãã®ã§ãdivãã¨ã«ç´°ããªã¹ã¿ã¤ã«æå®ãããã<div> - ãããã¯è¦ç´ - ã¨ã»ã»ã®WWWå ¥éã¹ã¿ã¤ã«æå®ã¯ããããæ¹æ³ããããã©ãdivã¿ã°ãªã©ã®ã¿ã°ã«ç´æ¥æ¸ãå ´åã¯styleå±æ§ãdivãã¨ã«style="color:ï½</div>â¦
alignå±æ§ã§ãããã¯ãå³ã«å¯ãããä¸å¤®ã«å¯ãããå·¦ã«å¯ãããããã<div> - ãããã¯è¦ç´ - ã¨ã»ã»ã®WWWå ¥édiv.htmlããããæ¸ãã 1ã¤ç®ã¯å³å¯ãã2ã¤ç®ã¯ä¸å¤®å¯ãã3ã¤ç®ã¯å·¦å¯ãã ãããªããããªããSample/div.html at master · bg1bgst333/Sample · GitH</div>â¦
ç®æ¡æ¸ãã®ã¢ã¤ãã ã¯liã¿ã°ã§å²ãã<li> - ãªã¹ãã¢ã¤ãã - ã¨ã»ã»ã®WWWå ¥éååã®ulã®ã¢ã¤ãã ã3ã¤ã«å¢ãããã¨æ¸ãã¨ã ã¢ã¤ãã ã3ã¤ã«ãªããã¢ã¤ãã ã3ã¤ã«ãªããSample/html/li/li/src/li at master · bg1bgst333/Sample · GitHub</li>
ulã¿ã°ã¯é åºã®ç¡ããªã¹ãã表ç¾ããã<ul> - é åºç¡ããªã¹ã - ã¨ã»ã»ã®WWWå ¥éä¸é»ç¹ã¿ãããªã®ã§ç®æ¡æ¸ãã®å½¢å¼ãã¨æ¸ãã¨ã ãããªããããªããSample/html/ul/ul/src/ul at master · bg1bgst333/Sample · GitHub</ul>
metaã¿ã°ã¯ããããããªã¡ã¿æ å ±ãä»å ããã<meta> - ã¡ã¿ - ã¨ã»ã»ã®WWWå ¥éããè¦ãããã®ã¯ãContent-typeã¨charsetã®é¨åã <html> <head> <title>meta</title> </head> <body> ããããã </body> </html> ã¾ãããããã UTF-8ã§ä¿åUTF-8ã§ä¿åã å½ç¶ãæååãã¯ããã表示ã§ãããå½ç¶ãæååãã¯ããã表示ã§</meta>â¦
divã¿ã°ã¯ãæç« ããããã¯è¦ç´ ã¨ãã¦ã¾ã¨ããã<div> - ãããã¯è¦ç´ - ã¨ã»ã»ã®WWWå ¥é <DIV>^OÃ<P>^Opã¿ã°ã¨ã®éããã¡ãã£ã¨é£ãããããæ¸ããæã 1è¡å空ããªã表é¢çã«ã¯ã1è¡å空ããªããããã®éããããªãã ä»ã«ãéãã¯ããããããã®ã ãããªãã¨ããããã«</p></div></div>â¦
pã¿ã°ã¯æ®µè½ã表ãã<p> - æ®µè½ - ã¨ã»ã»ã®WWWå ¥é1ã¤ã®<p>ï½</p>ã§1è¡ã表ããããªæããã¨ããã¨ã ãããªããããªãã <p>ï½</p>ã¨<p>ï½</p>ã®éã¯1è¡å空ãã¦ããã åºæ¬çã«æ¹è¡ã ããªã空ç½ã«ç½®ãæããã®ã§ã表示æã«ã¯æ¹è¡ãããã«åè§1æå空ãã (ãã ã1è¡ã§è¡¨ç¤ºããããª</p>â¦
imgã¿ã°ã§ç»åã表示ããã<img> - ã¤ã¡ã¼ã¸ - ã¨ã»ã»ã®WWWå ¥éãããããç»åimage1.pngãç¨æãã¦ããã¦ãããæ¸ãã¦ã $ vi img.html $ cat img.html <html> <head> <title>img</title> </head> <body> <img src="image1.png" /> </body> </html> $ ls image1.png img.html $ cp img.html image1.png /var/www/html/ $/var/www/htmlã«é ç½®ã 表â¦
aã¿ã°ã§ãã¤ãã¼ãªã³ã¯ãå¼µãã<a> - ãªã³ã¯ãã - ã¨ã»ã»ã®WWWå ¥éhrefå±æ§ã«URLãã¿ã°ã®ä¸ã®å¤ã¯ãªã³ã¯ã¨ãªãããã¹ããããæ¸ãã¨ã ãã®ããã«è¡¨ç¤ºããã¦ããã¦ã¹ãªã¼ãã¼ã§ãªã³ã¯å ããããããã®ããã«è¡¨ç¤ºããã¦ããã¦ã¹ãªã¼ãã¼ã§ãªã³ã¯å ããããã ãª</a>â¦
ã¯ãæ£å¼ã«ã¯HTMLã¿ã°ã§ã¯ãªããããã ããã¥ã¡ã³ãã¿ã¤ã宣è¨ã¨ãããã®ã§ãHTMLã®ãã¼ã¸ã§ã³ã表ãã¦ããã - ããã¥ã¡ã³ãã¿ã¤ã - ã¨ã»ã»ã®WWWå ¥éã¾ãã $ vi DOCTYPE.html $ cat DOCTYPE.html <html> <head> <title>!DOCTYPE</title> </head> <body> !DOCTYPE </body> </html> $ ä½ãä»ããªãã IE11ã®éçºè â¦