I am redoing my progress in the Responsive Web Design section since it’s been updated and I noticed it doesn’t really tell you what to do. Step 15 is instructing me to add a section element within the main element, but gives no information on how to do this. Am I missing something? The instructions on each step so far seem very vague overall.
It helps if you post your actual code and a link to the challenge you are working on. Thanks
Challenge:
How to add elements was previously covered. If you make a mistake, hints are posted to help you:
Your
section
element should have an opening tag. Opening tags have the following syntax:<elementName>
.
Mod Edit: SOLUTION REDACTED
For some reason, the authors have become rigidly attached to this word “section”.
In a real project, you can use any words to convey the meaning of the section.
The section tag is actually very useful, its not that the owners are attached to it.
I don’t understand what you mean by this.
This seems to me to be the solution to the above problem, if so, it would be good to remove this part of your post.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
I’m sorry. I’m not familiar with the rules yet.
Indeed, I wrote a little nonsense.
Hint: <section>
and </section>
should go outside the <main>
element, not within it!
I don’t think that’s what the solution is expecting?
Could be, I am fairly new. However, that’s what I did and it worked! The OP mentioned “add a section element within the main element”, so I wanted to head off that mistake.
Do you specifically know that it won’t work with the section inside of the main?
No, but the instructions say to nest them (“the elements currently located within the main element”) in a section element, so that’s what the authors are asking for.
I double checked the code in the next exercise… They are actually expecting the section element to be placed inside of the main element. Doing so passes just fine, so you don’t need to warn people not to do that.
The elements inside of the main element doesn’t include the main element itself.
Huh, I could’ve sworn it didn’t accept my code when I tried that, maybe it just got fixed. Thanks!
I don’t believe that challenge received any recent updates. You may have just made a small typo. Happens all the time.
I just checked that level, you were right! It accepts both. I’m glad it was just a typo on my part and not anything weird with the site! Thanks for your help (I’m still leaving my comment up though to explain the formatting of the section element for the OP)
Glad we sorted it out. I had previously done it with the section inside, so I was confused/concerned myself.
create a tag with <section>
after line 4 and a closing tag </section>
after line 8.
There is a flaw in this exercise. It asks to to nest them in a section
element but it passes if is nested inside ‘main’
perfect hint worked like majic