Skip to content
font
Profile icon
KyraBradford

does anyone know the code to change the font in html?

You are viewing a single comment. View All
Answered by Vandesm14 [earned 5 cycles]
View Answer
Profile icon
mwilki7

CSS example:

<style> body { font-family: "Times New Roman" } </style>

HTML example:

<font size="3" color="red">This is some text!</font> <font size="2" color="blue">This is some text!</font> <font face="verdana" color="green">This is some text!</font>

Sources:
https://www.w3schools.com/css/css_font.asp
https://www.w3schools.com/tags/tag_font.asp