Last active
September 26, 2024 19:05
-
-
Save acidtone/4186780344d39f280f4d20720534737e to your computer and use it in GitHub Desktop.
Revisions
-
acidtone revised this gist
Jan 24, 2021 . 1 changed file with 19 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,19 @@ # Aside: Proper Use In [HTML5](https://www.w3.org/TR/2014/REC-html5-20141028/sections.html#the-aside-element), `aside` is only "related to the content around the aside element". In [HTML 5.1](https://www.w3.org/TR/html51/sections.html#the-aside-element) (CR) the definition became more specific: `aside` is "related to the content of the parenting sectioning content". Following the newer definition, the aside element should be inside of the section element to which it is related. ## Sectioning elements - `body` - `header` - `footer` - `nav` - `article` - `section` - `aside` ## Attributions - Stackoverflow: [Should I have aside element ouside or inside of main element?](https://stackoverflow.com/questions/38023089/should-i-have-aside-element-ouside-or-inside-of-main-element) - MDN: [Using HTML sections and outlines](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines) -
acidtone revised this gist
Jan 24, 2021 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ -
acidtone revised this gist
Jan 24, 2021 . 1 changed file with 1 addition and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,10 +10,6 @@ <aside><!-- related to the section --></aside> <div> <aside><!-- related to the section (not to the div!) --></aside> </div> @@ -36,7 +32,7 @@ </nav> <footer> <aside><!-- related to the footer --></aside> </footer> </body> -
acidtone revised this gist
Jan 24, 2021 . 1 changed file with 42 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,42 @@ <body> <main> <article> <aside><!-- related to the article --></aside> <section> <aside><!-- related to the section --></aside> <blockquote> <aside><!-- related to the blockquote (not to the section!) --></aside> </blockquote> <div> <aside><!-- related to the section (not to the div!) --></aside> </div> </section> </article> <aside><!-- related to the body (not to the main!) --></aside> </main> <aside> <!-- related to the body --> <aside><!-- related to the (parent) aside --></aside> </aside> <nav> <aside><!-- related to the nav --></aside> </nav> <footer> <aside><!-- related to the body (not to the footer!) --></aside> </footer> </body> -
acidtone created this gist
Jan 24, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@