Thursday, 30 March 2017

Formatting Elements in HTML

Text Headings <Hn> Element -This is a container element specified by <Hn> tag, where n is a natural number from 1 to 6. This element is used to give section headings. H1 gives the most prominent heading, while H6 gives the least prominent heading. Heading element introduces a blank line above and below the header text.
Syntax:
                 <Hn>. . .<Hn>, where n is an integer in the range 1 to 6

BoldFace <B> element -This is a container element started by <B> and ended by </B> tags. This element is used to display the text enclosed within the tags in bold form.
Syntax:
                <B>. . .</B>

Italics <I> element -This is a container element started by <I> and ended by </I> tags. This element is used to display the text enclosed within the tags in italics form.
Syntax : 
                <I>. . .</I>

Underline <U> element -
This is a container element started by <U> and ended by </U> tags. This element is used to underline the text enclosed within the tags.
Syntax: 
                <U>. . .</U>

For Example:Web Page with different fonts and alignment 

No comments:

Post a Comment