that is bec ause <bod y> is one of the sectioning roots. Theref ore, the main Untitled
Section you see in the above outline belongs to the <body> element, which acts as a
sectioning root for the entire page (provided there are no other sectioning roots). If
you want your page outline to have a title, then you should include an appropriate
heading element outside of any other sectioning element ( but inside the sectioning
root). At home, try to add a heading element outside of the <article> element in the
above example (either before or after it) to see what happens. As far as the outline is
concerned, it doesn’t matter where inside an element a heading appears as lo ng as it is
the first one—although it is a little weird to write the page title at the end, or even in
the middle of the document.
Maria: What ha ppens if you include more headings inside a section? Are they hidden
the same way as within the <header > element?
Professor: No. Each subsequent heading within a section implicitly starts a new
section. If a heading has a lower rank th an the one bef ore it, then a new section is
created, which is subordinate to the enclosing section. If, however, a h eading has
the same or higher rank tha n the one before it, the n a new section is created on the
same level in the hierarchy as the en closing section o f that heading. The en closing
section is closed even though its closing tag has not been reached yet because the
newly created section is on the same hierar chical level. Needless to say, that can cause
some confusion. I suggest that for homework you add some headings of different
ranks to different places in our last example and observe what happens. That way, if
you do n’t get lost, you w ill understand things a little better.
Maria: If a heading itself already starts a new section, why then do we need additional
explicit section definitions?
Professor: There are numerous reasons for that, many of which may n ot be quite
evident at first glance. Consider, for example, tha t a website reuses some material from
other sites, say in the form of a news feed. Such a process is called web syndication. It
can easily happen that an article from another web page is pulled under a heading with
a r ank that is lower than that of the include d article. Although the page will still work
fine, th e hierarchy will become disturbed, which could make the page more difficult for
search engines and other software to process. However, if you use HTML5 sectioning
elements, the hierarchy of the sections is defin ed by the placing of the sectioning
elements regardless of the ranks of headings within them.
2.5 Hyperlinks
Professor: All our d iscussion so far was related to the me aningful structure o f a sin gle
web page. A modern website is, h owever, more than just a single page. It is important
that yo u can build from different pages an order ed and logical structure where you r
visitor will promp tly and effortlessly find the r ight in formation. Th at’s an important
part of what we call web design, which is unfortunately not the main focus of our
course. We conc entrate more on how things are done technically, althoug h not in
complete oblivion of web design considerations.
Technically, for connecting one web page with another docu ment, we can establish a
26 Meeting 2. Building a Sound Structure