HTML Font

HTML Font

HTML Font

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

Example:
<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)