I have put the div element inside the body element and copied all the other components into the div element. the id with “menu” is in the div open element. I have looked up the case and mine looks like them . I can not seem to get this correct
I do not understand the instructions, "Add a div element inside the body element and then move all the other elements inside the new div.
“Inside the opening div tag”, “add the id” attribute “with a value of menu”. where exactly “inside the div” when the whole of the body is inside the div element. Also, my word “menu” is showing up on my template, but it seems the ‘code’ is not acceptable. I need some extra guidance.
I don’t understand your help as I have tried multiple combinations of this “inside the div tag” when I put it up top, the “Menu” does not show up to the left under the centered Coffee word. Plus “all the body had to be moved INSIDE the div element” that is a lot, the closing div is after the main closing (which is inside and BEFORE the body closing) which makes all that “moved inside the div”
Add a div element inside the body element and then move all the other elements inside the new div.
Please clarify the specification here: Inside the opening div tag, add the id attribute with a value of menu. I did get Menu to arrive on my screen adjusted left under coffee with this configuration, but its not correct… I think it looks good lol
[quote=“CatieA, post:1, topic:731688”] <div <main>
That was my understanding of "Add a div element inside the body element and then move all the other elements inside the new div.
as this was INSIDE the body and I moved everything inside the body which (I understood ) was every thing in the MAIN
Yes, I close the open div tag here ' ’ which you see is after the main close and BEFORE the body close which makes the div INSIDE the body and include (opening div < and closing /div> ) inside the main open and close
The instructions are saying to “move all other elements inside of the new div (element)”. It does not say “move all other elements inside of the new div tag”. You can never place an element inside of a tag, that’s not allowed.
This is an example of elements inside of other elements (though, that id element isn’t a valid HTML element).