Physical Style Tags in HTML - Technology & Web designing

Breaking

Tuesday, 28 April 2020

Physical Style Tags in HTML

Physical Tags :

The <B> Tag : The <B> tag used to indicate text that should appear in bold face.

Attribute : ID, STYLE

The <U> Tag : The <U> tag used to underline text in a document.

Attribute : ID, STYLE

The <I> Tag : The <I> tag used to Italic the text in a document.

Attribute : ID, STYLE

See below example of all three tags :

<B><I><U>HYPERTEXT MARKUP</U></I></B>

Output :

HYPERTEXT MARKUP

The<SUB> Tag : The <SUB> tag is used to indicate subscript in the document.

Attribute : ID, STYLE

The <SUP> Tag : The <SUP> tag used to indicate superscript in the document.

Attribute : ID, STYLE

See below the example of two tags :

H<SUB>2</SUB>SO<SUB>4</SUB>

(A+B)<SUP>2</SUP>

Output :
H2SO4
(A+B)2

The <CENTRE> Tag : The <CENTRE> tag used position text an equal distance between the left and right edges of the document.

The <S> Tag : The <S> tag is used to display strike through text.

E.g <S> Information Technology </S>

Output : Information Technology

The <B> Tag : It is used to display text in 1 size larger font, than the surrounding text.

The <small> Tag : It is used to display text in 1 size smaller font, than the surrounding text.

The <FONT> Tag and their attributes :

The <FONT> Tag : The <FONT> sets font characteristics of the font in a browser used to display text. Default font size is 3 and range from 1 to 7. It can also specify to relative size by using + or -. Colour attribute uses values as color name or color code in term of HEX code i.e. #ffffff (#RRGGBB) Red/Green/Blue.

Color NameHEX
Black#000000
Blue#0000FF
Brown#A52A2A
Gray#808080
Green#008000
Indigo#4B0082
Maroon#800000
Purple#800080
Red#FF0000
White#FFFFFF
Yellow#FFFF00

Face : It is used to change the face of the font.

E.g. <font face="Times New Roman" size "+2" color="red">Font Change </font>

Thus <font> has color, size and face as it's attributes.

No comments:

Post a Comment

If you have any doubts regarding this please comment or email us.