4 Matching Annotations
- May 2022
-
stackoverflow.com stackoverflow.com
-
Following the newer definition, the aside element should be inside of the section element to which it is related. The main element is not a sectioning element (elements like article, section, body, figure etc. are). You can of course still place aside in main, but it will be related to the nearest sectioning element parent of main. That means there is no semantic difference (for aside) in these two examples:
```html
<body> <main></main> <aside></aside> </body> <body> <main> <aside></aside> </main> </body>```
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
-
<aside> is appropriate if the side note "could be considered separate from the content"
From a programmer's perspective:
- It shouldn't be in an <aside>, if it is actually directly about what is in <main>
- An <aside> should be able to be evaluated on its own, (almost entirely) in isolation from, and not dependent on anything in, the <main> content. This could be especially important/relevant for screen readers.
-
<aside> is not appropriate if the side note is "a parenthetical". The W3C gives no examples of what it means.
-