+ 1
How can i reference css file to body of html on sololearn plateform??
6 Respuestas
+ 1
Well, bgcolor is a deprecated attribute in HTML5.
https://www.w3schools.com/tags/att_body_bgcolor.asp
You can instead use:
body {
background-color: blue;
}
instead. Since the CSS file is automatically linked to the HTML file, you don't need to explicitly link your stylesheet file through a style tag.
+ 1
i have used style tag
but href="....??"
what to put the path of the css file to be refrenced
+ 1
ooh that means un this sololearn plateform no need of style tag
+ 1
i can write simply <body bgcolor:"blue">
+ 1
Anytime! 😊👍
0
and mention it it in the css section