HTML Academy
The aside tag, which is used to specify additional content
HTML document structure11/19
Back to the list of tasks
  • 1. The HTML doctype, or document type declaration
  • 2. Basic HTML tags
  • 3. The head tag, which provides metadata information about the page
  • 4. The title tag for page titles
  • 5. The main tag for main content
  • 6. The header and footer tags
  • 7. The section tag, which is used for semantic sections
  • 8. The nav tag, which is used to specify the main navigation
  • 9. The article tag, which is used to indicate an independent section
  • 10. The aside tag, which is used to specify additional content
  • 11. The h1-h6 and title tags in HTML
  • 12. The p tag for paragraphs
  • 13. Let’s finish designing our pages
  • 14. The meta tag, which is used for page character encoding
  • 15. The meta tag, which is used for keywords
  • 16. Let’s connect another frame to the page
  • 17. Summary of “HTML document structure”
  • 18. First challenge
  • 19. First mastery challenge
The p tag for paragraphs
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

The h1-h6 and title tags in HTML

We have finished creating templates for the major webpage blocks. Now let’s go back to the main webpage and work a little on the structure of the text content.

We use headers to create the basic structure for the text. HTML specifies an entire family of header tags: from <h1> to <h6>. The <h1> tag indicates the most important heading (top level heading), whereas the <h6> tag denotes the lowest level subheader. The letter “h” in the tag name stands for the first letter in “heading”.

In practice, subheadings that are lower than the third level are rarely found in texts. Therefore, the most commonly used tags are <h1>, <h2> and <h3>:

<h1>HTML specification</h1>
<h2>Section 1: Introduction</h2>
<h3>Section 1.1: The origin of the language</h3>

Search engines assign particular weight to headings, and well-placed headings are important for making the document accessible. Therefore, you need to learn how to correctly use headings.

The heading <h1> is the most important on the page. You should use it to mark the text that generally describes the page content. It is very important to ensure that there is only one first level heading on the page.

A top level heading is often added to the website header of main pages. We will do the same for our template.

In HTML5, it became possible to use your own hierarchy of headings with tags in order to create meaningful sections that were independent of the rest of the document. Now you can use several <section> or <article> tags with your own <h1>, <h2> and <h3> tags on a page.

People have discovered that this mechanism hinders more than it helps in practice, and browsers and other accessibility tools are not rushing to support this feature. Thus, people have returned to using the good old transparent hierarchy of headings throughout a document.

Comments

  • index.html
HTML
<!DOCTYPE html> <html lang="en"> <head> <title>The website of a beginning coder</title> <link rel="stylesheet" href="outlines.css"> </head> <body> <header> Website header </header> <main> <nav> Navigation </nav> <section> Greetings to everyone! Welcome to my first site. Up until just recently I had no idea what a coder does for a living, but now I have found interactive courses in HTML and CSS and I have set myself the goal of becoming one. I even was assigned an instructor, Muffin, who does not allow me to slack off and will track my progress. My first assignment is to keep a diary and honestly write about all of my accomplishments. </section> <section> Skills section </section> </main> <footer> Website footer </footer> </body> </html>

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Goalscompleted
0
    1. Replace the placeholder text in the website header with the tag <h1> containing the text The website of a beginning coder.

    Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

    VISAMastercard

    Log in

    or

    Forgot your password?

    Sign up

    Sign up

    or
    Log in

    Restore access

    Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

    Forgot to connect your email to the profile? Email us and we’ll help.