HTML TUTORIAL: FONT TAG

HTML TUTORIAL IN HINDI

HTML TUTORIAL: FONT TAG

  • Introduction To Font Tag
  • Creating HTML Document with font tag

Introduction To Font Tag:

HTML document banane se kai by default setting aapki document me save ho jaati hai. Mano aapne wordPad me kuch word type kiya aur usse save kiya, na font change, na size change kiya! Isse wordpad by default save karta hai. Magar us word ko attractive dekhana ho to uski font and size change karna hoga.


Waise hi HTML document (website) ko ache se configure kar sakte hai, font , color, size change karke.

HTML document me fonts use karne ke liye <font> tag define karna hoga. Is tag ko aap kisi paragraph ya text par bhi apply kar sakte hai.

<font> tag ki attributes ki baat kare to iski 3 attributes hai. Attributes ki list aur details jankari niche de jaa rahi hai.

Size: Size attribute ki madat se aap font ki size change kar sakte hai. <Eg: size= “5”>

Face: Face attribute ki madat se aap font family change kar sakte hai.
Eg:
<Face: “arial”>

Color: Color attribute se koi bhi color rakh sakte hai.
Eg:
<color= “blue”>

Creating HTML Document With Font Size

Font ki size jitna chahte ho utna rakh sakte hai. Size define karne ke liye inverted commas me define karna hoga.
Eg:
<!DOCTYPE html>
<html>
<head>
<title> Font Example</title>
</head>
<body>
<font size= "8"> YFT TECH HINDI </font>
</body>
</html>
Result:
HTML TUTORIAL: FONT TAG, HTML tutorial

Font ki soze me dekh sakte hai ki me 8 define kiya hu yani us text ki size 8px hogi. Iske sath us font ki font family bhi change kar sakte hai. Uske liye aapko face attribute ko use karna hoga.
Eg:
<!DOCTYPE html>
<html>
<head>
<title> Font Family Example</title>
</head>
<body>
<font size= "8" face= "arial"> YFT TECH HINDI </font>
</body>
</html>
Result:
HTML TUTORIAL: FONT TAG, HTML tutorial

Font ki size aur font family change karne ke sath-sath uski color bhi change kar sakte hai. Iske  liye aapko color attribute use karna hoga.
Eg:
<!DOCTYPE html>
<html>
<head>
<title> Font color Example</title>
</head>
<body>
<font size= "8" face= "arial" color= "blue"> YFT TECH HINDI </font>
</body>
</html>
 Result:
HTML TUTORIAL: FONT TAG, HTML tutorial
Previous: Color Tags


Next: Block Tags
HTML TUTORIAL: FONT TAG HTML TUTORIAL: FONT TAG Reviewed by Phaguni Mandal on 11/30/2018 Rating: 5

No comments:

Powered by Blogger.