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>

Using aside instead of div

Can't the intro be wrapped using "aside" tag (as it's related to the main content of the page but is not the primary focus of the page) instead of "div" tag ? Thank you.

1 Answer

You can wrap it in an aside, but it wouldn't really be considered a best practice.

The introduction in this case is a brief declaration of what the page is about. I would certainly consider it directly related to the page content. If someone were using a screen reader, they might entirely skip over the intro because they thought it was something else.

For best practices, think of an aside as a different conversation about the same topic. It could be for an exclusive VR Gaming blog or some reviews of VR devices.

That makes sense. Thank You.

Well explained, thank you!