20 Best Web-Safe HTML Fonts
- Arial. Arial is a versatile sans-serif font with a contemporary feel. ...
- Arial Narrow. Arial Narrow is one out of 38 styles of the Arial font family. ...
- Times. Times is a highly legible serif font due to its visible contrast and condensed style. ...
- Times New Roman. ...
- Helvetica. ...
- Courier. ...
- Courier New. ...
- Verdana.
Which font can be used in HTML?
For web-safe fonts, you can use serif, sans-serif, monospace, cursive, fantasy, and MS fonts.
How do I put fonts in HTML?
To change font type purely with HTML, use the CSS font-family property. Set it to the value you want and place it inside a style attribute. Then add this style attribute to an HTML element, like a paragraph, heading, button, or span tag.
Is font still used in HTML5?
The <font> tag is obsolete in HTML5. Use CSS instead to format the text. The CSS equivalents would be color, font, font-family, font-size, etc.