Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6385261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:52:38+00:00 2026-05-25T02:52:38+00:00

Every time I create a HTML5 page, I struggle with where to put the

  • 0

Every time I create a HTML5 page, I struggle with where to put the main page title. Everybody seams to handle this differently…

Here is the situation:

Let’s say I have a website that is called “Meo’s frontend adventures”. On this site there is a page called “Abracadabra Semantics” with a sub title that is not important, like “lorem ipsum delor”

There is also a navigation that is on top of the site, a footer and some contents.

In HTML 4.0 I would do it this way:

- div.header
   + div.nav
   + a.siteName:  "Meo's frontend adventures"
- div.contents
   + h1.pageTitle: "Abracadabra Semantics"
   + strong.lead: "lorem ipsum delor"
   - div.cn
     + h2
     + p
     + etc..
+ div.footer 
     +ul.footerNav

Now, in HTML5 basically every structural element gets a H1. Where should I put the title of the actual page?

I would do like so:

- header
   + h1.siteName:  "Meo's frontend adventures"
   + nav
- section.contents
   - header
      -hgroup
        + h1: "Abracadabra Semantics"
        + h2: "lorem ipsum delor"
   - article
     - header
       +h1.ArcticleTitle
     + p
     + etc..
- footer
     + nav 

I’m not sure if it is right to put the title of the actual page in the main section or if it should be in the header of the document. I just did it like this out of my old HTML4 thinking.

It would be more logical to me to put it in the header of the document, since this page is about this topic. But in every example I found, the page title is in the main section and the title of the website is in the header.

In HTML 4 it is easy to decide: h1 = topic title. But it’s not so clear to me in HTML5.

How does Google or a screen-reader determines what the title of the contents is? What structure would you use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:52:38+00:00Added an answer on May 25, 2026 at 2:52 am

    Interesting question, to which I’ll pose a counter-point for the answer: How do you view the title?

    Let’s say that the questioned title is referring to the overall document. In this case, semantically we would put that text in the header of the document. The page title however can be a different matter. If we view the page title to be related to the content (For example, if Abracadabra Semantics is heading the article itself), then it belongs not as a child of the page, but as a child of the article or section. So, in that case, our HTML might look like this:

    <!-- Head stuff here -->
    <body>
      <header>
        <h1>Meo's frontend adventures</h1>
        <h2>Lorem Ipsum Dolor Sit Amet...</h2>
        <nav>
          <!-- ul of navigation items -->
        </nav>
      </header>
      <section>
        <header>
          <h1>Abracadabra Semantics</h1>
          <h2>Lorem Ipsum Dolor Sit Amet...</h2>
          <!-- optional introductory text -->
        </header>
        <article>
          <p>Lorem Ipsum Dolor Sit Amet...</p>
        </article>
        <!-- Other potential related articles -->
      </section>
      <!-- Possible footer -->
    </body>
    

    Semantically, we are organizing the page in a hierarchy – The tag above tells us to what this header (or child tag of any sort) belongs. In this case, we can have two header elements (one which offers an introduction to the site, and another offering an introduction to the section).

    However, not everyone views this set of semantics the same way. For instance, they may view the individual page as the section in question, so they may include their page title in the header. Or, their section may be their dominating element, and the heading the first child of the section. It’s point of view in regard to your estimation of the content. The screen readers will organize the site based on what order you lay out the document; however, not all will do this the same way. HTML4 forced some developers of screen readers to take CSS positioning into account, but HTML5 seeks to correct this by putting more semantic elements into play to reorganize your site.

    Anyhow, now that you’ve been shown what you can do, and how it works, you can make your own decision. Think about how you understand your content in relationship to the content around it, and organize accordingly.

    Just to help you out a little further, take a look at the specification: http://www.w3.org/TR/html-markup/header.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Every time I create a new project I copy the last project's ant file
Every time I create an object that has a collection property I go back
every time i create a FileInfo object and access it's lastaccesstime property, it's always
Every time I create a new excel sheet, I have to go in and
I want to create a custom control in C#. But every time I have
I need to create an array of images in which, every time I tap,
I know how to use tags in subversion. I create a tag every time
Here's the idea: User hits a page where he can create an item. On
vs2008 (and earlier versions) always creates empty folders in c:\users\<username>\my documents every time it
I'm writing a Word/VBA macro for a document template. Every time a user saves/creates

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.