I have looked this up for a hour and I’ve tryed everyway suggested do to this:
Next, within the div , add another div element and give it a class of marker .
“Hint: Your new div element should have a closing tag.”
The hint is exactly right. A div element has both an opening <div> tag and closing </div> tag. Notice that a tag always starts with < and ends with >. Do both of the tags that you added start and end with the proper characters?
thank you can you please explain to me how this works? why the need for 2 closing tags, when one is nested in the other? I wrote it this way 5 times and it said it was wrong , adding spaces helped
If they didn’t, how would you nest other elements inside of them? How would you tell where they start and end?
UPDATE: I think maybe I read your question wrong? You are asking about two closing tags? I’m not sure what you mean by this. I never said they needed two closing tags. I said a div needs an opening and closing tag. I think that’s what you intended to do, but you didn’t get the syntax right. You are missing some angle brackets.
Nesting is putting one element inside of another. For example, up to this point you have nested several meta elements, the title element, and a link element in the head element. Do you see how those nested elements are in between the opening and closing head tags?
Ahh, I think I understand now. Yes, there will be two </div> closing tags, one right after the other because you are nesting one div inside of another. The important thing is that each of those divs has their own pair of opening and closing tags.