HTML For Beginners: Part 2

Introduction

 
Before reading this please have a look at the following link.
 
Various tags used in HTML
  • <BR> tag
This tag is used to break a line.
 
Example 
 
Name: Shresthi Jaiswal <br> Class: 10th
  • <P> tag
This tag is used to make a paragraph.
 
Example
 
<p>Success is neither magical nor mysterious. Success is the natural consequence of consistently applying the basic fundamentals. </p> <p>A constant struggle, a ceaseless battle to bring success from inhospitable surroundings, is the price of all great achievements. </p>
  • <B> tag 
This tag is used to emphasize the text.
 
Example
 
My name is <b> Shresthi </b>
  • <I>  tag
This tag is used to markup the text in italic style.
 
Example
 
My name is <i> Shresthi </i>
  • <U> tag
This tag is used to underline the text.
 
Example
 
My name is <u> Shresthi </u>
  • Headings
 
H1: Extra Large
 
H2: Very Large
 
H3: Large
 
H4: Medium
 
H5: Small
 
H6: Very Small
 
Example
 
<H1>HTML</H1>
 
<H2>HTML</H2>
 
<H3>HTML</H3>
 
<H4>HTML</H4>
 
<H5>HTML</H5>
 
<H6>HTML</H6>
  • <CENTER> tags
This tag is used to center the text.
 
Example
 
<center> C-Sharp Corner </center>
 
  • <BG COLOR=” ”>
This tag is used to set the color of the background.
 
Example
 
<BG COLOR= “BLUE”>
 
Welcome to C-Sharp Corner!
  • Creating Lists
There are the following two types of lists.
 
ORDERED LIST: Each thing you type after the <OL> between </OL> tag will appear next to a number on the web page in a consecutive manner.
 
Example
  1. <OL type= “1” >  
  2. <LI> Name : Shresthi</LI>  
  3. <LI> Class : 10th </LI>  
  4. </OL>   
UNORDERED LIST: Each thing you type after the <UL> between </UL> tag will appear next to a bullet on the web page.
 
Example
  1. <UL type= “*” >  
  2. <LI> Name : Shresthi</LI>  
  3. <LI> Class : 10th </LI>  
  4. </UL>  
  • <TABLE> tag
This tag is used to create a table.
 
 
Example
 
  •  <A HREF= “ ”> tag
This tag is used for creating links.
 
Example
 
<a herf= “http://imshresthi.blogspot.in/”> imshresthi</a >
  • <IMG SRC= “ ”> tag
This tag is used for inserting an image.
 
Example
 
<img src= “App..le.jpg”>
 
  • Foreign Characters
  •  <STRIKE> tag
This tag is used to cross out words.
 
Example
 
<strike>This is wrong page.</strike>
  • <SUP> tag
This tag is used to superscript text.
 
Example
 
E=MC<sup> 2</sup>
  • <SUB> tag
This tag is used to subscript text.
 
Example
 
H<sub>2</sub>O
  • <SPAN> tag
This tag is used for a section in a document.
  • <STRONG> tag
This tag is used to text something important.
 

Conclusion

 
In this article, we studied basics of HTML 5.