Header Ads Widget

ad728

HTML Font

HTML Font

HTML Font

Set Font Size

Set Font Size

You can set font size using size attribute. The range of accepted values is from 1(smallest) to 7(largest).

The default size of a font is 3.

Example

<!DOCTYPE html>
<html>
   <body>
   
 <font size ="1">Font size = "1"</font><br>
 <font size ="2">Font size = "2"</font><br>
 <font size ="3">Font size = "3"</font><br>
 <font size ="4">Font size = "4"</font><br>
 <font size ="5">Font size = "5"</font><br>
 <font size ="6">Font size = "6"</font><br>
 <font size ="7">Font size = "7"</font>
      
  </body>
</html>

HTML Document Output

Font size = "1"
Font size = "2"
Font size = "3"
Font size = "4"
Font size = "5"
Font size = "6"
Font size = "7"

Setting Font Face

Set Font Face

Set Font Face

You can set font size using size attribute. The range of accepted values is from 1(smallest) to 7(largest).

The default size of a font is 3.

Example

<!DOCTYPE html>
<html>
   <body>
   
 <font size ="1">Font size = "1"</font><br>
 <font size ="2">Font size = "2"</font><br>
 <font size ="3">Font size = "3"</font><br>
 <font size ="4">Font size = "4"</font><br>
 <font size ="5">Font size = "5"</font><br>
 <font size ="6">Font size = "6"</font><br>
 <font size ="7">Font size = "7"</font>
      
  </body>
</html>

HTML Document Output

Font size = "1"
Font size = "2"
Font size = "3"
Font size = "4"
Font size = "5"
Font size = "6"
Font size = "7"

0 Comments: