how to change font in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to change font in html

22nd Sep 2016, 4:20 AM
gulshan singh
gulshan singh - avatar
2 Answers
+ 2
Changing fonts is better in CSS mainly because you have to maintain more than one page. But if you have one-page website you can do it in html (agree that it's better in CSS). Try this code but only if you don't create html5 website because it doesn't support <font> tag from older verion of HTML: <p><font size="4" color="red" face="Arial">Some text</font></p> I recommend to learn html5 and css3 from beginning.
22nd Sep 2016, 12:02 PM
Goran Mitic
Goran Mitic - avatar
+ 1
usually fonts are changed on CSS not html
22nd Sep 2016, 7:14 AM
Mahmoodinho Ahmed
Mahmoodinho Ahmed - avatar