HTML IN WEB PAGES
HTML in web pages : HTML tags is the basic requirement for developing of web page. A web page developed using these tags can be browsed using any browser. These HTML tags can be viewed in the HTML view of the editor.
An Introduction to HTML:
In 1980 a mark-up language was developed tom creating document that could be displayed consistently on computers of different hardware and operating systems. It called the standard generalized mark-up Language SGML on web HTML is used to construct formatted pages for the web known as web pages.
Mark-up Language : It refers to the tags which specify how to incorporate text, Graphics sound and also control visual element such as fonts, font size, and paragraph spacing.
Structure of an HTML Documents:
The skeleton on HTML document is..
<HTML>
<HEAD>
</HEAD>
<BODY>
……..
</BODY>
</HTML>
In every HTML document <html> and </html>
Opening tag and clossing tag beginning and the end of the document . These tags inform the browser that the document is an HTML file. All other HTML tags must reside with in the < HTML> ……</HTML> Tags.
The HTML document can be divided into two sections
Html includes a pair of tags, <head> to identify the heading or title of a document.
The tag < TITLES>….. </TITLES> can appear only in this section. The text the exits between the title tags. Appears as the title in the browser”s window and length of it should not exceed beyond 60 characters.
The skeleton on HTML document is..
<HTML>
<HEAD>
</HEAD>
<BODY>
……..
</BODY>
</HTML>
In every HTML document <html> and </html>
Opening tag and clossing tag beginning and the end of the document . These tags inform the browser that the document is an HTML file. All other HTML tags must reside with in the < HTML> ……</HTML> Tags.
The HTML document can be divided into two sections
- Header or Head section
- Body Section
Html includes a pair of tags, <head> to identify the heading or title of a document.
The tag < TITLES>….. </TITLES> can appear only in this section. The text the exits between the title tags. Appears as the title in the browser”s window and length of it should not exceed beyond 60 characters.
Body Section:-
The Body of an HTML document contains the text that will show up on the web page. The body Section is enclosed with in < body> and </body> tags. It gives a description of the document layout and structure.
<html>
<head>
<title> My Name is Rajesh</title>
</head>
<body>
<P>Learn HTML </P>
<P> My first html page</P>
</Body>
</HTML>
HTML Tags :-
Heading tags or heading are used to display heading on the web page in various size. These tags can be used for providing main and sub heading to the web pages. The html document supports 6 leaves of headlines tags <H1> to <H6>. The Size of the text with in the <H1> tag is the largest and <H6> tag is the smallest. Each of these heading always begins on a new line <H1> to <H6> the syntax of heading tag is <H1> This is the heading </H1>
<html>
<head>
<H1> This is a Heading Created using H1 Tag </H1>
<H2> This is a Heading Created using H2 tag </H2>
<H3> This is a Heading Created using H3 tag </H3>
<H4> This is a Heading Created using H4 tag </H4>
<H5> This is a Heading Created using H5 tag </H5>
<H6> This is a Heading Created using H6 tag </H6>
</Head>
</Html>
The Body of an HTML document contains the text that will show up on the web page. The body Section is enclosed with in < body> and </body> tags. It gives a description of the document layout and structure.
<html>
<head>
<title> My Name is Rajesh</title>
</head>
<body>
<P>Learn HTML </P>
<P> My first html page</P>
</Body>
</HTML>
HTML Tags :-
Heading tags or heading are used to display heading on the web page in various size. These tags can be used for providing main and sub heading to the web pages. The html document supports 6 leaves of headlines tags <H1> to <H6>. The Size of the text with in the <H1> tag is the largest and <H6> tag is the smallest. Each of these heading always begins on a new line <H1> to <H6> the syntax of heading tag is <H1> This is the heading </H1>
<html>
<head>
<H1> This is a Heading Created using H1 Tag </H1>
<H2> This is a Heading Created using H2 tag </H2>
<H3> This is a Heading Created using H3 tag </H3>
<H4> This is a Heading Created using H4 tag </H4>
<H5> This is a Heading Created using H5 tag </H5>
<H6> This is a Heading Created using H6 tag </H6>
</Head>
</Html>
………………………………………………………
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Attributes for the Heading tag or Headline:
The heading can be aligned design left. Right or in the centre by setting the align attributes for the heading tags.
Example <H1 Align =”center”>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 align="center">My First Heading</h1>
<p align="center">My first paragraph.</p>
</body>
</html>
………………………………………………..
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 align="left">My First Heading</h1>
<p align="left">My first paragraph.</p>
</body>
</html>
………………………………………………
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 align="right">My First Heading</h1>
<p align="right">My first paragraph.</p>
</body>
</html>
…………………………………………………………..
<html>
<head>
<title>Page Title</title>
</head>
<body>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Attributes for the Heading tag or Headline:
The heading can be aligned design left. Right or in the centre by setting the align attributes for the heading tags.
Example <H1 Align =”center”>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 align="center">My First Heading</h1>
<p align="center">My first paragraph.</p>
</body>
</html>
………………………………………………..
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 align="left">My First Heading</h1>
<p align="left">My first paragraph.</p>
</body>
</html>
………………………………………………
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 align="right">My First Heading</h1>
<p align="right">My first paragraph.</p>
</body>
</html>
…………………………………………………………..
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 align="left">My First Heading</h1>
<p align="center">My first paragraph.</p>
<p align="right">My first paragraph.</p>
</body>
</html>
………………………………………………………
<html>
<head>
<title>my html program</title>
</head>
<body>
<h1 align="center">My First Heading</h1>
<p align="justify">Each new day is a new challenge
to stay fresh and alive in sprit there must be
change find new tactics method or operation that
are right for todays situation otherwise you will
be left behind and eventually be forgotten
Each new day is a new challenge to stay
fresh and alive in sprit there must be change find
new tactics method or operation that are right for
todays situation otherwise you will be left behind
and eventually be forgotten .</p>
</body>
</html>
<p align="center">My first paragraph.</p>
<p align="right">My first paragraph.</p>
</body>
</html>
………………………………………………………
<html>
<head>
<title>my html program</title>
</head>
<body>
<h1 align="center">My First Heading</h1>
<p align="justify">Each new day is a new challenge
to stay fresh and alive in sprit there must be
change find new tactics method or operation that
are right for todays situation otherwise you will
be left behind and eventually be forgotten
Each new day is a new challenge to stay
fresh and alive in sprit there must be change find
new tactics method or operation that are right for
todays situation otherwise you will be left behind
and eventually be forgotten .</p>
</body>
</html>
………………………………………………………….
Paragraph Formatting tags :
To Specify the beginning of the paragraph and the end of the paragraph, <P> and </P>tag is used .
Also contain aligned attributes
The syntax is :
<P>
The Paragraph text should be added here with in the .
</P>
Font Setting tags:
It can be used for tags style specification <fonts > contains the following attributes
<font Face = “Value”>
My Name is Rajesh
</font>
Few of values for the face attributes are given
Terminal for times new roman font
Arial
Arial black
Courier
Fixedly
Impact
My Name is Rajesh
</font>
Gutter: Specifies the distance between the text columns by default it is to Pixels. The possible values are 10 , 20 and so on.
Width:
Specifies the width of each column should be the same.
Paragraph Formatting tags :
To Specify the beginning of the paragraph and the end of the paragraph, <P> and </P>tag is used .
Also contain aligned attributes
The syntax is :
<P>
The Paragraph text should be added here with in the .
</P>
Font Setting tags:
It can be used for tags style specification <fonts > contains the following attributes
- Face attribute of the <font> tag is used to set the font of the text.
<font Face = “Value”>
My Name is Rajesh
</font>
Few of values for the face attributes are given
Terminal for times new roman font
Arial
Arial black
Courier
Fixedly
Impact
- The size attributed of the <Font> is used to specify the size of the text. The syntax is 1, 2, 3 and so on. The syntax is
- Color attribute of the <Font> is used to specify the color of the text. The syntax is :
My Name is Rajesh
</font>
- we can specify the color either by the name or by using the corresponding decimal value. The following table gives the color name and its corresponding hexadecimal values.
Gutter: Specifies the distance between the text columns by default it is to Pixels. The possible values are 10 , 20 and so on.
Width:
Specifies the width of each column should be the same.
<font size="3" color="red">This is some text!</font>
<font size="2" color="blue">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>
………………………………………………………………………………………………………………………….
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 ><font size="8" font color="red">My First
Heading</font></h1>
<p><font size="8" color="blue">My first paragraph.</font></p>
<p><font size="8"font face="verdana" color="green">My first paragraph.</font></p>
</body>
</html>
……………………………………………………
<html>
<head>
<title>Hello Rajesh</title>
</head>
<body>
<P>
<Font Face=“Arial”>
<font size=“4”>
<font color=“Dark blue”>
<b><I>
To specify the begging of the paragraph and the end of paragraph, <P>and </P>
</font>
</font>
</font>
<p>
<center>
<font face =“arial">
<font size=4>
<font color=“red”>
The paragraph tag displayed a blank line bath <br>on the top and bottom of the paragraph .
</font>
</font>
</font>
</center>
</body>
</html>
…………………………………………………………………
<html>
<head>
<title>Changing Font size</title>
</head>
<body>
<font size="3">
Prayer need not be long to heard. it just needs to
be from the heart.
</font><br><br>
<font face ="Time new Roman"Size="5">
if you want to be a <b> you have to be willing to
give it your all.
</font>
</body>
</html>
<font size="2" color="blue">This is some text!</font>
<font face="verdana" color="green">This is some text!</font>
………………………………………………………………………………………………………………………….
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1 ><font size="8" font color="red">My First
Heading</font></h1>
<p><font size="8" color="blue">My first paragraph.</font></p>
<p><font size="8"font face="verdana" color="green">My first paragraph.</font></p>
</body>
</html>
……………………………………………………
<html>
<head>
<title>Hello Rajesh</title>
</head>
<body>
<P>
<Font Face=“Arial”>
<font size=“4”>
<font color=“Dark blue”>
<b><I>
To specify the begging of the paragraph and the end of paragraph, <P>and </P>
</font>
</font>
</font>
<p>
<center>
<font face =“arial">
<font size=4>
<font color=“red”>
The paragraph tag displayed a blank line bath <br>on the top and bottom of the paragraph .
</font>
</font>
</font>
</center>
</body>
</html>
…………………………………………………………………
<html>
<head>
<title>Changing Font size</title>
</head>
<body>
<font size="3">
Prayer need not be long to heard. it just needs to
be from the heart.
</font><br><br>
<font face ="Time new Roman"Size="5">
if you want to be a <b> you have to be willing to
give it your all.
</font>
</body>
</html>
Additional text formatting:-
The Syntax is :-
<P> This is My 70<sup>th</sup> programming using html</P>
The syntax is :-
<p> H<sub>2</sub>O is the chemical Name for water.
</p>
<strike> This is text will strike effect </strike>
<head>
<title>Changing Paragraph</title>
</head>
<body>
<center><p><b>AMRITA COMPUTER INSTITUTE</b></P>
<u>GIVE YOUR CHILD MEMORABLE VACATIONS</u><BR>
<I>Organized by:Kips India Pvt. Ltd. </I>
</center>
</body>
</html>
<html>
<head>
<title>Chemical & Mathematical Formulae</title>
</head>
<body>
<s>using chemical and mathematical formula</s><br>
<b><U>Chemical Formula</U></b><br>
co<sub>2</sub><br>
H<sub>2</sub>O<br>
<b><u>Displaying mathematical formula</U></b><br>
(A+B)<sup>2</sup>=A<sup>2</sup>+B<sup>2</sup>
+2AB<br>
(A-B)<sup>2</sup>=A<sup>2</sup>+B<sup>2</sup>-
2AB<br>
</body>
</html>
Preformatted text:-
<pre>and</pre> tags.
If you want the text to be displayed in the browser window in the same format as seen the editor without any change, then used the preformatted text tags.
<html>
<body>
<p> this my 70 <sup>th</sup>program using html</P>
<P> H<sub>2</sub>O is the chemical name for water </P>
<pre>
</pre>
<strike> This text will appear with strike effect</strike>
TABLE PROGRAM
Tables are defined with the <table> tag.
Tables are divided into table rows with the <tr> tag.
Table rows are divided into table data with the <td> tag.
<table style="width:100%">
<tr>
<td>Rajesh</td>
<td>Kumar</td>
<td>34</td>
</tr>
<tr>
<td>Rajesh</td>
<td>Kumar</td>
<td>34</td>
</tr>
</table>
…………………………………………………………
<table border="1" style="width:100%">
<tr>
<td>Rajesh</td>
<td>Kumar</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
……………………………………………………………………………………………………………………..
<table bgcolor="#00FF00"border="1" style="width:100%">
<tr>
<td>Month</td>
<td>Savings</td>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
………………………………………………………………….
<table style="width:100%">
<tr>
<td>Month</td>
<td>Savings</td>
</tr>
<tr>
<td bgcolor="#FF0000">January</td>
<td bgcolor="#00FF00">
22000</td>
</tr>
</table>
……………………………………………………………..
<table style="width:100%">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td bgcolor="#FF0000">January</td>
<td bgcolor="#00FF00"><marquee behavior="alternate">My Name is Rajesh</marquee></td> </tr>
</table>
- Super Script:-
The Syntax is :-
<P> This is My 70<sup>th</sup> programming using html</P>
- Sub Script:-
The syntax is :-
<p> H<sub>2</sub>O is the chemical Name for water.
</p>
- Strike effect:-
<strike> This is text will strike effect </strike>
- Underline
<head>
<title>Changing Paragraph</title>
</head>
<body>
<center><p><b>AMRITA COMPUTER INSTITUTE</b></P>
<u>GIVE YOUR CHILD MEMORABLE VACATIONS</u><BR>
<I>Organized by:Kips India Pvt. Ltd. </I>
</center>
</body>
</html>
<html>
<head>
<title>Chemical & Mathematical Formulae</title>
</head>
<body>
<s>using chemical and mathematical formula</s><br>
<b><U>Chemical Formula</U></b><br>
co<sub>2</sub><br>
H<sub>2</sub>O<br>
<b><u>Displaying mathematical formula</U></b><br>
(A+B)<sup>2</sup>=A<sup>2</sup>+B<sup>2</sup>
+2AB<br>
(A-B)<sup>2</sup>=A<sup>2</sup>+B<sup>2</sup>-
2AB<br>
</body>
</html>
Preformatted text:-
<pre>and</pre> tags.
If you want the text to be displayed in the browser window in the same format as seen the editor without any change, then used the preformatted text tags.
<html>
<body>
<p> this my 70 <sup>th</sup>program using html</P>
<P> H<sub>2</sub>O is the chemical name for water </P>
<pre>
</pre>
<strike> This text will appear with strike effect</strike>
TABLE PROGRAM
Tables are defined with the <table> tag.
Tables are divided into table rows with the <tr> tag.
Table rows are divided into table data with the <td> tag.
<table style="width:100%">
<tr>
<td>Rajesh</td>
<td>Kumar</td>
<td>34</td>
</tr>
<tr>
<td>Rajesh</td>
<td>Kumar</td>
<td>34</td>
</tr>
</table>
…………………………………………………………
<table border="1" style="width:100%">
<tr>
<td>Rajesh</td>
<td>Kumar</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</table>
……………………………………………………………………………………………………………………..
<table bgcolor="#00FF00"border="1" style="width:100%">
<tr>
<td>Month</td>
<td>Savings</td>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
………………………………………………………………….
<table style="width:100%">
<tr>
<td>Month</td>
<td>Savings</td>
</tr>
<tr>
<td bgcolor="#FF0000">January</td>
<td bgcolor="#00FF00">
22000</td>
</tr>
</table>
……………………………………………………………..
<table style="width:100%">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td bgcolor="#FF0000">January</td>
<td bgcolor="#00FF00"><marquee behavior="alternate">My Name is Rajesh</marquee></td> </tr>
</table>
Adding Image:-
In lined image are the images that are put into a web page. The image put into a web page called as in line image and can take many forms. Some of the common image types define in the web pages are bullets, icon, buttons, photograph, circuit layout etc. The images are generally in one of the two formats-
GIF- ( Graphic Interchange Format)
JPEG- (Joint photographic experts group)
<img> is the tag used to insert an image into the HTML document.
The syntax is:-
<img src="value" Align ="Value” Border="Value">
The attribute are:
SRC:-
It is used to specify the name of the image.
Border:- It is Used to add a border around the image. The possible values are 1,2,3,and so on.
<html>
<head>
<Title > Document with an image </title>
</head>
<Body>
<P>
Aligned top <img align ="Top" src ="hand.gif">
Aligned top
<BR>
<BR>
Aligned Bottom <img align ="Bottom" src="Hand.gif">
<br>
<br>
Aligned Middle <img align ="Top" src="Hand.gif"
</body>
</HTML>
Benefits of HTML:-
LIST HYPERLINKS AND THEMES IN WEB PAGES
List:- List is a group of items that displayed in a specify order. HTML Support Two type of list namely bulleted and numbered list.
(BULLETED LIST (UL-UNORDER- ORDER LIST)
It display group of items in the order in which the items are created. <UL> and </UL> tag is used to create such bulleted list of item.
The syntax is :-
<UL type=Value>
<LI> List Item </LI>
<LI> List Item </LI>
<LI> List Item </LI>
</UL>
TYPE:-
The type attribute can be used with this tag to change to bullet style. The Value for type attribute can be circle, disc are square the default bullet style is a circle. It is used to specific the individual list items in the list.
<html>
<head>
<H1>countries</H1>
</HEAD>
<BODY>
<H4>
<UL TYPE= Circle>
<LI>AUSTRALIA</LI>
</UL>
<UL TYPE= Circle>
<LI>SOUTH AFRICA</LI>
</UL>
<UL TYPE= Circle>
<LI>ENGLAND</LI>
</UL>
</BODY>
</HTML>
NUMBERED LIST:-
This format of listing is used when the user wants the list to be numbered <OL>and </OL> tag is used to create a numbered list.
The Syntax is :-
<OL Smart = value type = value>
<LI> List Item </LI>
<LI> List Item </LI>
<LI> List Item </LI>
</OL>
START:-
Specifies the start value always specified in number of the numbering sequence. The possible value are 1,2,3, so on.
TYPE:- Specifies the numbering sequence and numbering style. The type of the number sequence can be one of the following.
In lined image are the images that are put into a web page. The image put into a web page called as in line image and can take many forms. Some of the common image types define in the web pages are bullets, icon, buttons, photograph, circuit layout etc. The images are generally in one of the two formats-
GIF- ( Graphic Interchange Format)
JPEG- (Joint photographic experts group)
<img> is the tag used to insert an image into the HTML document.
The syntax is:-
<img src="value" Align ="Value” Border="Value">
The attribute are:
SRC:-
It is used to specify the name of the image.
Border:- It is Used to add a border around the image. The possible values are 1,2,3,and so on.
<html>
<head>
<Title > Document with an image </title>
</head>
<Body>
<P>
Aligned top <img align ="Top" src ="hand.gif">
Aligned top
<BR>
<BR>
Aligned Bottom <img align ="Bottom" src="Hand.gif">
<br>
<br>
Aligned Middle <img align ="Top" src="Hand.gif"
</body>
</HTML>
Benefits of HTML:-
- HTML is simple but powerful formatting language to use. The Simplicity of HTML allows anyone to creates web pages.
- The web pages can be liked together using links. Hence Controlled navigation is possible HTML document are device independent.
LIST HYPERLINKS AND THEMES IN WEB PAGES
List:- List is a group of items that displayed in a specify order. HTML Support Two type of list namely bulleted and numbered list.
(BULLETED LIST (UL-UNORDER- ORDER LIST)
It display group of items in the order in which the items are created. <UL> and </UL> tag is used to create such bulleted list of item.
The syntax is :-
<UL type=Value>
<LI> List Item </LI>
<LI> List Item </LI>
<LI> List Item </LI>
</UL>
TYPE:-
The type attribute can be used with this tag to change to bullet style. The Value for type attribute can be circle, disc are square the default bullet style is a circle. It is used to specific the individual list items in the list.
<html>
<head>
<H1>countries</H1>
</HEAD>
<BODY>
<H4>
<UL TYPE= Circle>
<LI>AUSTRALIA</LI>
</UL>
<UL TYPE= Circle>
<LI>SOUTH AFRICA</LI>
</UL>
<UL TYPE= Circle>
<LI>ENGLAND</LI>
</UL>
</BODY>
</HTML>
NUMBERED LIST:-
This format of listing is used when the user wants the list to be numbered <OL>and </OL> tag is used to create a numbered list.
The Syntax is :-
<OL Smart = value type = value>
<LI> List Item </LI>
<LI> List Item </LI>
<LI> List Item </LI>
</OL>
START:-
Specifies the start value always specified in number of the numbering sequence. The possible value are 1,2,3, so on.
TYPE:- Specifies the numbering sequence and numbering style. The type of the number sequence can be one of the following.
Example :-
<HTML>
<HEAD>
<H1>COUNTRIES</HI>
</HEAD>
<BODY>
<LI>AUSTRACIA</LI>
<LI>SOUTH AFRICA</LI>
<LI>ENGLAND</LI>
</BODY>
</HTML>
THEMS :- Themes are template of different fonts and graphics which can be uniformly applied though out the web site to have a common look and they are just like templates in PowerPoint. When you apply a theme to your web you will get professionally designed buttons banners background text and link colours on all the pages.
<HTML>
<HEAD>
<H1>COUNTRIES</HI>
</HEAD>
<BODY>
<LI>AUSTRACIA</LI>
<LI>SOUTH AFRICA</LI>
<LI>ENGLAND</LI>
</BODY>
</HTML>
THEMS :- Themes are template of different fonts and graphics which can be uniformly applied though out the web site to have a common look and they are just like templates in PowerPoint. When you apply a theme to your web you will get professionally designed buttons banners background text and link colours on all the pages.
Html Document:-
Head section : The Head section contains the title that identifies the first part of your html coded document.
Body Section:-
The body section is where you do most of the works that includes text. Graphics and other Html elements that provide control and formatting of a page like fonts paragraphs list and other elements. The general format of html document is.
HTML
HEAD
Title of the web page
</title>
</head>
<body>
My Name Is Rajesh <br>Kumar
</body>
</html>
Head section : The Head section contains the title that identifies the first part of your html coded document.
Body Section:-
The body section is where you do most of the works that includes text. Graphics and other Html elements that provide control and formatting of a page like fonts paragraphs list and other elements. The general format of html document is.
HTML
HEAD
Title of the web page
</title>
</head>
<body>
My Name Is Rajesh <br>Kumar
</body>
</html>