An interesting question to which I will contrast the answer: how do you view the title?
Let's say that the question in question refers to a common document. In this case, we semantically place this text in the title of the document. However, the page name may be different. If we consider the title of the page that will be associated with the content (for example, if Abracadabra Semantics leads the article itself), then it belongs not as a child of the page, but as a child of the article or section. So, in this case, our HTML code might look like this:
<body> <header> <h1>Meo frontend adventures</h1> <h2>Lorem Ipsum Dolor Sit Amet...</h2> <nav> </nav> </header> <section> <header> <h1>Abracadabra Semantics</h1> <h2>Lorem Ipsum Dolor Sit Amet...</h2> </header> <article> <p>Lorem Ipsum Dolor Sit Amet...</p> </article> </section> </body>
Semantically, we organize a page in a hierarchy. The tag above tells us what this header belongs to (or a child tag of any kind). In this case, we can have two header elements (one of which contains an introduction to the site, and the other contains an introduction to the section).
However, not everyone views this set of semantics in the same way. For example, they may treat a single page as the section in question, so they may include the page title in the title. Or their separation may be their dominant element, and the title may be the first child of the section. This is a point of view on your assessment of the content. Screen readers organize a site based on what order you put in the document; however, not everyone will do it the same way. HTML4 has forced some screen reader developers to consider CSS positioning, but HTML5 is trying to fix this by adding more semantic elements to reorganize your site.
In any case, now that you have been shown what you can do and how it works, you can make your own decision. Think about how you understand your content in the relationship with the content around it and organize it accordingly.
Just to help you a little further, take a look at the spec: http://www.w3.org/TR/html-markup/header.html
source share