0
What are style attributes?
4 Réponses
+ 5
<h1> hello </h1>
You can style it in css by grabbing this h1,
h1 {
color: green;
padding: 10px;
}
Theres another way (using style attribute / inline styles)
<h1 style="color:green; padding: 10px;"> hello </h1>
+ 1
https://www.w3schools.com/tags/att_global_style.asp
Hope this helps!
+ 1
You can use css within your html file the using style tag to create inline css for html page.
+ 1
It is used for inline styling of an element.
But I think it decreases code readability .
So practise for internal using style tag or external css using style.css page.