æåã®äžæ©
è¬åº§ç¬¬2åç®ã§ãããä»åã¯
- â¡ïž HTMLã®è§£èª¬
- â¡ïž HTMLãã¡ã€ã«ãäœæãã
- â¡ïž æç« ãããŒãžã«è¡šç€ºããã
äžèš3ã€ãè¡ããŸãã
åœããã°ã®ã¢ãããŒã¯æå°æ§æ & ã¹ã¢ãŒã«ã¹ãããã§ããããããšã¯æ¥µéãŸã§ã·ã³ãã«ã«ããããŠç®æšã¯å°ããèšå®ããäžã€ãã€ã¯ãªã¢ããŠããã°HTMLãšCSSã®åŠç¿ã¯é£ãããããŸããã
HTMLãšCSS
ãããªèŸºå¢ã®ããã°ã«ãŸã§æ¥ãŠãã人ãªããæããHTMLãšCSSãšããåèªãããã¯èããããšããããšæããŸãããããŒã ããŒãžãäœãããã°ã©ãã³ã°èšèªãã¿ãããªèªèã¯ããã®ã§ã¯ãªãã§ããããã
ã§ã¯æãããŠãHTMLãšCSSãšã¯ãã£ããäœãè¡ããã®ãªã®ã§ããããã2ã€ã»ããã§èªãããããšãå€ããããªæ°ãããŸããããã£ããã©ããªæå³ãæã€ã®ã§ããããã
HTMLã¯HyperText Markup Languageã®ããšã§ãWebããŒãžã®ææžæ§é ãè¡šãããã®èšèªã§ãããææžæ§é ããšããèšèãåããã«ãããããããŸãããããã©ã®ãããªæç« ãæžãããŠããããã©ã®ãããªç»åã䜿ãããŠãããããèšè¿°ãããã®ã§ãã
CSSã¯Cascading Style Sheetsã®ããšã§ãWebããŒãžãè£ é£Ÿããããã®èšèªã§ããæåã®å€§ãããç»é¢ã®èæ¯è²ãã«ã¹ã¿ãã€ãºããã®ã¯CSSã®ä»äºã§ãã
ç§ã®ããŒããã©ãªãªãµã€ããäŸã«HTMLãšCSSã®éãã説æããŸãã以äžã¯ç§ã®ããŒããã©ãªãªãµã€ãã®ãã£ããã£ãŒã§ãã
ãã®Webãµã€ãã¯htmlãã¡ã€ã«ãšcssãã¡ã€ã«ãçµã¿åãããŠäœæããŠããŸããcssãã¡ã€ã«ãåé€ããhtmlãã¡ã€ã«ã ãã®ç¶æ ã«ãããšä»¥äžã®ããã«å€åããŸãã
ç·è²ã®èæ¯ãæåã®é 眮äœçœ®ãªã©ããªããªããäžææ³ãªãã ã®æåã®çŸ åã«ãªããŸããã
åè¿°ããããã«HTMLã¯ææžæ§é ãè¡šãããã®èšèªã§ããäžèšã®ããŒããã©ãªãªãµã€ãã®äŸã§èšããšããããŒãžã®ã¿ã€ãã«ã¯toriwatari Portfolio Web Siteã§ãããããŒãžã®æŽæ°æ¥ä»ã¯2021幎4æ10æ¥ã§ãããšãã£ãå 容ãèªè ãWebãã©ãŠã¶ãŒã«äŒããŠããŸãã
ãããŠãã®HTMLããã¶ã€ã³ããã®ãCSSã®ä»äºã§ããHTMLã¯WebããŒãžã®åå°ã§ãã骚çµã¿ã§ããHTMLãªãããŠCSSã¯ãããŸããã
ãã®ããã«HTMLãšCSSã¯æ確ã«åœ¹å²ãåãããŠããŸãããHTMLã¯ææžæ§é ãCSSã¯ææžæ§é ããã¶ã€ã³ããšæ¶ããŠãããŸãããã
htmlãã¡ã€ã«ãäœæãã
ããã§ã¯htmlãã¡ã€ã«ãäœæãã奜ããªæåãWebããŒãžã«è¡šç€ºãããŠã¿ãŸãããã
ãŸãã¯äœæ¥ãã©ã«ããŒãäœæããŸããä»»æã®å Žæã«ãworkspaceããšããååã®ãã©ã«ããŒãäœæããã®äžã«ãHTML&CSSããã©ã«ããŒãäœæããŸãããã®ãã©ã«ããŒã®äžã§äœæ¥ãè¡ãããšã«ããŸãããã
HTML&CSSãã©ã«ããŒã®äžã«index.html
ãã¡ã€ã«ãäœæããŸãããã¡ã€ã«åã®index
ã¯å€æŽå¯èœã§ãããæ
£ç¿çã«index
ãçšããããŠããŸãã®ã§ããåœåããããšããå§ãããŸããæ¡åŒµåã§ããhtml
ã¯å€æŽäžå¯ã§ãã
çŸåšã®ãã©ã«ããŒæ§æã¯ä»¥äžã®éãã«ãªã£ãŠããŸãã
VSCodeãã䜿ãã®æ¹ã«åããŠãVSCodeã§ã®index.html
ãã¡ã€ã«ãäœæããæé ãèšè¿°ããŠãããŸãã
VSCodeãç«ã¡äžãããã¡ã€ã«(F)
ãéãããã©ã«ããŒãéã
ãéžæããŸãã
ãããŠå
ã»ã©äœæããHTML&CSS
ãã©ã«ããŒãéžæãããã©ã«ããŒã®éžæ
ãã¯ãªãã¯ããŸãã
ããã§VSCodeã§ãã©ã«ããŒãéãããšãã§ããŸããã
ããã«ãHTML&CSS
ãã©ã«ããŒã®å°ãäžã§å³ã¯ãªãã¯ããæ°ãããã¡ã€ã«
ãã¯ãªãã¯ããŸãã
ç¶ããŠindex.html
ãšæã¡èŸŒãã°htmlãã¡ã€ã«ã®åºæ¥äžããã§ãã
htmlãã¡ã€ã«ã«å 容ãæžããã
ã§ã¯ãhtmlãã¡ã€ã«ã®å
容ãç·šéããŠãããŸããVSCodeãã䜿ãã®æ¹ã¯ã1è¡ç®ã«åè§ã®!
ãå
¥åããŠãã ããããããšä»¥äžã®ãããªãããã¢ããã衚瀺ããããšæããŸãã
ç¶ããŠTabããŒãæŒäžãããšãHTMLã®ã²ãªåãèªåçã«äœæãããŸãã䟿å©ã§ãã
äžæãåããªããVSCodeã䜿çšããŠããªããšããæ¹ã¯ã以äžã®ã³ãŒããã³ããŒããŠåŒµãä»ããŠãã ããã
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>
ç¶ããŠã9è¡ç®ã<body>
ãš</body>
ã®éã®è¡ã«ããŒãžã«è¡šç€ºããããæååãèšè¿°ããŸããããããæã¯ãHello Worldããšå
¥åãããšçžå Žã¯æ±ºãŸã£ãŠããŸãã®ã§ããããŠã¿ãŸãããã
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
Hello World
</body>
</html>
å ¥åãå®äºããããã¡ã€ã«ãäžæžãä¿åããŸãã
VSCodeãã䜿ãã®æ¹ã¯ãç»é¢äžéšã®ããã¡ã€ã«åãæžããŠããã¿ãã«æ³šç®ããŠãã ãããå€æŽãå ãããããæªä¿åã§ããå Žåã¯ãâãã衚瀺ããããã®ããšãæããŠãããŸãã
äžæžãä¿åããããã«ã¯ããã¡ã€ã«(F)
ãéããä¿å
ãéžæããŸããããã§htmlãã¡ã€ã«ãæŽæ°ãããŸãã
ãŸããä¿å
ã®å³åŽã«Ctrl+S
ãšæžããŠãããŸãããããã¯ããŒããŒãã·ã§ãŒãã«ããã®ããšã§ããã³ã³ãããŒã«
ããŒãæŒããªããs
ãæŒãããšã§äžæžãä¿åã§ããããšããããšãæããŠãããŠããŸãã
ãããã«ããããã¡ã€ã«ã®äžæžãä¿åãè¡ããå床ã¿ãã«æ³šç®ãããšããâãããÃãã«å€åããŠããŸãããããã£ãŠäžæžãä¿åãããããã©ããã確èªããããšãã§ããŸãã
ããã§htmlãã¡ã€ã«ãå®æã§ããå®æããhtmlãã¡ã€ã«ãããã«ã¯ãªãã¯ããŠå®è¡ããŠãã ããïŒãã®æãã¡ã¢åž³ãéããŠããŸãæ¹ã¯ãã®äžã«ãã段èœã確èªããŠãã ããïŒã
ãããã¯VSCodeã®Live Serverãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ããŠããæ¹ã¯ãå³äžã®Go Live
ãã¯ãªãã¯ããŠãã ããã
ãã©ãŠã¶ãŒãç«ã¡äžããã°ãå ¥åããä»»æã®æååã衚瀺ãããŠããããšã確èªã§ããã¯ãã§ãã
ããã§ãšãããããŸãðððããããç«æŽŸãªWebããŒãžã ãšèšããã§ããããWebãµãŒããŒãªã©çšæããªããŠããæäœéhtmlãã¡ã€ã«ãšãã©ãŠã¶ãŒãããã°ãããã£ãŠããŒãžã衚瀺ãããããšãå¯èœã§ãã
ã¡ã¢åž³ãéããŠããŸãæ¹ãž
index.html
ãããã«ã¯ãªãã¯ããæãWindowsã®ã¡ã¢åž³ãéããŠããŸãæ¹ããããããããŸããããã®æã¯ä»¥äžã®æé ã§æ¢å®ã®ã¢ããªã±ãŒã·ã§ã³ãå€æŽããŸãã
index.html
ã§å³ã¯ãªãã¯ããããã°ã©ã ããéã(H)
ã«ã«ãŒãœã«ãåãããããã«å¥ã®ããã°ã©ã ãéžæ(C)
ãã¯ãªãã¯ããŸãã
以äžã®ãããªç»é¢ãçŸããŸãã®ã§ãããã®ä»ã®ãªãã·ã§ã³ããããGoogle Chromeããæ¢ãéžæããŸãããã®æããåžžã«ãã®ã¢ããªã䜿ã£ãŠ.htmlãã¡ã€ã«ãéããã«ããã§ãã¯ãå ¥ããŠãããŸããç¶ããŠãOKããã¯ãªãã¯ããŸãã
ãããããšç¡äºChromeã§htmlãã¡ã€ã«ãéãããšæããŸãããŸããå床htmlãã¡ã€ã«ãèŠããšãå·ŠåŽã«ããã¢ã€ã³ã³ãChromeã®ã¢ã€ã³ã³ã«å€ãã£ãŠããã¯ãã§ãã
ãhtmlãã¡ã€ã«ã¯ããã©ã«ãã§Google Chromeã䜿ã£ãŠéãããšããèšå®ãè¡ããŸããïŒãããŸã§ã¯ã¡ã¢åž³ãããã©ã«ãã§ããïŒã®ã§ããã以éã¯ããã«ã¯ãªãã¯ããã ãã§htmlãã¡ã€ã«ãChromeã§éããŸãã
ããå°ãhtmlãã¡ã€ã«ãããã
ç¶ããŠãindex.html
ã®äžèº«ã確èªããªãããããå°ãå
容ãç·šéããããšæããŸãã
htmlãã¡ã€ã«ã«èŠçŽ ãããã€ãè¿œå ããŸããèŠçŽ ã«ã€ããŠã®è©³ããããšã¯åŸè¿°ããŸãããèŠåºããè¡šãh1èŠçŽ ãšã段èœãè¡šãpèŠçŽ ã2ã€è¿œå ããŸããå ·äœçã«ã¯ä»¥äžã®ããã«èšè¿°ããŸãã
...(ç¥)
<body>
<h1>Hello World</h1>
<p>ããã«ã¡ã¯ããã倩æ°ã§ããã</p>
<p>ä»æ¥ã¯ã飯ã§ãããããŸããã</p>
</body>
</html>
åŸè¿°ããã¿ã°ãšåŒã°ãã<h1>
ã<p>
ãªã©ã¯å
šãŠåè§ã§èšè¿°ããŠãã ãããã¿ã°ã«å²ãŸããŠãããHello Worldãããããã«ã¡ã¯ãïœããªã©ã¯èªç±ã§ããåè§ã§æžããŠãå
šè§ã§æžããŠãOKã§ãã
èšè¿°ãã§ããããã©ãŠã¶ãŒããªããŒãããŸãããããšä»¥äžã®ãããªè¡šç€ºã«å€ãã£ãŠããã¯ãã§ããç·šéãã3è¡ãç»é¢ã«å ãã£ãŠããããšãããããŸãã
æåã³ãŒãã«ã€ããŠ
ããã§æåã³ãŒãã«ã€ããŠè£è¶³ããŠãããŸãã
å®ã¯htmlãã¡ã€ã«ãä¿åããéãæåã³ãŒããªããã®ãæå®ããå¿
èŠããããŸããWebããŒãžãäœæããæã«ã¯ãæåã³ãŒãã¯UTF-8ãæå®ããŸãããããindex.html
ããã©ãŠã¶ãŒã§éããæ¥æ¬èªéšåãæååãããŠãããããªãæåã³ãŒããUTF-8ã«ãªã£ãŠããªãå¯èœæ§ããããŸãã以äžã®æé ãèžãã§ç¢ºèªããŠã¿ãŠãã ããã
VSCodeãã䜿ãã®æ¹ã¯ãç»é¢å³äžã«ãã¡ã€ã«ã®æåã³ãŒãã衚瀺ãããŠããéšåããããŸãããããã¯ãªãã¯ããŠãã ããïŒã«ãŒãœã«ãåããããšãããšã³ã³ãŒãã®éžæããšè¡šç€ºããããšæããŸãïŒã
ãããšãç»é¢äžéšã«ãããã¢ããã衚瀺ãããŸãã®ã§ãããšã³ã³ãŒãä»ãã§ä¿åããéžæããŸãã
ããã«ãå©çšã§ããæåã³ãŒãäžèŠ§ã衚瀺ãããã®ã§ãUTF-8ãéžæããŸãã
ããã§index.html
ã®æåã³ãŒããUTF-8
ã«å€æŽãããŸãããå床ç»é¢å³äžã確èªãããšãUTF-8
ãšè¡šç€ºãããŠããã¯ãã§ãã
ãããŠãããŒãžãåèªã¿èŸŒã¿ãããšãæååãããæ£åžžã«è¡šç€ºãããŠããã¯ãã§ãã
ã¿ã°ãšèŠçŽ
ããŠãæåã³ãŒããã話ãæ»ããŸããæ¹ããŠhtmlã³ãŒããèŠãŠã¿ããšã<h1>
ã<p>
ãªã©ã<
ãš>
ã§å²ãããæååã沢山ãããŸããããããããã¯ç»é¢ã«ã¯è¡šç€ºãããŠããŸããã
ãããã¿ã°ãšãããŸãã<h1>
ãªãh1ã¿ã°ã<p>
ãªãpã¿ã°ãªããŠåŒãã ãããŸãã
ãããŠããäžã€ã</h1>
ã</p>
ãªã©ãæåã®åã«/
ãã€ãããã®ããããŸãããããã¿ã°ã§ãã
å
ã«çŽ¹ä»ãã<h1>
ã<p>
ãéå§ã¿ã°ã/
ãã€ããŠãã</h1>
ã</p>
ãçµäºã¿ã°ãšãããŸãããããŠãããã2ã€ã§è¡šç€ºããããå
容ãå²ã¿ãŸãããããã²ãšãŸãšãŸããåè¿°ããèŠçŽ ã§ãã
HTMLã¯åºæ¬çã«éå§ã¿ã°ãå 容ãçµäºã¿ã°ã®3ç¹ã»ããã§æ§ç¯ããŠãããŸãã
ã§ã¯ããã§ãèŠçŽ ãšã¯äžäœäœããã©ããªåœ¹å²ãæã£ãŠããã®ããèããããšæããŸãã
htmlãã¡ã€ã«ãããèŠãŠã¿ããšã2è¡ç®ãšæçµè¡ã§<html>
ãš</html>
ã䜿ãããŠããããšãåãããŸãã
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hello World</h1>
<p>ããã«ã¡ã¯ããã倩æ°ã§ããã</p>
<p>ä»æ¥ã¯ã飯ã§ãããããŸããã</p>
</body>
</html>
ããã¯ãã2è¡ç®ããæçµè¡ãŸã§ãhtmlãã¡ã€ã«ã®å 容ãèšè¿°ããŠããŸãããšããããšããã©ãŠã¶ãŒã«äŒããŠããã®ã§ãããããŠãããhtmlèŠçŽ ãšãããŸãã
ããã«<head>
ãš</head>
ã®çµã¿åããããããŸãããããheadèŠçŽ ãšãããŸããããã¯ããããããããŸã§ãWebããŒãžã®æ
å ±ãèšè¿°ããŠããŸãããšããããšãäŒããŠããŸãã
<body>
ãš</body>
ã§ãããbodyèŠçŽ ã§ããããã©ãŠã¶ã«è¡šç€ºãããå
容ãèšè¿°ããŠããŸãããšããæå³ã§ããããŒãžã«è¡šç€ºããããæç« ãç»åã¯ããã®bodyèŠçŽ å
ã«å
¥ããå¿
èŠããããŸãã確ãã«ãbodyèŠçŽ ã«èšè¿°ãããŠããªããã®ãäŸãã°headèŠçŽ ã®äžèº«ã¯ãã©ãŠã¶ãŒã«ã¯æç»ãããŠããŸããããã
ãããŠãheadèŠçŽ ãšbodyèŠçŽ ãhtmlèŠçŽ ã®äžã«å ¥ã£ãŠããããšãåãããŸããïŒãã®ããã«èŠçŽ ã¯å ¥ãåã«ããããšãã§ããã®ã§ãã
以äžåæ§ã«ãh1èŠçŽ ã¯ææžã®èŠåºããè¡šããŸãïŒHeadlineã®hã§ãïŒãpèŠçŽ ã¯æ®µèœãè¡šããŸãïŒParagraphã®pã§ãïŒã
èŠçŽ ã¯ããããããããŸã§ã¯ããã®æå³ãæã£ãå¡ã§ããšãã©ãŠã¶ãŒã«äŒããããã®ãã®ã§ãããããŠãè€æ°ã®èŠçŽ ãçµã¿åããããå ¥ãåã«ãããããŠææžæ§é ãæ§ç¯ããŠããã®ã§ãã
HTMLã«ã¯100以äžã®ã¿ã°ãçšæãããŠããŠããã®ã»ãšãã©ãç¬èªã®æå³ãæã£ãŠããŸãããããŠç§ãã¡ãhtmlãã¡ã€ã«ãäœæããéã¯ãããã®æç« ã¯ã©ããªæå³ãæã€ãã ããïŒã©ã®ã¿ã°ã䜿ã£ãŠèŠçŽ ãäœãã°ãããã ããïŒããšãã颚ã«èããå¿ èŠããããŸãã
芪èŠçŽ ãšåèŠçŽ ãå«èŠçŽ
ãããŸã§èŠçŽ ã«ã€ããŠã®è§£èª¬ãããŠããŸããããããã§èŠçŽ å士ã®é¢ä¿ã«ã€ããŠã®èãæ¹ã解説ããŸãã
å
ã»ã©ãèŠçŽ ãå
¥ãåã«ã§ããããšè§£èª¬ããŸãããindex.html
ã§ã¯htmlèŠçŽ ã®äžã«headèŠçŽ ãšbodyèŠçŽ ãå
¥ã£ãŠããŸãããããã¯htmlèŠçŽ ã2ã€ã®èŠçŽ ãå
æ¬ããŠãããšèšããŸãã
ãã®æãhtmlèŠçŽ ã芪èŠçŽ ãheadèŠçŽ ãšbodyèŠçŽ ãåèŠçŽ ãšèšããŸãã
æ£ç¢ºã«ã¯ãã©ã®èŠçŽ ã®ç«å Žããèãããã«ãã£ãŠå€ãã£ãŠããã®ã§ããhtmlèŠçŽ ããèŠããšããheadèŠçŽ ãšbodyèŠçŽ ãåèŠçŽ ãããheadèŠçŽ ãšbodyèŠçŽ ããèŠããšããhtmlèŠçŽ ã芪èŠçŽ ããšãªããŸãã
ãŸããbodyèŠçŽ ã«ã¯h1èŠçŽ ãšpèŠçŽ ããããŸããããbodyèŠçŽ ããèŠãã°h1èŠçŽ ãšpèŠçŽ ã¯åèŠçŽ ã§ãããh1èŠçŽ ãšpèŠçŽ ããèŠãã°bodyèŠçŽ ã¯èŠªèŠçŽ ã§ãã
ããã«ãhtmlèŠçŽ ããèŠãh1èŠçŽ ãšpèŠçŽ ã¯å«èŠçŽ ãšèšããŸãïŒhtmlèŠçŽ ããèŠããšbodyèŠçŽ ãåèŠçŽ ã§ããã®åèŠçŽ ã§ããh1èŠçŽ ãšpèŠçŽ ã¯å«èŠçŽ ã«ãããïŒããŸããh1èŠçŽ ãšpèŠçŽ ããèŠãhtmlèŠçŽ ã芪èŠçŽ ãšèšããŸãïŒç¥ç¶æ¯èŠçŽ ãšã¯èšããªãã¿ããã§ããð ïŒã
ãããã¯èšèãå¹³æã§æèŠçã«ç解ã§ãé£ããèãæ¹ã§ã¯ãªããšæããŸãããã®èŠçŽ ã®èŠªåé¢ä¿ã¯CSSãèããééèŠã«ãªã£ãŠããŸãã
HTMLã¯æå³ãæã£ãæ§é ã§ãªããã°ãªããªã
ãã®èšäºã®ãã³ãºãªã³ã¯ä»¥äžã§çµããã§ãããç²ãæ§ã§ããã
èšäºã®æåŸã«ãææžæ§é ã®æå³ãããå°ãèããŠã¿ãããšæããŸããæãåããå¿ èŠã¯ãªãã®ã§ãããµãŒãããšãèšããªããæµãèªã¿ããŠãã ããã
CSSãå匷ããã°ããããŸãããã©ããªã¿ã°ã»èŠçŽ ã䜿ãããCSSãé§äœ¿ããã°ç¶ºéºãªWebãµã€ããäœæããããšã¯å¯èœã§ãã
å®éã2000幎代ååã¯ããŒãã«ã¬ã€ã¢ãŠããªããã®ãHTMLã³ãŒãã£ã³ã°ã®äž»æµã ã£ãããã§ããHTMLã«ã¯tableèŠçŽ ãšããè¡šãè¡šçŸããããã®èŠçŽ ããããŠtableã¿ã°ãååšããŠããããã®tableã¿ã°ãäžå¿ã«Webãµã€ããæ§ç¯ããŠããã®ã§ãã
å®éã«ããŒãã«ã¬ã€ã¢ãŠããšãããã®ãã©ããªãã®ãªã®ãã説æããŸãããŸãã¯ãtableèŠçŽ ãæ£ããçŸä»£é¢šã«äœ¿çšããäŸãèŠãŠã¿ãŸãã
äžèšã³ãŒããåç §ãã ãããtableèŠçŽ ãããŒãã«å šäœãè¡šããŸããthã¿ã°ãšããã®ããtable headerãã®ç¥ã§ããŒãã«ã®èŠåºããè¡šããtdã¿ã°ã¯ãtable dataãã®ç¥ã§å 容ãè¡šããŸãã
èŠåºããè¡šãthèŠçŽ ã§ãNoããNameããçšæããããŒã¿ãè¡šãtdèŠçŽ ã§äººã®ãã³ããŒãšååã衚瀺ãããŠããŸããã¿ã°ã®æã€æå³ã«æ²¿ã£ãŠããŒãã«ãçµãã§ããã®ãåãããšæããŸãã
<body>
<table border="1">
<tr>
<th>No</th> <!--èŠåºã-->
<th>name</th> <!--èŠåºã-->
</tr>
<tr>
<td>1</td> <!--ããŒã¿-->
<td>ç°äž 倪é</td> <!--ããŒã¿-->
</tr>
<tr>
<td>2</td> <!--ããŒã¿-->
<td>å±±ç° æ¬¡é</td> <!--ããŒã¿-->
</tr>
<tr>
<td>3</td> <!--ããŒã¿-->
<td>éŽæš äžé</td> <!--ããŒã¿-->
</tr>
</table>
</body>
ããŒãã«ã¬ã€ã¢ãŠãã¯ããããã®ã¿ã°ã䜿çšããŠWebãµã€ãå šäœãã¬ã€ã¢ãŠãããææ³ã§ãã
<table border="0" cellspacing="0" cellpadding="0" width="960">
<tr>
<td colspan="2" width="100%" height="50" valign="top">
<font size=+10>toriwatariã®ããŒã ããŒãžãžãããã!</font>
</td>
</tr>
<tr>
<td width="200" align="center" valign="top">
<br>
<br>
<br>
<font color="blue">ãµã€ãããŒ</font><br>
ãµã€ãããŒ<br>
ãµã€ãããŒ<br>
<br>
<br>
<br>
</td>
<td width="560" valign="top">
<br>
<br>
<br>
ã¡ã€ã³ã³ã³ãã³ã<br>
ã¡ã€ã³ã³ã³ãã³ã<br>
ã¡ã€ã³ã³ã³ãã³ã<br>
</td>
</tr>
<tr>
<td colspan="2" height="100" bgcolor="#aaaaaa">
ããã¿ãŒ
</td>
</tr>
</table>
ããŒãã«ã¬ã€ã¢ãŠãã§ã¯ãããŒãã«ã§ã¯ãªãã«ãé¢ãããtableã¿ã°ãªã©ã䜿çšããŠWebãµã€ãå šäœãã¬ã€ã¢ãŠãããŠããã®ã§ãã
ãŸã HTMLã®ã¿ã°ã«æå³ãæããããšããèãããªããããã«äŒŽãHTMLã®ã¿ã°ãçš®é¡ãå°ãªãã£ãããšããŸããCSSã®æ©èœãä»ã»ã©å å®ããŠãããtableèŠçŽ ãå©çšããã®ãäžçªã¬ã€ã¢ãŠãããããã£ãããªã©ãšããèæ¯ããã£ãã®ã ãšæããŸãïŒãã®èŸºããç§ã®æšå¯ã§ãïŒã
ãŸããäžèšã®ããŒãã«ã¬ã€ã¢ãŠãã§ã¯CSSã¯çšããŠããŸãããã¿ã°ã®äžã«æžããŠãããwidth=âããâããcolor=âããâããªã©ãšèšã£ãå±æ§ã§ãã¶ã€ã³ãè¡ãããšããããŸãããããã¯ã€ãŸãHTMLãšCSSã®åœ¹å²ãåé¢ãããŠããªããšããäºã«ãªããŸãã
ãããçŸä»£ã®HTMLã«ã¯ããããŸã§è¿°ã¹ãŠãããããªãã¿ã°ã«æå³ãæãããããšããèãæ¹ããããŸãããã®èãæ¹ãã»ãã³ãã£ãã¯HTMLãªã©ãšèšã£ããããŸãã
çµå±ãææžæ§é ã£ãŠïŒ
話ãæ»ããŸããããææžæ§é ããšã¯ãããhtmlãã¡ã€ã«ãã©ã®ãããªæå³ãæã£ãæç« ã®éãŸãã§æ§æãããŠãããã瀺ããã®ã§ãããããŠãé©åãªã¿ã°ãçµã¿åãããŠhtmlãã¡ã€ã«ãäœæããããšãææžæ§é ãããè¯ãããããšã«ç¹ãããšèšããŸãã
次ã¯CSSã§ãã¶ã€ã³
ä»åã®èšäºã¯ããã§çµããã§ãããµã³ãã«ã§htmlãã¡ã€ã«ãäœæããã ãã§ãããHTMLãšCSSã®åœ¹å²ã®åé¢ãå ããŠææžæ§é ã®æå³ã«ã€ããŠèª¬æããŠãããšæå€ãšé·ããªã£ãŠããŸããŸããã
次ã¯CSSã䜿çšããŠWebããŒãžãã¹ã¿ã€ãªã³ã°ããŠãããããšæããŸããä»åäœæããindex.html
ãåŒãç¶ãå©çšããŸãã®ã§ãåé€ããæ®ããŠãããŠãã ããã
æŽæ°å±¥æŽ
- 2022幎7æ29æ¥ : 誀åè±åãä¿®æ£ã
åè
ããã¥ã¡ã³ããš Web ãµã€ãã®æ§é | MDN
Semantics (ã»ãã³ãã£ã¯ã¹) | MDN
ã¢ãã³ãªHTMLã®æžãæ¹ ãSemantic ãæ¢ãŸããªãã | Atlas Developers Blog
ææžæ§é èŠçŽ ã䜿ã£ãŠHTMLãèšè¿°ããæ¹æ³ïœããã¡ãWEB
è¥ãäžä»£ãç¥ããªã2000幎代ã®HTMLã³ãŒãã£ã³ã°ã®å°ç - ICS MEDIA
HTML5ã®ã»ãã³ãã£ãã¯èŠçŽ ã¯æ¬åœã«SEO ã«å¹æãããã®ïŒ