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 One Solution

This lesson is contradictory

Before this practice, in one of the quizzes, it didn't allow me to wrap the aside element inside the main element, it said something like it's not a good practice, but now the instructor is doing it in this practice.

So what's the right approach? Aside goes inside main tags or not?

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi Diego,

It's a bit difficult to comment too much withoyut looking at the context of the code or the project. One thing that migth help is if you look around on google for some indicators as to why the code challenge might have told you what it did and why the instructor coded the way they did.

For example I typed "use aside tag insinde main" into google and it came up with this and it might explain what aside might refer to semantically.

https://stackoverflow.com/questions/38023089/should-i-have-aside-element-ouside-or-inside-of-main-element#:~:text=You%20can%20of%20course%20still,sectioning%20element%20parent%20of%20main%20.&text=If%20your%20is%20directly,it%20in%20the%20.

Admittedly the information is a few years old but at the time if was a candidate recommendation that aside n HTML 5.1 (CR) the definition of aside be "related to the content of the parenting sectioning content".