Skip to content
Sign upLog in
← Back to Community

font

Profile icon
KyraBradford

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

Answered by Vandesm14 [earned 5 cycles]
View Answer
Voters
Profile icon
14-pnithaanpnit
Profile icon
AvaniMukkawar
Profile icon
ArifUl1
Profile icon
oxxeysky6340
Profile icon
alightbourn
Profile icon
fingerpanic
Profile icon
KyraBradford
Comments
hotnewtop
Profile icon
Vandesm14

<p style="font-family: monospace">Hello World</p>
Just change the "monospace" to the font of your choice: https://www.w3.org/Style/Examples/007/fonts.en.html

Please mark this as answered if I helped your problem 👍

Profile icon
brownlaur57

Thanks for your sharing! I also want to share tunnel rush, one of my favorite games, with you guys. You can play this entertaining game either by yourself or with pals. Let's give it a shot; you'll like it!

Profile icon
StephenCMorales

This HTML coding must require lots of training and knowledge. But if you want to find the font designs easily then you can check this website https://masterbundles.com/fonts/serif/slab/. You can easily find the font design's here without any hassle.

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