Would content outside of the "body" tag be considered as comment?

As it is said in this exercice, only content inside the opening and closing body tags can be displayed to the screen. Then, could we put any content outside of the body tags as comments ? Will the browser ignore it ?

The content outside the body will still be displayed most of the time. As far as I’m aware it is a bit inconsistent and can cause accessibility issues. In order the make something in to a comment it has to be contained in a comment tag like <!— comment here —>. Hope this helps.

1 Like