Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

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 7,117 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.