Important Notice:

Course Content
Heading Tag / Paragraph Tag
0/2
Horizontal Rules (HR element)
0/1
Font Element
0/1
Image Element
0/1
HTML Basic (Chapter 3) M2-R5.1
About Lesson

Font Element:-

HTML मे font tag के द्वारा paragraph के font को change किया जाता है यानी font tag के मदत से आप अपने text को और भी attractive बना सकते है यह element एक कंटेनर element है इसलिए यह <font> से शुरू होता है और </font> टैग के साथ समाप्त होता है

Syntax:-<font size=”value” color=”color name” face=”font name”> ……..text ……</font>

There are 3 attributes

  • Color:html मे color attribute का use font का कलर change करने के लिए किया जाताहै। इस attribute मे hex code भी लिख सकते है या फिर color का नाम दे सकतेहै
  • Size:इस attribute के द्वारा आप text का size customize कर सकते है font size का value हमेसा numbers मे दिया जाता है Minimum font size 1 and Maximum 7. Default size is 3.
  • Face:html मे face attribute के द्वारा font की family change की जाती है। यानी हम कौन सा font apply करना चाहते है उसकी जानकारी face attribute मे देते है

Font Element:-

This is the very useful HTML element because this makes our web page looks more attractive. It is used to change the size, color and style of the text. This element is a container element so it start with <font> and ends with </font> tag.

Syntax:- <font size=”value” color=”color name” face=”font name”> ……..text ……</font>

There are 3 attributes

  • Color: this attribute specifies the color name for the text written within the tag.
  • Size: size attribute specifies the size of the text written within the tag.

Note:- The range of accepted values is from 1(smallest) to 7(largest). The default size of a font is 3

  • Face: face attribute specifies the font name of the text written within the tag. Font name determines the style of writing of text.
error: Content is protected !!