What happens if you place the head tag inside the body tag?

Is there anything significant that changes if the head tag is placed inside the body tag, aside from the content of the head tag now being displayed on screen?

Please do not remove this link to the unit. Given a lesson number we can find our way from here.


It does not change much in terms of performance, but head should always stay above body. It will be confusing to anyone reading your code.

Head also stores your css and other metadata. This should come first before any content is loaded onto the screen.

Hope this helps :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.