0

Html. How change color the <h1> any text </h1>?

5th Feb 2017, 4:07 PM
Игорь Дорошенко
Игорь Дорошенко - avatar
4 Answers
+ 3
<h1 style="color:red;">Any text </h1>
5th Feb 2017, 4:12 PM
Alireza M
Alireza M - avatar
+ 1
<h1 style="color:blue;">any text</h1>
5th Feb 2017, 4:13 PM
Christopher Ward
Christopher Ward - avatar
+ 1
Attribute 'color' of html element <font> ( <font color="red"> ) is deprecated in HTML5, as the <font> too... You must use css instead both ^^
7th Feb 2017, 10:22 PM
visph
visph - avatar
0
In CSS: h1 { color: red; } in HTML: <h1 style="color:red;">any text</h1> and HTML5 as Krishna said, add color:red to opening h1 tag.
5th Feb 2017, 4:15 PM
Andre van Rensburg
Andre van Rensburg - avatar