How can we use many fonts rather than bold and italic using HTML tags | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can we use many fonts rather than bold and italic using HTML tags

I want to add Comic sans font for this code https://code.sololearn.com/WwnK6UPXR8K6/?ref=app

9th Sep 2023, 10:11 AM
P A Arrchith Iyer
P A Arrchith Iyer - avatar
3 Answers
+ 5
font-family: "Comic Sans MS", "Comic Sans", cursive;
9th Sep 2023, 10:31 AM
JaScript
JaScript - avatar
+ 3
For different fonts go to google fonts choose your font implement link to the font into the head,above your css link. Then use fonts using font-family:font name,alternative font name,default font name; Alternative fonts and default are optional.But in case your major font dont work browser can use next one.
9th Sep 2023, 12:04 PM
Samir Krasnic
Samir Krasnic - avatar
+ 2
Thank you JaScript
9th Sep 2023, 10:45 AM
P A Arrchith Iyer
P A Arrchith Iyer - avatar