htmlcssuser-interfacefonts

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


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>