HTML video tutorial – 19 – html font tag



HTML font tag:
html font tag is used to change the font face, font color and font size. html font tag is a paired tag.

font tag has three important attributes:
size: used to change the size of the font (min =1 and max =7).
color: used to change the color of the text.
face: used to change the font style or font face of the text.

Fonts can be broadly categorized as: Serif and Sans-Serif

Serif fonts: Serif fonts contain extra arms and base at the end of the line strokes.
Ex: Times New Roman

Sans serif fonts: without serif.
Ex: Arial

Use serif fonts for heading.
Use sans serif fonts for paragraphs.

Font family: Arial
Font face: Arial black, Arial narrow etc

Example Code:

<html>
<head>
<title>HTML attributes</title>
</head>
<body>
Hello <font size=”5″>HTML!</font> <br/>
Hello <font size=”5″ color=”red”>HTML!</font> <br/>
Hello <font size=”5″ color=”red” face=”arial”>HTML!</font> <br/>
</body>
</html>

========================================================

Follow the link for next video: https://youtu.be/FNe2vmUsLiQ

Follow the link for previous video: https://youtu.be/MqBB5FX3VXw

========= For more benefits & Be up to date ===================
Subscribe to “chidres tech tutorials” channel: it’s free

Visit to Chidre’s Tech Tutorials website:
https://www.chidrestechtutorials.com

Like the Facebook fan page:
https://www.facebook.com/ManjunathChidre

========================================================

========== HTML Questions & Answers ======================

1. Which of the following HTML code is valid code?
a. colour=’red”
b. color=”red’
c. color=”red”
d. colour=”red”
Answer: c

2. Which of the following attribute(s) we can use with font tag?
a. size
b. face
c. color
d. All of above
Answer: d

========================================================

source

Reply


Build A Site Info