HTML HTML Basics Structuring Your Content Grouping Content with <main> and <div>

Jake Almendarez
seal-mask
.a{fill-rule:evenodd;}techdegree
Jake Almendarez
Front End Web Development Techdegree Student 4,190 Points

sections outside main?

is it possible to use section outside of the main tag or is it better practice to use aside? like if its info on how to contact me. would that be considered a section or aside?

1 Answer

Gerald Susanteo
seal-mask
.a{fill-rule:evenodd;}techdegree
Gerald Susanteo
Front End Web Development Techdegree Student 4,492 Points

Hey Jake! The HTML section element, defined by section tags, defines a section of a document, web page, or an application. While <aside> should be used to show that it is indirectly related to the surrounding content. I'm also new but would like to help others but in my opinion, using a <aside> for contacting me is more suited than using <section> since it's not directly related to your topic. (if you're writing an article about fish or something else besides yourself) But I recommend using <div> tags. If you don't know what they are you will soon learn them! If you still don't understand my explanation check these websites for help. Just remember <sections> organizes your webpage to see different parts of a document while <aside> tells you that the topic isn't fully related to what you're talking about in your webpage

https://www.bitdegree.org/learn/html-section#:~:text=HTML%20section%20tags%20surround%20a,opening%20and%20ending%20section%20tags.

https://www.w3schools.com/tags/tag_aside.asp#:~:text=The%20tag%20defines%20some,anything%20special%20in%20a%20browser.