0

Do comments have to be within the <body> tag?

21st Nov 2016, 8:47 PM
Lindsey
2 Answers
+ 2
No, comments can be anywhere in your HTML code. They will be ignored by the browser's renderer anyway, that's why it doesn't matter where you put them.
21st Nov 2016, 9:28 PM
Arthur Busser
Arthur Busser - avatar
0
like earlier stated comments can be anywhere for instance in your <body></body> tag place this <!--section 2--> or copy and place in any part of your html document comments are majorly used for descriptions
22nd Nov 2016, 4:19 PM
Emmanuel S Thicksky
Emmanuel S Thicksky - avatar