Tribute page project body tag question

just a question here. i noticed that on the example page, html has no body tag, but css has.
does it supposed to work like this?


Codepen automatically inserts the boilerplate code for you, so your HTML doesn’t need a <body> tag as everything you write in the HTML box will be rendered as if it were in the <body> tag.

Thanks for the quick answer! makes sense.

To be technical the body tag is optional, but most people use them because it’s been that way for awhile now. Also, because it’s better to be explicit than implicit.

1 Like