Process Reportbut it has not changed and I still get this black col...">

H2 color change

How can i change h2 color?

I tried <h2 color="#006699">Process Report</h2> but it has not changed and I still get this black color by default

Thanks.

+4
source share
2 answers

Try CSS:

 <h2 style="color:#069">Process Report</h2> 

If you have multiple h2 tags that must be the same color, add a style tag to the main tag, for example:

 <style type="text/css"> h2 { color:#069; } </style> 
+20
source

If you must use HTML to give your text color, you must use the (deprecated) <font> tag :

 <h2><font color="#006699">Process Report</font></h2> 

But for the rest, I highly recommend you do rekire : use CSS .

+2
source

Source: https://habr.com/ru/post/1388675/


All Articles