Font Tag < font >
Font Tag <font></font>:-
The <font> tag specifies the font face, font size, and color of text.
Syntax:-
<font face="font name" size="value form 1 to 7" color="color name"> text!</font>
Attributes:-
Example:-
<html>
<head>
<title>Index | Font Tag </title>
<head>
<body bgcolor="lightblue" text="black">
<!-- example of formatting tags -->
<h2>Text formatting Tags</h2>
<b> - Bold text</b><br>
<strong> - Important text</strong><br>
<i> - Italic text</i><br>
<em> - Emphasized text</em><br>
<mark> - Marked text</mark><br> <!--it automatically gives yellow background-->
<small> - Small text<small><br>
<del> - Deleted text</del><br>
<ins> - Inserted text</ins><br>
<sub> - Subscript text</sub><br>
<sup> - Superscript text</sup><br>
<h1><font face="elephant" color="red" >NOTEPAD ++ </font></h1>
<br>
<font face="elephant" size="6" color="red" >NOTEPAD ++ </font>
<hr align="center" size="3" width="25%" color="green">
<b>Notepad</b> is a basic <i>text-editing program</i> and
it's most commonly used to <mark>view or edit text files.</mark>
A text file is a file type typically identified by the .
txt file name <u>extension</u>.
<body>
</html>
The output of above example:-
To Download HTML File:- ClickHere
The <font> tag specifies the font face, font size, and color of text.
Syntax:-
<font face="font name" size="value form 1 to 7" color="color name"> text!</font>
Attributes:-
Attribute
|
Value
|
Description
|
color
|
rgb(x,x,x)
#xxxxxx colorname |
Specifies
the color of text
|
face
|
font_family
|
Specifies
the font of text
|
size
|
number
|
Specifies
the size of text
|
Example:-
<html>
<head>
<title>Index | Font Tag </title>
<head>
<body bgcolor="lightblue" text="black">
<!-- example of formatting tags -->
<h2>Text formatting Tags</h2>
<b> - Bold text</b><br>
<strong> - Important text</strong><br>
<i> - Italic text</i><br>
<em> - Emphasized text</em><br>
<mark> - Marked text</mark><br> <!--it automatically gives yellow background-->
<small> - Small text<small><br>
<del> - Deleted text</del><br>
<ins> - Inserted text</ins><br>
<sub> - Subscript text</sub><br>
<sup> - Superscript text</sup><br>
<h1><font face="elephant" color="red" >NOTEPAD ++ </font></h1>
<br>
<font face="elephant" size="6" color="red" >NOTEPAD ++ </font>
<hr align="center" size="3" width="25%" color="green">
<b>Notepad</b> is a basic <i>text-editing program</i> and
it's most commonly used to <mark>view or edit text files.</mark>
A text file is a file type typically identified by the .
txt file name <u>extension</u>.
<body>
</html>
The output of above example:-
To Download HTML File:- ClickHere
not cleared
ReplyDelete