+ 7

Which tag should use in html to change the font color?

24th Feb 2019, 8:54 PM
Алиса
Алиса - avatar
7 Answers
+ 7
You can use it: (in span for example) <span style="color: red"> ... </span>
24th Feb 2019, 8:59 PM
parsa rashedi
parsa rashedi - avatar
+ 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!!!šŸ‘šŸ¤—šŸ¤œ
25th Feb 2019, 3:05 AM
K͔͜ɩnÉ¢ćƒ»ļ¾‘ļ½šizi šŸ–¤
K͔͜ɩnÉ¢ćƒ»ļ¾‘ļ½šizi šŸ–¤ - avatar
+ 8
Or use CSS: <style> body { color: red; } </style>
24th Feb 2019, 10:18 PM
marjel101
marjel101 - avatar
+ 7
Please note that the <font> tag is no longer allowed in HTML5. It is adviced to use CSS or the style attribute instead.
25th Feb 2019, 8:15 AM
marjel101
marjel101 - avatar
+ 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; }
26th Feb 2019, 8:03 PM
Marcin Gwóźdź
Marcin Gwóźdź - avatar
+ 1
Use CSS to style the element the font is been used. The <font> tag doesn't work in HTML 5.
26th Feb 2019, 7:09 AM
Precious
Precious - avatar