HTML font is used to give fonts (like Times New Roman, Verdana, courier etc.) to the text on web page.

  • HTML Fonts is defined by style="font-family:value;" syntax.

  • In the place of value, we can give values of font family style like verdana, courier, arial etc.

  • It can be used with any HTML element inside Opening tag.

<p style="font-family:courier;">The text comes in courier font style.</p>
<p style="font-family:verdana;">The text comes in verdana font style.</p>
Run Code »
Example Explanation:

In the above, we have shown an example of HTML Font Style Attribute.

  • In Paragraph Tag, we have used font-family style attribute which is used to give different font family on the web page.

  • When we use different font family, then it improves the readability as well as the appearance of text on the web page.

Run the code to see the effect.

HTML Font in Hindi

Best Use:360p or more (480p or 720p)

Course Menu