HTML for Juniors PART -2
In this article I’ll be discussing basic part of HTML that a junior (beginner) needs to know. From juniors I mean to all those who are who just passed High School or are 14 years or above.
DFFERENT TAG USED IN HTML
⦁ <BR> tag
This tag is used to break line.
Example:
Name: Shresthi Jaiswal <br> Class: 10th
⦁ <P> tag
This tag is used to write in a paragraph.
Example:
<p>Success is neither magical nor mysterious. Success is 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>
This tag is used to markup the text in italic style.
Example:
My name is <i> Shresthi </i>
⦁ <U>
This tag is used to underline the text.
Example:
My name is <u> Shresthi </u>
⦁ Headings
Headings Size
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 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:
<OL type= “1” >
<LI> Name : Shresthi</LI>
<LI> Class : 10th </LI>
</OL>
⦁ UNORDERED LIST
Each thing you type after the <UL> between </UL> tag will appear next to a bullet on the web page.
Example:
<UL type= “*” >
<LI> Name : Shresthi</LI>
<LI> Class : 10th </LI>
</UL>
⦁ <TABLE> tag
This tag is used to create a table .
Attributes of table tags Syntax
BORDER <TABLE BORDER=“ ”>
BORDERCOLOUR <TABLE BORDERCOLOUR=“ ”>
BGCOLOUR <TABLE BGCOLOUR= “ ”>
ALIGN <TABLE ALIGN= “ ” >
CELLPADDING <TABLE CELLPADDING= “ ”>
HEIGHT & WEIGHT <TR HEIGHT=“ ” WEIGHT= “ ”>
Example:
Name maths Science english
Akash 87 85 82
Sherya 88 89 90
Tarun 79 82 85
⦁ <A HREF= “ ”> tag
This tag is used for creating links.
Example:
<a herf= “http://imshresthi.blogspot.in/” imshresthi >
⦁ <IMG SRC= “ ”> tag
This tag is used for inserting the image.
Example:
<img src= “App..le.jpg”>
⦁ Foreign Characters
⦁ <STRIKE> tag
This tag is used to crosses out the words.
Example:
<strike>This is wrong page.</strike>
⦁ <SUP> tag
This tag is used to superscript the text.
Example:
<sup> E=MC2</sup>
⦁ <SUB> tag
This tag is used to subscript the text.
Example:
<sub>H2O</sub>
⦁ <SPAN> tag
This tag is used for section in a document.
⦁ <STRONG> tag
This tag is used to text something important.
No comments:
Post a Comment