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 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 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 designing 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 <header> we will include a paragraph with the text Blog instead of the header. And this paragraph will be repeated in the header of all internal pages. It serves to explain to the visitor that this section of the website is the blog.

As part of this assignment, let’s break the text of the blog post into separate paragraphs, in the same way that we did it in 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 insistently meowed 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. Break the remaining text of the blog post into two paragraphs. Add the block of text that begins with the phrase Who would and ends with the word to talk about it to the first paragraph.
    4. Include the text that starts with The cat caught my attention and ending with And to feed the cat.

    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.