0
Is it possible to combine html and css in one document? If yes then how
Css
4 ответов
0
Yes, you can. Basically there are 2 ways:
#1: put your css code inside of <style></style> tag in the head section of your html document.
Ex: <style>
body{color:red; width:100%;}
</style>
#2: write your css code inside style attribute of the opening tag of html element.
Ex: <div style="background:green; position:relative;"></div>.
Hope that help!
+ 8
Yes of course you can use the <style> element or style attribute. But it is recommended to put it in separate file
+ 1
Inline, embedded, , external - all 3 are explained here
https://www.sololearn.com/learn/CSS/1079/?ref=app
0
And more detail here: https://www.w3schools.com/css/css_howto.asp