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 Sectioning Content with <article>, <nav> and <aside>

<aside>

Hi guys

My question is can we use the <aside> for displaying ads in the web?

Thanks

3 Answers

Steven Parker
Steven Parker
231,268 Points

The intended use of <aside> is for content that is indirectly related to the main document content. If the ad qualifies, then it could potentially be used, but I would expect that typical advertising might not be related to the page content at all. So with that in mind, it's probably not the best choice for an ad container.

I expect an ad would be one case where the totally generic "div" might be the best choice.

im trying to grasp the concept of <aside>. Can you give me an example on when we can use it?

Steven Parker
Steven Parker
231,268 Points

For an example, if a page's main content described the current activities of an interest group for 3-D printer users, an aside on that page might have a paragraph or two about when the group started and by whom.

oh so it's like a side reference? Like "btw blah blah blah" pertaining to the same group? something relevant but not relevant to the main content?

Thanks