HTML Academy
The article tag, which is used to indicate an independent section
HTML document structure10/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 h1-h6 and title tags in HTML
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

The aside tag, which is used to specify additional content

There is another major logical container besides <section> and<article>. It is the <aside> tag.

The <aside> tag is used to include additional content that is not directly related to the main content. These blocks are often referred to as sidebars or side panels, but it‘s not the position on the page that determines whether to use the <aside> tag, it‘s the fact that the content is not directly related.

<aside>
  I am just a modest block that displays currency exchange rates on a website about fish
</aside>

We should also use <aside> on our internal website page. Later we will be able to include links to similar blog posts, tweets or some other such content (who knows what the boss will think of next).

We can assign various styles to tags, which can be used to solve various types of problems, by using template styles. In doing so, we have made use of the type system that is described in the HTML specification. Here is an explanation:

  • The dotted line is used to highlight the special tag <body>.
  • A blue box is used to highlight flow tags, which are usually used to mark major structural blocks in pages, such as, for example, <main>.
  • A purple box is used to highlight tags that are used to create semantic sections, such as, for example, <section>.
  • An orange box is used to highlight heading tags, such as, for example, <h1>.
  • A pink box is used to highlight flow tags, which are usually used to directly mark up text elements, such as, for example, <p>.

Of course, there are even more types that are defined in the specification. But we have not chosen to format everything: we have limited ourselves to only those tags that we need for our template.

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> </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. Add the <aside> tag with the text Your ad could go here after <article> inside <main>.

    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.