Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How i set the secondary font in HTML?

I have set the font-family property of CSS to: font-family: Cubano, sans-serif,Arial.
Now, how i set the font of a <p> element to sans-serif.

I tried asking ChatGPT (no good answer) finding questions on Q&A websites, reading blog posts and more

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

add a class to the

element and then choose the class in css and add your font properties

.new {
font-family: "Gill Sans";
}
<p class="new">Words</p>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading