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 marking up 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 try a different page layout
  • 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 headings to give text its basic structure. HTML provides six heading levels, from <h1> to <h6>. The <h1> tag marks a top-level heading, while <h6> marks the lowest-level subheading. The “h” in these tag names stands for “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.

Use heading levels to show the structure of the whole document: <h1> for its main heading, <h2> for major sections, and <h3> for subsections.

A <section> or <article> does not automatically change the level of a heading inside it. Choose the heading level explicitly rather than relying on a separate hierarchy for each section.

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 was even assigned an instructor, Muffin, who won’t let me 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−2026

    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.