I added a picture to describe my problem:
IN the picture you’ll see my HTML code and what the auto grade says I’m doing wrong, but the problem Is that i still have 5 "div" tags in the "body". I don’t get it.
In the picture below you’ll see what the coursera course wants me to do step by step. Help please:
I added the "div" tags in "body", I don’t understand.
3
Answers
Probably , you’ve understood the question incorrectly. From my understanding, you need to have 5
<div>
tags on top level (i.e. not nested).Rough e.g.:
Note: I’m purposefully not giving you exact answer to your assignment, above hint will help you move forward.
Well, the issue is that the grading system is searching for divs that are directly inside the body tag. The way you have declared them is called nesting, you have basically nested all your divs inside one div: the first div. As only first div is inside the body tag and the rest of divs are inside the div tag, the grading system is not able to find them. You can modify your code so that your divs are in the body tag. Here’s a sample for you
I hope this helps
What you have done is you have added nested divs like
But they are asking for 5 seperate divs. so you have to close each div before starting the next one.
Like