Living Standard â Last Updated 1 September 2026
Introduction_to_HTML/Document_and_website_structure#HTML_for_structuring_content
Support in all current engines.
bodyèŠçŽ Support in all current engines.
Support in all current engines.
htmlèŠçŽ ã®2çªç®ã®èŠçŽ ãšããŠãbodyèŠçŽ å
ã®æåã®ãã®ãASCIIç©ºçœæåãŸãã¯ã³ã¡ã³ãã§ãªãå ŽåãbodyèŠçŽ ã®éå§ã¿ã°ã¯çç¥ããããšãã§ããããã ããbodyèŠçŽ å
ã®æåã®ãã®ãmetaãnoscriptãlinkãscriptãstyleãŸãã¯templateèŠçŽ ã§ããå Žåãé€ããbodyèŠçŽ ã®çŽåŸãã³ã¡ã³ãã§ãªãå ŽåãbodyèŠçŽ ã®çµäºã¿ã°ã¯çç¥ããŠããããšãã§ãããonafterprintonbeforeprintonbeforeunloadonhashchangeonlanguagechangeonmessageonmessageerroronofflineononlineonpageswaponpagehideonpagerevealonpageshowonpopstateonrejectionhandledonstorageonunhandledrejectiononunload[Exposed =Window ]
interface HTMLBodyElement : HTMLElement {
[HTMLConstructor ] constructor ();
// also has obsolete members
};
HTMLBodyElement includes WindowEventHandlers ;
bodyèŠçŽ ã¯ãææžã®ã³ã³ãã³ãã衚ãã
é©åææžã§ã¯ã1ã€ã®bodyèŠçŽ ã®ã¿ãååšãããdocument.body IDL屿§ã¯ãææžã®bodyèŠçŽ ã«ç°¡åã«ã¢ã¯ã»ã¹ã§ããã¹ã¯ãªãããæäŸããã
äžéšã®DOMæäœïŒããšãã°ããã©ãã°ã¢ã³ãããããã¢ãã«ã®äžéšïŒã¯ã"bodyèŠçŽ "ãšããçšèªã§å®çŸ©ããããããã¯çšèªã®å®çŸ©ã«åŸã£ãŠãDOMã«ãããç¹å®ã®èŠçŽ ãåç
§ããä»»æã®bodyèŠçŽ ãåç
§ããªãã
bodyèŠçŽ ã¯ãWindowãªããžã§ã¯ãã®ã€ãã³ããã³ãã©ãŒã®æ°ãã€ãã³ããã³ãã©ãŒã³ã³ãã³ã屿§ãšããŠå
¬éããããŸãããããã®ã€ãã³ããã³ãã©ãŒIDL屿§ãåæ ããã
The event handlers of the Window object named by the Window-reflecting body element event handler set, exposed on the body element, replace the generic event handlers with the same names normally supported by HTML elements.
ãããã£ãŠãããšãã°ãDocumentã®bodyèŠçŽ ã®åã§éåºãããããåºãerrorã€ãã³ãã¯ãèŠçŽ ã®onerrorã€ãã³ããã³ãã©ãŒã³ã³ãã³ã屿§ãæåã«ãããããããããã«ãŒãhtmlèŠçŽ ã®ã€ãã³ããã³ãã©ãŒã³ã³ãã³ã屿§ããã®åŸã«bodyèŠçŽ ã®onerrorã€ãã³ããã³ãã©ãŒã³ã³ãã³ã屿§ãããããã ãããããã¯ãã€ãã³ããã¿ãŒã²ãããããbodyãhtmlãDocumentãWindowãããã³bodyã§ãªãWindowãèŠãŠããbodyäžã®ã€ãã³ããã³ãã©ãŒãžããåºãããã§ãããããããã€ãã³ããbodyãéããŠããåºãããã€ã€ãã³ããWindowãªããžã§ã¯ãã«å°éããªãå ŽåãaddEventListener()ã䜿çšããbodyã«å±ããéåžžã®ã€ãã³ããªã¹ããŒãå®è¡ãããã ããã
ãã®ããŒãžã¯ããŠãŒã¶ãŒããªã³ã©ã€ã³ã§ãããã©ããã衚瀺ããã€ã³ãžã±ãŒã¿ãŒãæŽæ°ããïŒ
<!DOCTYPE HTML>
< html lang = "en" >
< head >
< title > Online or offline?</ title >
< script >
function update( online) {
document. getElementById( 'status' ). textContent =
online ? 'Online' : 'Offline' ;
}
</ script >
</ head >
< body ononline = "update(true)"
onoffline = "update(false)"
onload = "update(navigator.onLine)" >
< p > You are: < span id = "status" > (Unknown)</ span ></ p >
</ body >
</ html >
articleèŠçŽ Support in all current engines.
HTMLElementã䜿çšãããarticleèŠçŽ ã¯ãææžãããŒãžãã¢ããªã±ãŒã·ã§ã³ããŸãã¯ãµã€ãã®äžã§å®å
šãããã¯èªå·±å®çµããæ§é ã衚ããããã¯ååãšããŠãããšãã°ã·ã³ãžã±ãŒã·ã§ã³ãªã©ãç¬ç«ããŠé
åžå¯èœãªãŸãã¯åå©çšå¯èœãªãã®ã§ãããããã¯ããã©ãŒã©ã ã®æçš¿ãéèªãæ°èã®èšäºãããã°ã®ãšã³ããªãŒããŠãŒã¶ãŒã®æçš¿ã³ã¡ã³ãã察話çãªãŠã£ãžã§ãããã¬ãžã§ããããŸãã¯ã³ã³ãã³ãã®ä»»æã®ç¬ç«ããé
ç®ã§ãããããããªãã
articleèŠçŽ ããã¹ããããå Žåãååçã«å
åŽã®articleèŠçŽ ãå€åŽã®èšäºã®å
容ã«é¢é£ããèšäºã衚ããããšãã°ããŠãŒã¶ãŒã®æçš¿ã³ã¡ã³ããåãä»ãããµã€ãã®ããã°ã®ãšã³ããªãŒã¯ãããã°ã®ãšã³ããªãŒã®articleèŠçŽ å
ã«ãã¹ããããarticleèŠçŽ ãšããŠã³ã¡ã³ãã衚ãããšãã§ããã
articleèŠçŽ ã«é¢é£ä»ããããŠããèè
ã®æ
å ±ïŒaddressèŠçŽ ãåç
§ã®ããšïŒã¯ããã¹ããããarticleèŠçŽ ã«ã¯é©çšãããªãã
ã·ã³ãžã±ãŒã·ã§ã³ã§åé
åžãããã³ã³ãã³ããšãšãã«æç¢ºã«äœ¿çšãããå ŽåãarticleèŠçŽ ã¯ãAtomã§ã®entryèŠçŽ ã®ç®çãšé¡äŒŒæ§ãããã[ATOM]
schema.orgãã€ã¯ãèªåœã¯ãCreativeWorkãµãã¿ã€ãã®ããããã䜿çšããŠãarticleèŠçŽ ã®å
¬è¡šæ¥ãæäŸããããã«äœ¿çšã§ããã
ããŒãžã®äž»èŠã³ã³ãã³ãïŒããªãã¡ãããã¿ãŒãããããŒãããã²ãŒã·ã§ã³ãããã¯ãããã³ãµã€ãããŒãé€ããã®ïŒããã¹ãŠã®1ã€ã®èªå·±å®çµåã®çµæç©ã§ããå Žåããã®ã³ã³ãã³ãã¯articleã§ããŒã¯ããŠããããããã®å Žåã«æè¡çã«åé·ã§ããïŒããŒãžãåäžã®çµæç©ã§ããããšã¯èªæã§ããã®ã§ããã®ãŸãŸåäžã®ææžã§ããïŒã
ãã®äŸã¯ãschema.org泚éããã€articleèŠçŽ ã䜿çšããããã°ã®æçš¿ã瀺ãã
< article itemscope itemtype = "http://schema.org/BlogPosting" >
< header >
< h2 itemprop = "headline" > The Very First Rule of Life</ h2 >
< p >< time itemprop = "datePublished" datetime = "2009-10-09" > 3 days ago</ time ></ p >
< link itemprop = "url" href = "?comments=0" >
</ header >
< p > If there's a microphone anywhere near you, assume it's hot and
sending whatever you're saying to the world. Seriously.</ p >
< p > ...</ p >
< footer >
< a itemprop = "discussionUrl" href = "?comments=1" > Show comments...</ a >
</ footer >
</ article >
ããã¯åãããã°ã®æçš¿ã§ããããã³ã¡ã³ãã®äžéšã瀺ãïŒ
< article itemscope itemtype = "http://schema.org/BlogPosting" >
< header >
< h2 itemprop = "headline" > The Very First Rule of Life</ h2 >
< p >< time itemprop = "datePublished" datetime = "2009-10-09" > 3 days ago</ time ></ p >
< link itemprop = "url" href = "?comments=0" >
</ header >
< p > If there's a microphone anywhere near you, assume it's hot and
sending whatever you're saying to the world. Seriously.</ p >
< p > ...</ p >
< section >
< h1 > Comments</ h1 >
< article itemprop = "comment" itemscope itemtype = "http://schema.org/Comment" id = "c1" >
< link itemprop = "url" href = "#c1" >
< footer >
< p > Posted by: < span itemprop = "creator" itemscope itemtype = "http://schema.org/Person" >
< span itemprop = "name" > George Washington</ span >
</ span ></ p >
< p >< time itemprop = "dateCreated" datetime = "2009-10-10" > 15 minutes ago</ time ></ p >
</ footer >
< p > Yeah! Especially when talking about your lobbyist friends!</ p >
</ article >
< article itemprop = "comment" itemscope itemtype = "http://schema.org/Comment" id = "c2" >
< link itemprop = "url" href = "#c2" >
< footer >
< p > Posted by: < span itemprop = "creator" itemscope itemtype = "http://schema.org/Person" >
< span itemprop = "name" > George Hammond</ span >
</ span ></ p >
< p >< time itemprop = "dateCreated" datetime = "2009-10-10" > 5 minutes ago</ time ></ p >
</ footer >
< p > Hey, you have the same first name as me.</ p >
</ article >
</ section >
</ article >
ïŒããšãã°ã誰ããã€æžããããªã©ïŒåã³ã¡ã³ãã«å¯ŸããŠæ
å ±ãäžããããã®footerã®çšæ³ã«æ³šæããããšãããšãã°ãã®å Žåã®ããã«ãfooterèŠçŽ ã¯ãé©åãªå Žåã«ãã®ã»ã¯ã·ã§ã³ã®å
é ã«è¡šç€ºããããšãã§ãããïŒãã®å Žåãheaderã®äœ¿çšã¯ãã©ã¡ããééã£ãŠããªãã ãããããã¯äž»ã«ãªãŒãµãªã³ã°ã®å¥œã¿ã®åé¡ã§ãããïŒ
ãã®äŸã«ãããŠãarticleèŠçŽ ã¯ãããŒã¿ã«ããŒãžäžã«ãŠã£ãžã§ããããã¹ãããããã«äœ¿çšãããããŠã£ãžã§ããã¯ãç¹å®ã®ã¹ã¿ã€ãªã³ã°ããã³ã¹ã¯ãªããåäœãååŸããããã«ãã«ã¹ã¿ãã€ãºãããçµã¿èŸŒã¿èŠçŽ ãšããŠå®è£
ãããã
<!DOCTYPE HTML>
< html lang = en >
< title > eHome Portal</ title >
< script src = "/scripts/widgets.js" ></ script >
< link rel = stylesheet href = "/styles/main.css" >
< article is = "stock-widget" >
< h2 > Stocks</ h2 >
< table >
< thead > < tr > < th > Stock < th > Value < th > Delta
< tbody > < template > < tr > < td > < td > < td > </ template >
</ table >
< p > < input type = button value = "Refresh" onclick = "this.parentElement.refresh()" >
</ article >
< article is = "news-widget" >
< h2 > News</ h2 >
< ul >
< template >
< li >
< p >< img > < strong ></ strong >
< p >
</ template >
</ ul >
< p > < input type = button value = "Refresh" onclick = "this.parentElement.refresh()" >
</ article >
sectionèŠçŽ Support in all current engines.
HTMLElementã䜿çšãããsectionèŠçŽ ã¯ãææžãŸãã¯ã¢ããªã±ãŒã·ã§ã³ã®äžè¬çã»ã¯ã·ã§ã³ã衚ãããã®æèã«ãããŠãã»ã¯ã·ã§ã³ã¯ãå
žåçãªèŠåºãã䌎ããäž»é¡ã衚ãã³ã³ãã³ãã®ã°ã«ãŒãã§ããã
ã»ã¯ã·ã§ã³ã®äŸã¯ãç« ãã¿ãä»ãã®ãã€ã¢ãã°ããã¯ã¹å ã®ããŸããŸãªã¿ãä»ãããŒãžããŸãã¯è«æã®çªå·ä»ãã»ã¯ã·ã§ã³ã§ãããããŠã§ããµã€ãã®ããŒã ããŒãžã¯ãã¯ãããããã¥ãŒã¹ãããã³é£çµ¡å æ å ±ã®ã»ã¯ã·ã§ã³ã«åããããšãã§ããã ããã
èŠçŽ ã®ã³ã³ãã³ããé
絊ããããšãçã«ããªãå Žåãèè
ã¯sectionèŠçŽ ã®ä»£ããã«articleèŠçŽ ã䜿çšããããæšå¥šãããã
sectionèŠçŽ ã¯å
æ¬çãªã³ã³ãããŒèŠçŽ ã§ã¯ãªããèŠçŽ ãã¹ã¿ã€ã«ä»ãç®çãŸãã¯ã¹ã¯ãªããã£ã³ã°ã®äŸ¿å®ã®ããã«å¿
èŠã«ãªã£ãå Žåã®ã¿ãèè
ã¯ã代ããã«divèŠçŽ ã䜿çšããããæšå¥šããããäžè¬çãªèŠåãšããŠãsectionèŠçŽ ã¯ãèŠçŽ ã®å
å®¹ãææžã®ã¢ãŠãã©ã€ã³ã§æç€ºçã«èšèŒãããã ããå Žåã®ã¿é©åã§ããã
次ã®äŸã«ãããŠã2ã€ã®çãã»ã¯ã·ã§ã³ãå«ãããªã³ãŽã«ã€ããŠïŒå€§èŠæš¡ãªãŠã§ãããŒãžã®äžéšïŒã®èšäºãèŠãŠã¿ãã
< article >
< hgroup >
< h2 > Apples</ h2 >
< p > Tasty, delicious fruit!</ p >
</ hgroup >
< p > The apple is the pomaceous fruit of the apple tree.</ p >
< section >
< h3 > Red Delicious</ h3 >
< p > These bright red apples are the most common found in many
supermarkets.</ p >
</ section >
< section >
< h3 > Granny Smith</ h3 >
< p > These juicy, green apples make a great filling for
apple pies.</ p >
</ section >
</ article >
ããã¯ã2ã€ã®ã»ã¯ã·ã§ã³ããã€åæ¥åŒã®ããã°ã©ã ã§ããã1ã€ã¯åæ¥ãã人ã®ãªã¹ãããã1ã€ã¯åŒã®èª¬æã§ãããïŒãã®äŸã«ãããŠããŒã¯ã¢ããã¯ãèŠçŽ éã®ç©ºçœæåã®éãæå°åããããã«äœ¿çšãããçããã¹ã¿ã€ã«ãç¹åŸŽãšãããïŒ
<!DOCTYPE Html>
< Html Lang = En
>< Head
>< Title
> Graduation Ceremony Summer 2022</ Title
></ Head
>< Body
>< H1
> Graduation</ H1
>< Section
>< H2
> Ceremony</ H2
>< P
> Opening Procession</ P
>< P
> Speech by Valedictorian</ P
>< P
> Speech by Class President</ P
>< P
> Presentation of Diplomas</ P
>< P
> Closing Speech by Headmaster</ P
></ Section
>< Section
>< H2
> Graduates</ H2
>< Ul
>< Li
> Molly Carpenter</ Li
>< Li
> Anastasia Luccio</ Li
>< Li
> Ebenezar McCoy</ Li
>< Li
> Karrin Murphy</ Li
>< Li
> Thomas Raith</ Li
>< Li
> Susan Rodriguez</ Li
></ Ul
></ Section
></ Body
></ Html >
ãã®äŸã«ãããŠãæ¬ã®èè ã¯ãç« ãšä»é²ã®ãããªããã€ãã®ã»ã¯ã·ã§ã³ãããŒã¯ã¢ããããç°ãªãã»ã¯ã·ã§ã³ã®2ã€ã®ã¯ã©ã¹ã§ããããŒãã¹ã¿ã€ã«ä»ãããããã«CSSã䜿çšããŠããã
< style >
section { border : double medium ; margin : 2 em ; }
section . chapter h2 { font : 2 em Roboto , Helvetica Neue , sans-serif ; }
section . appendix h2 { font : small-caps 2 em Roboto , Helvetica Neue , sans-serif ; }
</ style >
< header >
< hgroup >
< h1 > My Book</ h1 >
< p > A sample with not much content</ p >
</ hgroup >
< p >< small > Published by Dummy Publicorp Ltd.</ small ></ p >
</ header >
< section class = "chapter" >
< h2 > My First Chapter</ h2 >
< p > This is the first of my chapters. It doesn't say much.</ p >
< p > But it has two paragraphs!</ p >
</ section >
< section class = "chapter" >
< h2 > It Continues: The Second Chapter</ h2 >
< p > Bla dee bla, dee bla dee bla. Boom.</ p >
</ section >
< section class = "chapter" >
< h2 > Chapter Three: A Further Example</ h2 >
< p > It's not like a battle between brightness and earthtones would go
unnoticed.</ p >
< p > But it might ruin my story.</ p >
</ section >
< section class = "appendix" >
< h2 > Appendix A: Overview of Examples</ h2 >
< p > These are demonstrations.</ p >
</ section >
< section class = "appendix" >
< h2 > Appendix B: Some Closing Remarks</ h2 >
< p > Hopefully this long example shows that you < em > can</ em > style
sections, so long as they are used to indicate actual sections.</ p >
</ section >
navèŠçŽ Support in all current engines.
HTMLElementã䜿çšãããnavèŠçŽ ã¯ãä»ã®ããŒãžãžãªã³ã¯ããããŒãžã®ã»ã¯ã·ã§ã³ããŸãã¯ããã²ãŒã·ã§ã³ãªã³ã¯ããã€ã»ã¯ã·ã§ã³ã®ãããªããŒãžå
éšã®äžéšã衚ãã
ããŒãžäžã®ãªã³ã¯ã®ã°ã«ãŒããnavèŠçŽ ã§ããå¿
èŠã¯ãªãâãã®èŠçŽ ã¯ãäž»èŠãªããã²ãŒã·ã§ã³ãããã¯ããæãã»ã¯ã·ã§ã³ãäž»ã«å¯Ÿè±¡ãšããŠãããç¹ã«ããµãŒãã¹ã®æ¡ä»¶ãããŒã ããŒãžãèäœæš©ããŒãžã®ãããªããµã€ãã®ããŸããŸãªããŒãžãžã®ç°¡æœãªãªã³ã¯ã®ãªã¹ããããã¿ãŒãæã€ããšã¯ãäžè¬çã§ãããfooterèŠçŽ ã¯åç¬ã§ããã®ãããªå Žåã«å¯ŸããŠååã§ãããäžæ¹navèŠçŽ ã¯ããã®ãããªå Žåã«äœ¿çšã§ããããéåžžäžèŠã§ããã
åæã®ã¬ã³ããªã³ã°ã§çç¥ãããŠããããã²ãŒã·ã§ã³æ å ±ããå©çãåŸãããšãã§ããããŸãã¯ããã«å©çšå¯èœã§ããããã²ãŒã·ã§ã³æ å ±ããå©çãåŸãããšãã§ãããŠãŒã¶ãŒã察象ãšããïŒã¹ã¯ãªãŒã³ãªãŒããŒãªã©ã®ïŒãŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ãããŒãžäžã®ã©ã®ã³ã³ãã³ãã«æåã«ã¹ããããŸãã¯èŠæ±ïŒãããã¯ãã®äž¡æ¹ïŒã«å¿ããŠæäŸããããæ±ºå®ããæ¹æ³ãšããŠããã®èŠçŽ ã䜿çšã§ããã
次ã®äŸã«ãããŠã2ã€ã®navèŠçŽ ãããã1ã€ã¯ãµã€ãåšèŸºã®äž»èŠãªããã²ãŒã·ã§ã³ã®ããããã1ã€ã¯ããŒãžèªèº«åšèŸºã®è£å©çãªããã²ãŒã·ã§ã³çšã§ããã
< body >
< h1 > The Wiki Center Of Exampland</ h1 >
< nav >
< ul >
< li >< a href = "/" > Home</ a ></ li >
< li >< a href = "/events" > Current Events</ a ></ li >
...more...
</ ul >
</ nav >
< article >
< header >
< h2 > Demos in Exampland</ h2 >
< p > Written by A. N. Other.</ p >
</ header >
< nav >
< ul >
< li >< a href = "#public" > Public demonstrations</ a ></ li >
< li >< a href = "#destroy" > Demolitions</ a ></ li >
...more...
</ ul >
</ nav >
< div >
< section id = "public" >
< h2 > Public demonstrations</ h2 >
< p > ...more...</ p >
</ section >
< section id = "destroy" >
< h2 > Demolitions</ h2 >
< p > ...more...</ p >
</ section >
...more...
</ div >
< footer >
< p >< a href = "?edit" > Edit</ a > | < a href = "?delete" > Delete</ a > | < a href = "?Rename" > Rename</ a ></ p >
</ footer >
</ article >
< footer >
< p >< small > © copyright 1998 Exampland Emperor</ small ></ p >
</ footer >
</ body >
次ã®äŸã«ãããŠãããŒãžã¯ãªã³ã¯ãååšããè€æ°ã®å Žæãæã€ãããã®ãã¡ã®1ã€ã®ã¿ãããã²ãŒã·ã§ã³ã»ã¯ã·ã§ã³ãšã¿ãªãããã
< body itemscope itemtype = "http://schema.org/Blog" >
< header >
< h1 > Wake up sheeple!</ h1 >
< p >< a href = "news.html" > News</ a > -
< a href = "blog.html" > Blog</ a > -
< a href = "forums.html" > Forums</ a ></ p >
< p > Last Modified: < span itemprop = "dateModified" > 2009-04-01</ span ></ p >
< nav >
< h2 > Navigation</ h2 >
< ul >
< li >< a href = "articles.html" > Index of all articles</ a ></ li >
< li >< a href = "today.html" > Things sheeple need to wake up for today</ a ></ li >
< li >< a href = "successes.html" > Sheeple we have managed to wake</ a ></ li >
</ ul >
</ nav >
</ header >
< main >
< article itemprop = "blogPosts" itemscope itemtype = "http://schema.org/BlogPosting" >
< header >
< h2 itemprop = "headline" > My Day at the Beach</ h2 >
</ header >
< div itemprop = "articleBody" >
< p > Today I went to the beach and had a lot of fun.</ p >
...more content...
</ div >
< footer >
< p > Posted < time itemprop = "datePublished" datetime = "2009-10-10" > Thursday</ time > .</ p >
</ footer >
</ article >
...more blog posts...
</ main >
< footer >
< p > Copyright ©
< span itemprop = "copyrightYear" > 2010</ span >
< span itemprop = "copyrightHolder" > The Example Company</ span >
</ p >
< p >< a href = "about.html" > About</ a > -
< a href = "policy.html" > Privacy Policy</ a > -
< a href = "contact.html" > Contact Us</ a ></ p >
</ footer >
</ body >
ããã°ã®èšäºã«ã€ããŠãå ¬éæ¥ããã³ãã®ä»ã®ã¡ã¿ããŒã¿ãæäŸããããã«schema.orgã®èªåœã䜿çšããäžèšã®äŸã§ããã€ã¯ãããŒã¿ã®æ³šéãèŠãããšãã§ããã
navèŠçŽ ã¯ãªã¹ããå«ããå¿
èŠã¯ãªããåæ§ã«ä»ã®çš®é¡ã®ã³ã³ãã³ããå«ãããšãã§ããããã®ããã²ãŒã·ã§ã³ãããã¯ã«ãããŠããªã³ã¯ã¯æã§æäŸãããŠããïŒ
< nav >
< h1 > Navigation</ h1 >
< p > You are on my home page. To the north lies < a href = "/blog" > my
blog</ a > , from whence the sounds of battle can be heard. To the east
you can see a large mountain, upon which many < a
href = "/school" > school papers</ a > are littered. Far up thus mountain
you can spy a little figure who appears to be me, desperately
scribbling a < a href = "/school/thesis" > thesis</ a > .</ p >
< p > To the west are several exits. One fun-looking exit is labeled < a
href = "https://games.example.com/" > "games"</ a > . Another more
boring-looking exit is labeled < a
href = "https://isp.example.net/" > ISPâ¢</ a > .</ p >
< p > To the south lies a dark and dank < a href = "/about" > contacts
page</ a > . Cobwebs cover its disused entrance, and at one point you
see a rat run quickly out of the page.</ p >
</ nav >
ãã®äŸã«ãããŠãnavã¯ããŠãŒã¶ãŒã¹ã€ãããã©ã«ããŒãã§ããããã«ãé»åã¡ãŒã«ã¢ããªã±ãŒã·ã§ã³ã§äœ¿çšãããïŒ
< p >< input type = button value = "Compose" onclick = "compose()" ></ p >
< nav >
< h1 > Folders</ h1 >
< ul >
< li > < a href = "/inbox" onclick = "return openFolder(this.href)" > Inbox</ a > < span class = count ></ span >
< li > < a href = "/sent" onclick = "return openFolder(this.href)" > Sent</ a >
< li > < a href = "/drafts" onclick = "return openFolder(this.href)" > Drafts</ a >
< li > < a href = "/trash" onclick = "return openFolder(this.href)" > Trash</ a >
< li > < a href = "/customers" onclick = "return openFolder(this.href)" > Customers</ a >
</ ul >
</ nav >
asideèŠçŽ Support in all current engines.
HTMLElementã䜿çšãããasideèŠçŽ ã¯ãasideèŠçŽ ã®åšå²ã®ã³ã³ãã³ãã«ä»éçã«é¢é£ããã³ã³ãã³ãããæ§æããããã€ãã®ã³ã³ãã³ããšã¯å¥ã®ãã®ãšèŠãªãããšãã§ããããŒãžã®ã»ã¯ã·ã§ã³ã衚ãããã®ãããªã»ã¯ã·ã§ã³ã¯ã掻çå°å·ã§ãµã€ãããŒãšããŠè¡šçŸãããããšãããããã
ãã®èŠçŽ ã¯ãªãŒãæãŸãã¯ãµã€ãããŒã®ãããªå°å·äžã®å¹æã«å¯ŸããŠãnavã®èŠçŽ ã®ã°ã«ãŒãã«å¯ŸããŠãåºåã«å¯ŸããŠãããã³ãã®ããŒãžã®ã¡ã€ã³ã³ã³ãã³ããšã¯å¥ã«èããããä»ã®ã³ã³ãã³ãã«å¯ŸããŠäœ¿çšã§ããã
ãããã®ææžã¯ã¡ã€ã³ãããŒã®äžéšã§ããã®ã§ãåã«æ¿å
¥å¥ã«asideèŠçŽ ã䜿çšããããšã¯é©åã§ãªãã
次ã®äŸã¯ãasideããšãŒãããã®ããªãé·ããã¥ãŒã¹èšäºã§ã¹ã€ã¹ã®èæ¯çŽ æãããŒã¯ã¢ããã«å¯ŸããŠäœ¿çšãããæ§åã瀺ãã
< aside >
< h2 > Switzerland</ h2 >
< p > Switzerland, a land-locked country in the middle of geographic
Europe, has not joined the geopolitical European Union, though it is
a signatory to a number of European treaties.</ p >
</ aside >
次ã®äŸã¯ãasideãé·ãèšäºã§ãªãŒãæã®ããŒã¯ã¢ããã«å¯ŸããŠäœ¿çšãããæ§åã瀺ãã
...
< p > He later joined a large company, continuing on the same work.
< q > I love my job. People ask me what I do for fun when I'm not at
work. But I'm paid to do my hobby, so I never know what to
answer. Some people wonder what they would do if they didn't have to
work... but I know what I would do, because I was unemployed for a
year, and I filled that time doing exactly what I do now.</ q ></ p >
< aside >
< q > People ask me what I do for fun when I'm not at work. But I'm
paid to do my hobby, so I never know what to answer.</ q >
</ aside >
< p > Of course his work â or should that be hobby? â
isn't his only passion. He also enjoys other pleasures.</ p >
...
以äžã¯ãããã°ããŒã«ïŒä»ã®ããã°ãžã®ãªã³ã¯ïŒãšããã°ã®å察åŽã®ã³ã³ãã³ãã«asideã䜿çšãããæ§åã瀺ãã
< body >
< header >
< h1 > My wonderful blog</ h1 >
< p > My tagline</ p >
</ header >
< aside >
<!-- this aside contains two sections that are tangentially related
to the page, namely, links to other blogs, and links to blog posts
from this blog -->
< nav >
< h2 > My blogroll</ h2 >
< ul >
< li >< a href = "https://blog.example.com/" > Example Blog</ a >
</ ul >
</ nav >
< nav >
< h2 > Archives</ h2 >
< ol reversed >
< li >< a href = "/last-post" > My last post</ a >
< li >< a href = "/first-post" > My first post</ a >
</ ol >
</ nav >
</ aside >
< aside >
<!-- this aside is tangentially related to the page also, it
contains twitter messages from the blog author -->
< h1 > Twitter Feed</ h1 >
< blockquote cite = "https://twitter.example.net/t31351234" >
I'm on vacation, writing my blog.
</ blockquote >
< blockquote cite = "https://twitter.example.net/t31219752" >
I'm going to go on vacation soon.
</ blockquote >
</ aside >
< article >
<!-- this is a blog post -->
< h2 > My last post</ h2 >
< p > This is my last post.</ p >
< footer >
< p >< a href = "/last-post" rel = bookmark > Permalink</ a >
</ footer >
</ article >
< article >
<!-- this is also a blog post -->
< h2 > My first post</ h2 >
< p > This is my first post.</ p >
< aside >
<!-- this aside is about the blog post, since it's inside the
<article> element; it would be wrong, for instance, to put the
blogroll here, since the blogroll isn't really related to this post
specifically, only to the page as a whole -->
< h2 > Posting</ h2 >
< p > While I'm thinking about it, I wanted to say something about
posting. Posting is fun!</ p >
</ aside >
< footer >
< p >< a href = "/first-post" rel = bookmark > Permalink</ a >
</ footer >
</ article >
< footer >
< p >< a href = "/archives" > Archives</ a > -
< a href = "/about" > About me</ a > -
< a href = "/copyright" > Copyright</ a ></ p >
</ footer >
</ body >
h1ãh2ãh3ãh4ãh5ãh6èŠçŽ Support in all current engines.
Support in all current engines.
Support in all current engines.
Support in all current engines.
Support in all current engines.
Support in all current engines.
Support in all current engines.
hgroupèŠçŽ ã®åãšããŠã[Exposed =Window ]
interface HTMLHeadingElement : HTMLElement {
[HTMLConstructor ] constructor ();
// also has obsolete members
};
ãããã®èŠçŽ ã¯ããã®ã»ã¯ã·ã§ã³ã®èŠåºãã衚ãã
ã»ãã³ãã£ãã¯ã¹ãšãããã®èŠçŽ ã®æå³ã¯èŠåºããšã¢ãŠãã©ã€ã³ã®ç¯ã§å®çŸ©ãããã
ãããã®èŠçŽ ã¯ãèŠçŽ åã®æ°åã§äžããããèŠåºãã¬ãã«ãæã€ãèŠåºãã¬ãã«ã¯ããã¹ããããã»ã¯ã·ã§ã³ã®ã¬ãã«ã«å¯Ÿå¿ãããh1èŠçŽ ã¯ãããã¬ãã«ã®ã»ã¯ã·ã§ã³çšãh2ã¯ãµãã»ã¯ã·ã§ã³çšãh3ã¯ãµããµãã»ã¯ã·ã§ã³çšãªã©ã§ããã
ããããã®ææžã®ã¢ãŠãã©ã€ã³ïŒãã®èŠåºããšã»ã¯ã·ã§ã³ã®æ§é ïŒãé¢ä¿ããéãã«ãããŠã次ã®2ã€ã®æçã¯ãã»ãã³ãã£ãã¯ã«ç䟡ã§ããïŒ
< body >
< h1 > Let's call it a draw(ing surface)</ h1 >
< h2 > Diving in</ h2 >
< h2 > Simple shapes</ h2 >
< h2 > Canvas coordinates</ h2 >
< h3 > Canvas coordinates diagram</ h3 >
< h2 > Paths</ h2 >
</ body >
< body >
< h1 > Let's call it a draw(ing surface)</ h1 >
< section >
< h2 > Diving in</ h2 >
</ section >
< section >
< h2 > Simple shapes</ h2 >
</ section >
< section >
< h2 > Canvas coordinates</ h2 >
< section >
< h3 > Canvas coordinates diagram</ h3 >
</ section >
</ section >
< section >
< h2 > Paths</ h2 >
</ section >
</ body >
èè ã¯ãç°¡æœãã®ããã«åè ã®ã¹ã¿ã€ã«ã奜ããããããªããã远å ã®ã¹ã¿ã€ãªã³ã°ããã¯ã®ããã«åŸè ã®ã¹ã¿ã€ã«ã奜ããããããªããã©ã¡ããæé©ãã¯ãçŽç²ã«å¥œãŸãããªãŒãµãªã³ã°ã¹ã¿ã€ã«ã®åé¡ã§ããã
hgroupèŠçŽ Support in all current engines.
pèŠçŽ ããã®åŸã«1ã€ã®h1ãh2ãh3ãh4ãh5ãŸãã¯h6èŠçŽ ãç¶ãããã®åŸã«0å以äžã®pèŠçŽ ãç¶ããä»»æã§ã¹ã¯ãªãããµããŒãèŠçŽ ãšæ··åããããHTMLElementã䜿çšãããhgroupèŠçŽ ã¯ãèŠåºããšé¢é£ã³ã³ãã³ãã衚ãã ãã®èŠçŽ ã¯ãå°èŠåºãã代æ¿ã¿ã€ãã«ããŸãã¯ã¿ã°ã©ã€ã³ã衚ãã³ã³ãã³ããå«ã1ã€ä»¥äžã®pèŠçŽ ã§h1âh6èŠçŽ ãã°ã«ãŒãåããããã«äœ¿çšããŠãããã
hgroupèŠçŽ ã«å«ãŸãã劥åœãªèŠåºãã®äŸã次ã«ç€ºãã
< hgroup >
< h1 > The reality dysfunction</ h1 >
< p > Space is not the only void</ p >
</ hgroup >
< hgroup >
< h1 > Dr. Strangelove</ h1 >
< p > Or: How I Learned to Stop Worrying and Love the Bomb</ p >
</ hgroup >
headerèŠçŽ Support in all current engines.
headerãŸãã¯footerèŠçŽ ã®åå«ããããªããHTMLElementã䜿çšãããheaderèŠçŽ ã¯ãå眮ããŸãã¯ããã²ãŒã·ã§ã³è£å©ã®ã°ã«ãŒãã衚ãã
headerèŠçŽ ã¯éåžžãèŠåºãïŒh1âh6èŠçŽ ãŸã㯠hgroupèŠçŽ ïŒãå«ãããã«æå³ãããããããã¯å¿
é ã§ã¯ãªããheaderèŠçŽ ã¯ãŸããã»ã¯ã·ã§ã³ã®ã³ã³ãã³ãã®ç®é²ãæ€çŽ¢ãã©ãŒã ããŸãã¯é¢é£ããããŽãå
ãããã«äœ¿çšããããšãã§ããã
ãµã³ãã«headerã¯æ¬¡ã®ãšããããã®æåã®ãã®ã¯ãã²ãŒã ã®ããã«ååšããïŒ
< header >
< p > Welcome to...</ p >
< h1 > Voidwars!</ h1 >
</ header >
æ¬¡ã®æçã¯ãèŠçŽ ã仿§ã®ããããŒãããŒã¯ã¢ããã«å¯ŸããŠäœ¿çšã§ããæ§åã瀺ãã
< header >
< hgroup >
< h1 > Fullscreen API</ h1 >
< p > Living Standard â Last Updated 19 October 2015< p >
</ hgroup >
< dl >
< dt > Participate:</ dt >
< dd >< a href = "https://github.com/whatwg/fullscreen" > GitHub whatwg/fullscreen</ a ></ dd >
< dt > Commits:</ dt >
< dd >< a href = "https://github.com/whatwg/fullscreen/commits" > GitHub whatwg/fullscreen/commits</ a ></ dd >
</ dl >
</ header >
headerèŠçŽ ã¯ãã»ã¯ã·ã§ãã³ã°ã³ã³ãã³ãã§ã¯ãªããæ°ããã»ã¯ã·ã§ã³ãå°å
¥ããªãã
ãã®äŸã¯ãããŒãžãh1èŠçŽ ã§äžããããããŒãžèŠåºããšãh2èŠçŽ ã«ãã£ãŠäžãããã2ã€ã®ãµãã»ã¯ã·ã§ã³ãæã€ãheaderèŠçŽ ã¯ã¢ãŠãã©ã€ã³ã¢ã«ãŽãªãºã ã«åå ããªããããheaderèŠçŽ ã®åŸã®ã³ã³ãã³ãã¯ãäŸç¶ãšããŠheaderèŠçŽ ã§æåŸã«éå§ãããµãã»ã¯ã·ã§ã³ã®äžéšã§ããã
< body >
< header >
< h1 > Little Green Guys With Guns</ h1 >
< nav >
< ul >
< li >< a href = "/games" > Games</ a >
< li >< a href = "/forum" > Forum</ a >
< li >< a href = "/download" > Download</ a >
</ ul >
</ nav >
< h2 > Important News</ h2 > <!-- this starts a second subsection -->
<!-- this is part of the subsection entitled "Important News" -->
< p > To play today's games you will need to update your client.</ p >
< h2 > Games</ h2 > <!-- this starts a third subsection -->
</ header >
< p > You have three active games:</ p >
<!-- this is still part of the subsection entitled "Games" -->
...
footerèŠçŽ Support in all current engines.
headerãŸãã¯footerèŠçŽ ã®åå«ããããªããHTMLElementã䜿çšãããfooterèŠçŽ ã¯ããã®çŽè¿ã®ç¥å
ã»ã¯ã·ã§ãã³ã°ã³ã³ãã³ããŸãã¯bodyèŠçŽ ã«å¯Ÿããããã¿ãŒã衚ããããã¿ãŒã¯ãããšãã°èª°ãæžããããé¢é£ææžãžã®ãªã³ã¯ãèäœæš©ããŒã¿ãªã©ããã®ã»ã¯ã·ã§ã³é¢ããæ
å ±ãäžè¬ã«å«ãã
footerèŠçŽ ãã»ã¯ã·ã§ã³å
šäœãå«ãå Žåãä»é²ã玢åŒãé·ã奥ä»ãåé·ãªã©ã€ã»ã³ã¹å¥çŽãªã©ã®ã³ã³ãã³ãã衚ãã
ã»ã¯ã·ã§ã³ã®èè
ãç·šéè
ã«å¯Ÿããé£çµ¡å
æ
å ±ã¯ãããããfooterå
åŽã«ããèªèº«ãaddressèŠçŽ ã«å±ãããheaderãfooterã®äž¡æ¹ã«é©ããã ããçœ²åæ¬ããã³ãã®ä»ã®æ
å ±ã¯ãããããïŒãŸãã¯ã©ã¡ãã§ããªãïŒã«é
眮ã§ããããããã®èŠçŽ ã®äž»ãªç®çã¯ãèè
ãç¶æããã¹ã¿ã€ã«ã容æã§ããèªæã®ããŒã¯ã¢ãããæžãããã ãã§ããããããèŠçŽ ã¯èè
ã«ç¹å®ã®æ§é ã課ãããšãæå³ãããã®ã§ã¯ãªãã
ããã¿ãŒã¯å¿ ããããã»ã¯ã·ã§ã³ã®æåŸã«åºçŸããå¿ èŠã¯ãªãïŒéåžžã¯æåŸã ãïŒã
ç¥å ã»ã¯ã·ã§ãã³ã°ã³ã³ãã³ãèŠçŽ ããªãå Žåãããã¯ããŒãžå šäœã«é©çšãããã
footerèŠçŽ èªèº«ã¯ã»ã¯ã·ã§ãã³ã°ã³ã³ãã³ããã®ã§ã¯ãªããæ°ããã»ã¯ã·ã§ã³ã¯å°å
¥ãããªãã
ããã¯ãäžçªäžãšäžçªäžã«2ã€ã®ããã¿ãŒãæã€ãåãã³ã³ãã³ãã®ããŒãžã§ããïŒ
< body >
< footer >< a href = "../" > Back to index...</ a ></ footer >
< hgroup >
< h1 > Lorem ipsum</ h1 >
< p > The ipsum of all lorems</ p >
</ hgroup >
< p > A dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
ea commodo consequat. Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.</ p >
< footer >< a href = "../" > Back to index...</ a ></ footer >
</ body >
ããã¯ããµã€ãå
šäœã®ããã¿ãŒãšã»ã¯ã·ã§ã³ããã¿ãŒã®äž¡æ¹ã«äœ¿çšãããŠããfooterèŠçŽ ã瀺ãäŸã§ããã
<!DOCTYPE HTML>
< HTML LANG = "en" >< HEAD >
< TITLE > The Ramblings of a Scientist</ TITLE >
< BODY >
< H1 > The Ramblings of a Scientist</ H1 >
< ARTICLE >
< H1 > Episode 15</ H1 >
< VIDEO SRC = "/fm/015.ogv" CONTROLS PRELOAD >
< P >< A HREF = "/fm/015.ogv" > Download video</ A > .</ P >
</ VIDEO >
< FOOTER > <!-- footer for article -->
< P > Published < TIME DATETIME = "2009-10-21T18:26-07:00" > on 2009/10/21 at 6:26pm</ TIME ></ P >
</ FOOTER >
</ ARTICLE >
< ARTICLE >
< H1 > My Favorite Trains</ H1 >
< P > I love my trains. My favorite train of all time is a Köf.</ P >
< P > It is fun to see them pull some coal cars because they look so
dwarfed in comparison.</ P >
< FOOTER > <!-- footer for article -->
< P > Published < TIME DATETIME = "2009-09-15T14:54-07:00" > on 2009/09/15 at 2:54pm</ TIME ></ P >
</ FOOTER >
</ ARTICLE >
< FOOTER > <!-- site wide footer -->
< NAV >
< P >< A HREF = "/credits.html" > Credits</ A > â
< A HREF = "/tos.html" > Terms of Service</ A > â
< A HREF = "/index.html" > Blog Index</ A ></ P >
</ NAV >
< P > Copyright © 2009 Gordon Freeman</ P >
</ FOOTER >
</ BODY >
</ HTML >
äžéšã®ãµã€ãã®ãã¶ã€ã³ã¯ãæã "ååãããã¿ãŒ"ãšåŒã°ãããã®ãæã€âããã¿ãŒã¯ãç»åãä»ã®èšäºãžã®ãªã³ã¯ããã£ãŒãããã¯éä¿¡çšããŒãžãžã®ãªã³ã¯ãç¹å¥ãªãã¡ãŒãªã©ãããã€ãã®ç¹ã§ãããã¿ãŒã§å šäœã®"ããã³ãããŒãž"ãšãããã倧éã®çŽ æãå«ãã
ãã®æçã¯ã"ååãããã¿ãŒ"ããã€ãµã€ãäžã§ããŒãžã®æäžéšã瀺ãïŒ
...
< footer >
< nav >
< section >
< h1 > Articles</ h1 >
< p >< img src = "images/somersaults.jpeg" alt = "" > Go to the gym with
our somersaults class! Our teacher Jim takes you through the paces
in this two-part article. < a href = "articles/somersaults/1" > Part
1</ a > · < a href = "articles/somersaults/2" > Part 2</ a ></ p >
< p >< img src = "images/kindplus.jpeg" > Tired of walking on the edge of
a clif<!-- sic --> ? Our guest writer Lara shows you how to bumble
your way through the bars. < a href = "articles/kindplus/1" > Read
more...</ a ></ p >
< p >< img src = "images/crisps.jpeg" > The chips are down, now all
that's left is a potato. What can you do with it? < a
href = "articles/crisps/1" > Read more...</ a ></ p >
</ section >
< ul >
< li > < a href = "/about" > About us...</ a >
< li > < a href = "/feedback" > Send feedback!</ a >
< li > < a href = "/sitemap" > Sitemap</ a >
</ ul >
</ nav >
< p >< small > Copyright © 2015 The Snacker â
< a href = "/tos" > Terms of Service</ a ></ small ></ p >
</ footer >
</ body >
addressèŠçŽ Support in all current engines.
headerãfooterãaddressèŠçŽ ã®åå«ãé€ããHTMLElementã䜿çšãããaddressèŠçŽ ã¯ãæãè¿ãarticleãŸãã¯bodyèŠçŽ ã®ç¥å
ã®é£çµ¡å
æ
å ±ã衚ããç¥å
ãbodyèŠçŽ ã§ããå Žåãé£çµ¡å
æ
å ±ã¯ãææžå
šäœã«é©çšãããã
ããšãã°ãHTMLã«é¢é£ããW3Cã®ãŠã§ããµã€ãã«ããããŒãžã¯ã次ã®é£çµ¡å æ å ±ãå«ããããããªãïŒ
< ADDRESS >
< A href = "../People/Raggett/" > Dave Raggett</ A > ,
< A href = "../People/Arnaud/" > Arnaud Le Hors</ A > ,
contact persons for the < A href = "Activity" > W3C HTML Activity</ A >
</ ADDRESS >
ä»»æã®ã¢ãã¬ã¹ïŒããšãã°éµäŸ¿ã®å®å
ïŒãå®éã«é¢é£ããé£çµ¡å
æ
å ±ã§ããå Žåãé€ããaddressèŠçŽ ã¯ãä»»æã®ã¢ãã¬ã¹ã衚ãããã«äœ¿çšããŠã¯ãªããªããïŒpèŠçŽ ã¯ãäžè¬ã«éµäŸ¿ã®å®å
ãããŒã¯ã¢ããããããã®é©åãªèŠçŽ ã§ãããïŒ
addressèŠçŽ ã¯é£çµ¡å
æ
å ±ä»¥å€ã®æ
å ±ãå«ãã§ã¯ãªããªãã
ããšãã°ã次ã®äŸã¯addressèŠçŽ ã®äžé©åãªçšæ³ã§ããïŒ
< ADDRESS > Last Modified: 1999/12/24 23:37:50</ ADDRESS >
äžè¬ã«ãaddressèŠçŽ ã¯ãfooterèŠçŽ ã§ä»ã®æ
å ±ãšäžç·ã«å«ãŸããã
ããŒãnodeã®é£çµ¡å
æ
å ±ã¯ã次ã®ãªã¹ãããã®æåã«é©çšå¯èœãªãšã³ããªãŒã§å®çŸ©ãããaddressèŠçŽ ã®ã³ã¬ã¯ã·ã§ã³ã§ããïŒ
articleèŠçŽ ã§ããå ŽåbodyèŠçŽ ã§ããå Žåé£çµ¡å
æ
å ±ã¯ãå
ç¥ãšããŠnodeãæã¡ãã€nodeã®åå«ã§ããå¥ã®bodyãŸãã¯articleèŠçŽ ã®ç¥å
ãæããªããã¹ãŠã®addressèŠçŽ ããæ§æãããã
articleèŠçŽ ã§ããç¥å
èŠçŽ ãæã€å ŽåbodyèŠçŽ ã§ããç¥å
èŠçŽ ãæã€å Žånodeã®é£çµ¡å
æ
å ±ã¯ãæãè¿ãããããã®ãæãè¿ãarticleãŸãã¯bodyèŠçŽ ã®ç¥å
ã®é£çµ¡å
æ
å ±ãšåãã§ããã
nodeã®é£çµ¡å
æ
å ±ã¯ãDocumentã®bodyèŠçŽ ã®é£çµ¡å
æ
å ±ãšåãã§ããã
nodeã«å¯Ÿããé£çµ¡å æ å ±ã¯ååšããªãã
ãŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ããŠãŒã¶ãŒã«ããŒãã®é£çµ¡å æ å ±ãå ¬éããŠãããããŸãã¯ãã®ãããªã»ã¯ã·ã§ã³ã®é£çµ¡å æ å ±ã«åºã¥ãã€ã³ããã¯ã¹ã»ã¯ã·ã§ã³ãªã©ãä»ã®ç®çã®ããã«äœ¿çšããŠãããã
ãã®äŸã«ãããŠãããã¿ãŒã¯ãé£çµ¡å æ å ±ããã³èäœæš©æ å ±ãå«ãã
< footer >
< address >
For more details, contact
< a href = "mailto:js@example.com" > John Smith</ a > .
</ address >
< p >< small > © copyright 2038 Example Corp.</ small ></ p >
</ footer >
h1âh6èŠçŽ ã¯ èŠåºãã¬ãã«ãæã¡ãããã¯èŠçŽ ã®èšç®ãããèŠåºãã¬ãã«ãååŸããã«ãã£ãŠäžããããã
ãããã®èŠçŽ ã¯ãèŠåºãã衚ããèŠåºãã®èŠåºãã¬ãã«ãäœãã»ã©ããã®èŠåºããæã€ç¥å ã»ã¯ã·ã§ã³ã¯å°ãªããªãã
ã¢ãŠãã©ã€ã³ã¯ãææžå ã®ãã¹ãŠã®èŠåºãã§ãããããªãŒé ã«ãªã£ãŠããã
ã¢ãŠãã©ã€ã³ã¯ãç®æ¬¡ãçæããå Žåãªã©ãææžã®ã¢ãŠãã©ã€ã³ãçæããããã«äœ¿çšãã¹ãã§ãããã€ã³ã¿ã©ã¯ãã£ããªç®æ¬¡ãäœæããå Žåããšã³ããªãŒã¯ãŠãŒã¶ãŒãé¢é£ããèŠåºãã«ãžã£ã³ããããã¹ãã§ããã
ææžã«1ã€ä»¥äžã®èŠåºããããå Žåãã¢ãŠãã©ã€ã³å ã®å°ãªããšã1ã€ã®èŠåºãã®èŠåºãã¬ãã«ã¯1ã§ããã¹ãã§ããã
ã¢ãŠãã©ã€ã³å ã®å¥ã®èŠåºããªãŒãã«ç¶ãåèŠåºãã¯ããªãŒãã®èŠåºãã¬ãã«ãããå°ãããçããããŸãã¯1ã€å€§ããèŠåºãã¬ãã«ãæããªããã°ãªããªãã
次ã®äŸã¯äžé©åã§ããïŒ
< body >
< h1 > Apples</ h1 >
< p > Apples are fruit.</ p >
< section >
< h3 > Taste</ h3 >
< p > They taste lovely.</ p >
</ section >
</ body >
ããã¯æ¬¡ã®ããã«æžãããšãã§ãããããŠé©åããããšã«ãªãïŒ
< body >
< h1 > Apples</ h1 >
< p > Apples are fruit.</ p >
< section >
< h2 > Taste</ h2 >
< p > They taste lovely.</ p >
</ section >
</ body >
headingoffsetã³ã³ãã³ã屿§ã¯ãèè
ã«åå«ã®èŠåºãã¬ãã«ããªãã»ãããå¯èœã«ããã
headingoffset屿§ãæå®ãããå Žåããã®å€ã¯0ãã8ãŸã§ã®åŠ¥åœãªéè² æŽæ°ã§ããå€ãæããªããã°ãªããªãã
headingresetã³ã³ãã³ã屿§ã¯ãçåœå±æ§ã§ãããããã«ãããèè
ã¯ãèŠåºããªãã»ããã®èšç®ãããã®å±æ§ããã€èŠçŽ ãè¶
ããŠæšªæããã®ãé²ãããšãã§ããã
èŠçŽ elementãæå®ããŠèŠçŽ ã®èšç®ãããèŠåºãã¬ãã«ãååŸããã«ã¯ã次ã®ããã«æå®ããïŒ
levelã0ãšããã
elementã®ããŒã«ã«åãh1ã§ããå Žåãlevelã1ã«èšå®ããã
elementã®ããŒã«ã«åãh2ã§ããå Žåãlevelã2ã«èšå®ããã
elementã®ããŒã«ã«åãh3ã§ããå Žåãlevelã3ã«èšå®ããã
elementã®ããŒã«ã«åãh4ã§ããå Žåãlevelã4ã«èšå®ããã
elementã®ããŒã«ã«åãh5ã§ããå Žåãlevelã5ã«èšå®ããã
elementã®ããŒã«ã«åãh6ã§ããå Žåãlevelã6ã«èšå®ããã
AssertïŒlevelã0ã§ã¯ãªãã
elementã§æå®ãããèŠçŽ ã®èšç®ãããèŠåºããªãã»ããã®ååŸã®çµæã«ããå¢ålevelã
levelã9ãã倧ããå Žåã9ãè¿ãã
levelãè¿ãã
èŠçŽ ã®èšç®ãããèŠåºããªãã»ãããååŸããã«ã¯ãèŠçŽ elementãæå®ããŠã次ã®ã¹ããããå®è¡ãããè¿ãå€ã¯éè² æŽæ°ã§ããã
offsetã0ãšããã
inclusiveAncestorãelementãšããã
inclusiveAncestorãnullã§ãªãéïŒ
nextOffsetã0ãšããã
inclusiveAncestorãHTMLèŠçŽ ã§ããããã€headingoffset屿§ãæã€å Žåãéè² æŽæ°ãè§£æããããã®ã«ãŒã«ã䜿çšããŠãã®å€ãè§£æããã
å€ã®è§£æçµæããšã©ãŒã§ãªãå ŽåãnextOffsetã«ãã®å€ãèšå®ããã
Increment offset by nextOffset.
inclusiveAncestorãHTMLèŠçŽ ã§ããããã€headingreset屿§ãæã€å Žåãoffsetãè¿ãã
If inclusiveAncestor's parent is a shadow root, then set inclusiveAncestor to that shadow root's host and continue.
Set inclusiveAncestor to inclusiveAncestor's parent element.
offsetãè¿ãã
ãã®äŸã§ã¯ãheadingoffsetãheadingresetãããã³aria-level屿§ã®çµã¿åãããšãããããã®èŠåºãã¬ãã«ã瀺ãã³ã¡ã³ãã瀺ããŠããããã®äŸã¯ãããŸããŸãªçµã¿åããã瀺ãããã®ã§ããããã¹ããã©ã¯ãã£ã¹ã®äŸã§ã¯ãªãã
< body >
< main >
< h1 > This is a heading level 1</ h1 >
< article headingoffset = "1" >
< h1 > This is a heading level 2</ h1 >
< section headingoffset = "1" >
< h1 > This is a heading level 3</ h1 >
< dialog headingreset >
< h1 > This is a heading level 1</ h1 >
</ dialog >
</ section >
</ article >
< h1 aria-level = "2" > This is a heading level 2</ h1 >
</ main >
</ body >
次ã®ããŒã¯ã¢ããæçã§ïŒ
< body >
< hgroup id = "document-title" >
< h1 > HTML: Living Standard</ h1 >
< p > Last Updated 12 August 2016</ p >
</ hgroup >
< p > Some intro to the document.</ p >
< h2 > Table of contents</ h2 >
< ol id = toc > ...</ ol >
< h2 > First section</ h2 >
< p > Some intro to the first section.</ p >
</ body >
...çµæãšããŠ3ã€ã®ææžèŠåºããäœæãããïŒ
<h1>HTML: Living Standard</h1>
<h2>Table of contents</h2>.
<h2>First section</h2>.
ã¢ãŠãã©ã€ã³ã®ã¬ã³ããªã³ã°ãã¥ãŒã¯æ¬¡ã®ããã«ãªãã ããïŒ
ãŸãããããææžã§ãããããã¯éåžžã«çãç« ãšãµãã»ã¯ã·ã§ã³ãæã€æ¬ã§ããïŒ
<!DOCTYPE HTML>
< html lang = en >
< title > The Tax Book (all in one page)</ title >
< h1 > The Tax Book</ h1 >
< h2 > Earning money</ h2 >
< p > Earning money is good.</ p >
< h3 > Getting a job</ h3 >
< p > To earn money you typically need a job.</ p >
< h2 > Spending money</ h2 >
< p > Spending is what money is mainly used for.</ p >
< h3 > Cheap things</ h3 >
< p > Buying cheap things often not cost-effective.</ p >
< h3 > Expensive things</ h3 >
< p > The most expensive thing is often not the most cost-effective either.</ p >
< h2 > Investing money</ h2 >
< p > You can lend your money to other people.</ p >
< h2 > Losing money</ h2 >
< p > If you spend money or invest money, sooner or later you will lose money.
< h3 > Poor judgement</ h3 >
< p > Usually if you lose money it's because you made a mistake.</ p >
ãã®ã¢ãŠãã©ã€ã³ã¯æ¬¡ã®ããã«æç€ºã§ããïŒ
ææžã¯ãè€æ°ã®ãããã¬ãã«ã®èŠåºããå«ããããšãã§ããïŒ
<!DOCTYPE HTML>
< html lang = en >
< title > Alphabetic Fruit</ title >
< h1 > Apples</ h1 >
< p > Pomaceous.</ p >
< h1 > Bananas</ h1 >
< p > Edible.</ p >
< h1 > Carambola</ h1 >
< p > Star.</ p >
ææžã®ã¢ãŠãã©ã€ã³ã¯æ¬¡ã®ããã«è¡šç€ºã§ããïŒ
headerèŠçŽ ã¯ãææžã®ã¢ãŠãã©ã€ã³ã«åœ±é¿ãäžããªãïŒ
<!DOCTYPE HTML>
< html lang = "en" >
< title > We're adopting a child! â Ray's blog</ title >
< h1 > Ray's blog</ h1 >
< article >
< header >
< nav >
< a href = "?t=-1d" > Yesterday</ a > ;
< a href = "?t=-7d" > Last week</ a > ;
< a href = "?t=-1m" > Last month</ a >
</ nav >
< h2 > We're adopting a child!</ h2 >
</ header >
< p > As of today, Janine and I have signed the papers to become
the proud parents of baby Diane! We've been looking forward to
this day for weeks.</ p >
</ article >
</ html >
ææžã®ã¢ãŠãã©ã€ã³ã¯æ¬¡ã®ããã«è¡šç€ºã§ããïŒ
次ã®äŸã¯é©åããŠããããèŠåºãã¬ãã«ã1ã§ããèŠåºãããªãããã«å§ããããªãïŒ
<!DOCTYPE HTML>
< html lang = en >
< title > Alphabetic Fruit</ title >
< section >
< h2 > Apples</ h2 >
< p > Pomaceous.</ p >
</ section >
< section >
< h2 > Bananas</ h2 >
< p > Edible.</ p >
</ section >
< section >
< h2 > Carambola</ h2 >
< p > Star.</ p >
</ section >
ææžã®ã¢ãŠãã©ã€ã³ã¯æ¬¡ã®ããã«è¡šç€ºã§ããïŒ
次ã®äŸã¯é©åããŠããããæåã®èŠåºãã®èŠåºãã¬ãã«ã1ã§ã¯ãªãããã«å§ããããªãïŒ
<!DOCTYPE HTML>
< html lang = en >
< title > Feathers on The Site of Encyclopedic Knowledge</ title >
< h2 > A plea from our caretakers</ h2 >
< p > Please, we beg of you, send help! We're stuck in the server room!</ p >
< h1 > Feathers</ h1 >
< p > Epidermal growths.</ p >
ææžã®ã¢ãŠãã©ã€ã³ã¯æ¬¡ã®ããã«è¡šç€ºã§ããïŒ
ãŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ããŠãŒã¶ãŒã«ããã²ãŒã·ã§ã³ãæ¯æŽããããã«ããããã«ããŒãžã®ã¢ãŠãã©ã€ã³ãå ¬éããããšãå§ãããããã¯ãã¹ã¯ãªãŒã³ãªãŒããŒãªã©ã®éèŠèŠçãªã¡ãã£ã¢ã«å¯ŸããŠç¹ã«åœãŠã¯ãŸãã
ããšãã°ããŠãŒã¶ãŒãšãŒãžã§ã³ãã¯ã次ã®ããã«ç¢å°ããŒã察å¿ä»ããããšãã§ããïŒ
ãã®ç¯ã¯éèŠç¯çã§ããã
| èŠçŽ | ç®ç |
|---|---|
| äŸ | |
body | ææžã®ã³ã³ãã³ãã |
| |
article | ææžãããŒãžãã¢ããªã±ãŒã·ã§ã³ããŸãã¯ãµã€ãã®äžã§å®å šãããã¯èªå·±å®çµãããã®ãããã¯ååãšããŠãããšãã°ã·ã³ãžã±ãŒã·ã§ã³ãªã©ãç¬ç«ããŠé åžå¯èœãªãŸãã¯åå©çšå¯èœãªãã®ã§ãããããã¯ããã©ãŒã©ã ã®æçš¿ãéèªãæ°èã®èšäºãããã°ã®ãšã³ããªãŒããŠãŒã¶ãŒã®æçš¿ã³ã¡ã³ãã察話çãªãŠã£ãžã§ãããã¬ãžã§ããããŸãã¯ã³ã³ãã³ãã®ä»»æã®ç¬ç«ããé ç®ã§ãããããããªãã |
| |
section | ææžãŸãã¯ã¢ããªã±ãŒã·ã§ã³ã®äžè¬çã»ã¯ã·ã§ã³ããã®æèã«ãããŠãã»ã¯ã·ã§ã³ã¯ãå žåçãªèŠåºãã䌎ããäž»é¡ã衚ãã³ã³ãã³ãã®ã°ã«ãŒãã§ããã |
| |
nav | ä»ã®ããŒãžãžãªã³ã¯ããããŒãžã®ã»ã¯ã·ã§ã³ããŸãã¯ããã²ãŒã·ã§ã³ãªã³ã¯ããã€ã»ã¯ã·ã§ã³ã®ãããªããŒãžå éšã®äžéšã |
| |
aside | asideèŠçŽ ã®åšãã«ã³ã³ãã³ããšãããã«é¢é£ãããã€ãã®ã³ã³ãã³ãããåé¢ãããšèŠãªãããšãã§ããã³ã³ãã³ãã§æ§æãããããŒãžã®ã»ã¯ã·ã§ã³ããã®ãããªã»ã¯ã·ã§ã³ã¯ã掻çå°å·ã§ãµã€ãããŒãšããŠè¡šçŸãããããšãããããã |
| |
h1âh6 | èŠåºã |
| |
hgroup | èŠåºãããã³é¢ä¿ã®ããã³ã³ãã³ãããã®èŠçŽ ã¯ãå°èŠåºãã代æ¿ã¿ã€ãã«ããŸãã¯ã¿ã°ã©ã€ã³ã衚ãã³ã³ãã³ããå«ã1ã€ä»¥äžã®pèŠçŽ ã§h1âh6èŠçŽ ãã°ã«ãŒãåããããã«äœ¿çšããŠãããã |
| |
header | å眮ããŸãã¯ããã²ãŒã·ã§ã³è£å©ã®ã°ã«ãŒãã |
| |
footer | æãè¿ãç¥å ã»ã¯ã·ã§ãã³ã°ã³ã³ãã³ãèŠçŽ ã®ããã¿ãŒããŸãã¯ãã®ãããªç¥å ããªãå Žåã¯bodyèŠçŽ ã®ããã¿ãŒãããã¿ãŒã¯ãããšãã°èª°ãæžããããé¢é£ææžãžã®ãªã³ã¯ãèäœæš©ããŒã¿ãªã©ããã®ã»ã¯ã·ã§ã³é¢ããæ å ±ãäžè¬ã«å«ãã |
|
ãã®ç¯ã¯éèŠç¯çã§ããã
sectionã¯ãäœãå¥ã®ãã®ã®äžéšã圢æãããarticleã¯èªåèªèº«ã§ãããããããã©ãããã°ã©ã¡ããã©ã¡ããåããã ãããïŒãããŠãçã®çãã¯"èè
ã®æå³ã«äŸåãã"ã§ããã
ããšãã°ã"ããã¯ã¿ãã¿ããããéãªã³ãŽã¯ã¢ããã«ãã€ã®çŽ æŽããããã£ãªã³ã°ã«ãªã"ãšã ãè¿°ã¹ã"ã°ã©ããŒã¹ãã¹"ã®ç« ã®ããæ¬ãæ³åããŠã¿ãããïŒå€åïŒä»ã®ãªã³ãŽã®çš®é¡ã®ç« ã倿°ãããããããã¯sectionã ããã
äžæ¹ã§ãã€ã¶ãããredditã®ã³ã¡ã³ããTumblrã®ãã¹ããåã«åºåã«åé¡ãããæ°èãæ³åããŠã¿ããã"ã°ã©ããŒã¹ãã¹ãããã¯ã¿ãã¿ããããéãªã³ãŽã¯ã¢ããã«ãã€ã®çŽ æŽããããã£ãªã³ã°ã«ãªãã"å
šéšããã£ãã®ã§ãarticleã ããã
èšäºã«ãããã³ã¡ã³ãã¯ã³ã¡ã³ããããŠããarticleã®äžéšã§ã¯ãªãããããã£ãŠarticleèªèº«ã§ããã