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 Structuring Your Content Review

Which element should be used only when no other semantic like article or aside are appropriate?

I thought <div> just structures the content so its not too wide or narrow on the browser

2 Answers

mdmaleksharafali
mdmaleksharafali
2,392 Points

Yes! correct answered is <div>

David Perkins
David Perkins
9,607 Points

Broadly speaking... the div element (without any styling) can't really do anything in terms of controlling widths, it's purely a block level element and as such can be used as a container or placeholder for almost anything. Your styling will dictate how a div is rendered in the browser.

Without styling, you won't even know that content is contained within a div (unless you view the source of the page).