+ 7
Which tag should use in html to change the font color?
7 Answers
+ 7
You can use it: (in span for example)
<span style="color: red"> ... </span>
+ 30
Use Font Element:
<font Color="#">This Is A Kind Of Text</font>
Or You Can Try:
<p style="color:red">This Is A Text</p>
ācolor:(red)=color is optional!
And There Are Aslo other Ways...
Hope You Understood!!!šš¤š¤
+ 8
Or use CSS:
<style>
body {
color: red;
}
</style>
+ 7
Please note that the <font> tag is no longer allowed in HTML5. It is adviced to use CSS or the style attribute instead.
+ 2
Well I dont recommend using style="" in HTML tags.
This is because even frontend code should be divided into:
Model - HTML;
View - CSS;
Controller - JavaScript
structure.
So use your color style in seperate CSS class:
p {
color: red;
}
+ 1
Use CSS to style the element the font is been used. The <font> tag doesn't work in HTML 5.