How to change font in html

How do you change the font of text in HTML?

To change the text font in HTML, use the style attribute. The style attribute specifies an inline style for an element. The attribute is used with the HTML <p> tag, with the CSS property font-family, font-size, font-style, etc. HTML5 do not support the <font> tag, so the CSS style is used to change font.

What is font style in HTML?

Some Font Examples
Generic Font Family Examples of Font Names
Sans-serif Arial Verdana Helvetica
Monospace Courier New Lucida Console Monaco
Cursive Brush Script MT Lucida Handwriting
Fantasy Copperplate Papyrus

How do I change my text font?

Change text & display settings
  1. Open your device’s Settings app.
  2. Tap Accessibility Text and display.
  3. Tap Font size.
  4. Use the slider to choose your font size.