+ 5
The <body> tag
can i apply an id or class to the <body> tag? it works but i don’t know if that’s right or not. <html> <head> </head> <body id= "container"> </body> </html>
4 Respuestas
+ 13
it's possible but like @Mario L said it makes no sense, you can just use this in css
body {
}
or this in js
document.getElementsByTatName ("body")[0]
+ 7
yes u can
https://code.sololearn.com/WpFEQ9We601Z/?ref=app
i have added class for body to make it cool
+ 6
since there's only one body in an html document, it's useless to apply class or id to it.
+ 4
ty, that's right but I need that id to use it on Javascript