Formatting Tags in HTML

https://www.itcomputerguruji.com/2021/04/formatting-tags-in-html.html

HTML Formatting Tags :-

The character formatting tags are used to specify how a particular text should be displayed on the screen to distinguish certain characters within the document.

The most common character formatting tags are:

Bold <B>: displays text in bold

Example:  Welcome to  <B> IT Computer Guruji </B>

Italics <I>: displays text in Italic

Example:  Welcome to the <I> IT Computer Guruji </I>

Underline <U>: displays text in underline

Example:  Welcome to the <U> IT Computer Guruji </U>

Subscript <SUB>: displays text in Subscript

Example:  H<SUB>2</SUB>O    

Superscript <SUP>: displays text in Superscript

Example:  1<SUP>st</SUP>        

Strong < STRONG>: This tag is used for provide the bold format on selected text. This tag work same as <b>.

Small <SMALL>: displays text in smaller font as compared to normal font

Big <BIG>: displays text in larger font as compared to normal font

Em <em>: tag defines emphasized text, with added semantic importance.

Mark <mark>: element defines marked or highlighted text:

Del <del>: element defines deleted (removed) text.

Ins <ins>: element defines inserted (added) text.

Pre <PRE> : Stands for pre-define. This tag is used for display the text on browser as it is display as it is display on an editor

Font Tag <FONT> :-

By using <FONT> Tag you can specify the colors, size and face of the text.

Example:  <FONT> Your text goes here </FONT>

Attributes of <FONT>Tag:

COLOR: Sets the color of the text that will appear on the screen. It can be set by giving the value as #rr0000 for red in RGB hexadecimal format), or by name.

Example: <FONT COLOR="RED">your text goes here </FONT>

SIZE: Set the size of the text, takes value between 1 and 7, default is 3. Size can also be set relative to default size for example; SIZE=+X, where X is any integer value and it will add with the default size.

Example:

<FONT SIZE= “5”> Font Size changes to 5 </FONT>
<FONT SIZE= “+3”> Font Size changes to 6 i.e. default size (3) +3</FONT>

FACE: Sets the normal font type, provided it is installed on the user’s machine.

Example:  <FONT FACE="ARIAL"> the text will be displayed in Arial</FONT>


Post a Comment

1 Comments