Do comments have to be within the <body> tag? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita

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

21st Nov 2016, 8:47 PM
2 Respuestas
+ 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
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