HTML Academy
The p tag for paragraphs
HTML document structure13/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 meta tag, which is used for page character encoding
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

Let’s finish marking up our pages

We have finished with the text on the main page. Let’s mark up the text on the internal page as well.

On the main page we included the heading <h1> in the website header. This is a typical solution for main pages. On internal pages, the first level heading is most often found in the main content, meaning inside the <main> tag.

For example, on the current blog page, it is best to enclose the heading for the post itself in <h1> tags. After all, this is the most important heading. The whole page is devoted to “How I forgot to feed the cat on Day One”!

We will place this heading in <article> inside <main>.

In the page’s <header>, we will use a paragraph with the text Blog instead of a heading. This paragraph will appear in the header of every internal page, showing visitors that they are in the blog section of the website.

Let’s divide the blog post into paragraphs, just as we did in the previous assignment.

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> <nav> Return to home </nav> </header> <main> <article> Day One. How I forgot to feed the cat. Who would have thought that semantics was so important? I had an urgent need to talk about it. The cat caught my attention. The cat kept meowing at me. And then I realized — it’s time for me to write the first blog entry. And to feed the cat. </article> <aside> Your ad could go here </aside> </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. Format the text Day One. How I forgot to feed the cat. as a first level heading.
    2. Add the paragraph with the text Blog to the website header before the navigation block.
    3. Divide the remaining blog post text into two paragraphs. In the first paragraph, include the text from Who would to to talk about it.
    4. In the second paragraph, include the text from The cat caught my attention to And to feed the cat.

    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.