Saturday, 14 December 2013

Tutorial on HTML

Heading tags in HTML:

In HTML, you can differentiate the contents by using heading tags.If your want your title or your heading to be big you can specify the tag <H1>

Examples:

<H1>First heading</H1>
<H2>Second heading</H2>
<H3>Third heading</H3>
<H4>Fourth heading</H4>
<H5>Fifth heading</H5>
<H6>Sixth heading<H6>

List tags:
In your web page,if you wish to list an item such as some special features or any offers or any thing else you can use the list tags. The tag used to list an item <li>. But you can't use just <li>First one</li>

You have to specify the whether the list is ordered or unordered list using the tags <ol> <ul>. Th tag <ol> represents the ordered list whereas the tag <ul> represents the unordered list.When the list is specified as ordered list, it will use the numbering formatting for producing specified output. When the list is specified as unordered list it uses bulleting formatting. 

Examples:

<ol>
<li>First item</li>
<li>Second item</li>
<li>Third item<//li>
<li>Fourth item</li>
</ol>

<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
<li>Four</li>
</ul>

Formatting tags:

    Other than this heading tags and list tags one can use the formatting tags also.Formatting tags such as text alignment, font colour, background colour can be used.

Examples:

Some formatting tags are 
<b>
<i>
<u>
<center>
<left>
<right>
<marquee>

Examples:

<b>This content is in bold</b>
<i>The content is in italic</i>
<u>Underline the content</u>
<center>Align center</center>

For changing the font colour, attributes are used. To change the font colour, style attribute is used.

Example:

<h1 style ="color:blue">The heading is in red</h1>



 
 
 
 
 

No comments:

Post a Comment