locked
Which of pattern in semantic HTML is correct? RRS feed

  • Question

  • User161363479 posted

    Hello,
    We use "article" tag in "section" or "section" in "article" tag?


    Saturday, October 27, 2018 3:24 PM

Answers

  • User-474980206 posted
    Both are valid if the content matches.

    Articles in a section, infer the section is part of the pages, and the articles are independent of each other. Say the section is sports news, and the articles are about different teams.

    Section in an article infer the the article is one topic and the sections are related to it. Say a story about a sport team, and the sections are about important games.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 27, 2018 3:46 PM