Saturday 26 February 2022

HTML document for Font Tag

 FONT TAG

Code :

<!doctype html>

<html>

    <head>

       <title>Font Tag</title>

    </head>

    <body>

        <h1>&#60font&#62 Tag</h1>

        <p>Fonts play a very important role in making a website more user friendly and increasing content readibility. Font face and color depends on the computer and browser that is being used to view your page but you can use HTML tag to add style, size, and color to the text on your website. You can use a tag to set all of your text to the same size, face, and color. The font tag is having three attributes called size, color, and face to customize your fonts. To change any of the font attributes at any time within your webpage simply use the tag. The text that follows will remain changed until you close with the tag. You can change one or all of the font attributes within one tag.

        </p>

        <h2>Set Font Size</h2>

        <p>You can set content font size using<b>size</b> attribute. The range of accepted values is from 1 (smallest) to 7 (largest). The default size of a font is 3.

        </p>

        <p><b>Example : </b></p>

        <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><br>


        <h3><u>Relative Font Size</u></h3>

        <p><b>Example :</b></p>

        <font size="-2">Font size = "-2"</font><br>

        <font size="-1">Font size = "-1"</font><br>

        <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>

        

        <h3><u>Setting Font Face</u></h3>

        <p><b>Example :</b></p>

        <font face="Times New Roman" size="5">Times New Roman</

        font><br>

        <font face="Verdana" size="5">Verdana</font><br>

        <font face="Comic sans MS" size="5">Comic sans MS</font><br>

        <font face="WildWest" size="5">WildWest</font><br>

        <font face="Bedrock" size="5">Bedrock</font><br>

        

        <h3><u>Setting Font Color</u></h3>

        <p><b>Example :</b></p>

        <font color="deeppink">This is deep pink color text.

        </font><br>

        <font color="green">This is green color text.</font><br>

    </body>

</html>

Web View :



Come again Learn again !

< iCodeBuzz />


No comments:

Post a Comment