From 85995f210b03d8608689525b6572c0c8d663615f Mon Sep 17 00:00:00 2001 From: maryamrmz Date: Sat, 13 Mar 2021 11:43:33 +0330 Subject: [PATCH] style(HTML): put the word section inside the code tag for more readability (#3092) --- files/en-us/web/html/element/section/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/html/element/section/index.html b/files/en-us/web/html/element/section/index.html index 05ea483b1621b1a..6737f97be42fcd6 100644 --- a/files/en-us/web/html/element/section/index.html +++ b/files/en-us/web/html/element/section/index.html @@ -64,7 +64,7 @@

Usage notes

  • If the contents of the element represent a standalone, atomic unit of content that makes sense syndicated as a standalone piece (e.g. a blog post or blog comment, or a newspaper article), the {{HTMLElement("article")}} element would be a better choice.
  • If the contents represent useful tangential information that works alongside the main content, but is not directly part of it (like related links, or an author bio), use an {{HTMLElement("aside")}}.
  • If the contents represent the main content area of a document, use {{HTMLElement("main")}}.
  • -
  • If you are only using the element as a styling wrapper, use a {{HTMLElement("div")}}. A rule of thumb is that a section should logically appear in the outline of a document.
  • +
  • If you are only using the element as a styling wrapper, use a {{HTMLElement("div")}}. A rule of thumb is that a <section> should logically appear in the outline of a document.
  • To reiterate, each <section> should be identified, typically by including a heading ({{HTMLElement('h1')}}-{{HTMLElement('h6')}} element) as a child of the <section> element, wherever possible. See below for examples of where you might see a <section> without a heading.