S.No.
Practical Name
1
2
3
Introduction To HTML
Structure Of HTML Document
Write a program to illustrate the
general syntax of html.
FORMATTING TEXT
Write a program to illustrate the use of
Inline Elements Italic; Bold; Underline
Text.
Write a program to illustrate the use of
Inline Elements Subscript Text.
Write a program to illustrate the use of
Inline Elements Superscript Text.
Write a program to illustrate the use of
Inline Elements Strike; Small; Big Text.
Write a program to illustrate the use of
Block Level Elements Headings Tag.
Write a program to illustrate the use of
Block Level Elements Paragraph Tag.
Write a program to illustrate the use of
Block Level Elements Line Break Tag.
Write a program to illustrate the use of
Block Level Elements Horizontal Rule
Tag.
Write a program to illustrate the use of
Block Level Elements Address Tag.
4
5
6
7
8
9
10
11
12
13
Signature
Index
S.No.
Practical Name
14
15
Signature
17
18
19
20
21
23
24
25
26
27
Align Tag.
Write a program to illustrate the use of
Marquee Tag.
Write a program to illustrate the use of
Bulleted or Unordered Lists.
Write a program to illustrate the use of
Numbered or Ordered Lists.
Write a program to illustrate the use of
Definition Lists.
Hyperlinks and Anchor Tag
Write a program to illustrate the use of
Hyperlink Tag.
Write a program to illustrate the use of
Image Tag.
Write a program to illustrate the use of
Image Tags Attributes.
Write a program to illustrate the use of
Image Tags Attributes H Space and V
Space.
Table
Index
S.No.
Practical Name
28
29
30
31
32
Signature
33
Practical 1
Introduction To HTML
HTML stands for Hypertext Markup Language. It was created by
Tim Berners-Lee in Geneva. It is a special formatting language
that defines the appearance and contents of a webpage. Its
specific syntax rules allows you to define the placement and
format of text, graphics, sound and videos on the webpage. It is
one of the most commonly used interface language used now a
days for the web.
Each word in Hypertext Markup Language (HTML) has a special
meaning.
The word Hypertext refers to the text which act as a link. You
can jump to any webpage on the internet by simply clicking
at the text which act as a link.
Practical 2
Structure Of HTML Document
The basic HTML document structure as follow:
< HTML >
< HEAD >
<!--This section contains title and supplementary information
about the page -->
< /HEAD >
< BODY >
<!--This section contains the document content -->
< /BODY >
< /HTML >
We shall examine each section individually.
Practical 3
output
Practical 4
FORMATTING TEXT
HTML uses a number of elements to format the text. You can
change the heading styles, make paragraphs, add lists, change
font color and size etc. The elements that are available to perform
such formatting are classified into following categories.
Inline Elements
Block-Level Elements
Inline Elements
Block-Level Elements -
Practical 5
Write a program to illustrate the use of Inline
Elements Italic ; Bold ; Underline Text.
<HTML>
<HEAD>
<TITLE> INLINE ELEMENTS </TITLE>
</HEAD>
<BODY >
<P><H1><U><I>Welcome TO HTML Document</I></U></P>
<P><B>Inline Elements</B></H1></P>
</BODY>
</HTML>
output
Practical 6
Write a program to illustrate the use of Inline
Elements Subscript Text.
<HTML>
<HEAD>
output
Practical 7
Write a program to illustrate the use of Inline
Elements Superscript Text.
<HTML>
<HEAD>
output
Practical 8
Write a program to illustrate the use of Inline
Elements Strike ; Small ; Big Text.
<HTML>
<HEAD>
<TITLE> INLINE ELEMENTS </TITLE>
</HEAD>
<BODY>
<H1><P><STRIKE>Welcome TO HTML
Document</STRIKE></P>
<P>The Working of striking in inline element is given above</P>
<P><SMALL>Something Unique items in our
class</SMALL></P>
<P><BIG>Inline functins</BIG></P>
</H1></BODY>
</HTML>
output
Practical 9
output
Practical 10
output
Practical 11
Write a program to illustrate the use of Block Level
Elements Line Break Tag.
<HTML>
<HEAD>
output
Practical 12
Write a program to illustrate the use of Block Level
Elements Horizontal Rule Tag.
<HTML>
<HEAD>
output
Practical 13
Write a program to illustrate the use of Block Level
Elements Address Tag.
<HTML>
<HEAD>
<TITLE> About Address </TITLE>
</HEAD>
<BODY>
<H1>
<ADDRESS>
Aarushi Animation LTD. <BR>
15, Industrial Area <BR>
Hyderabad <BR>
</ADDRESS>
</H1></BODY>
</HTML>
output
Practical 14
Write a program to illustrate the use of Font Tag.
<HTML>
<HEAD>
<TITLE> FONT TAG </TITLE>
</HEAD>
<BODY>
<FONT FACE="ALGERIAN"COLOR="BLACK" SIZE="28">
HTML stands for Hypertext Markup Language. It was created by
Tim Berners-Lee in Geneva. It is a special formatting language
that defines the appearance and contents of a webpage. Its
specific syntax rules allows you to define the placement and
format of text, graphics, sound and videos on the webpage. It is
one of the most commonly used interface language used now a
days for the web.
</FONT>
</BODY>
</HTML>
output
Practical 15
Write a program to illustrate the use of Align Tag.
<HTML>
<HEAD>
<TITLE> ALIGN TAG </TITLE>
</HEAD>
<BODY><H1 ALIGN="CENTER">
<FONT FACE="ALGERIAN"COLOR="BLACK" SIZE="28">
Importance Of HTML For Web Page</H1></FONT>
HTML uses a number of elements to format the text. You can
change the heading styles, make paragraphs, add lists, change
font color and size etc. The elements that are available to perform
such formatting are classified into following categories.
Inline Elements
Block-Level Elements
</BODY>
</HTML>
output
Practical 16
Write a program to illustrate the use of Marquee
Tag.
<HTML>
<HEAD>
<TITLE> ALIGN TAG </TITLE>
</HEAD>
<BODY>
<MARQUEE>
<H1 ALIGN="CENTER">
<FONT FACE="ALGERIAN"COLOR="BLACK" SIZE="28">
This site is only for general use.</H2>
</MARQUEE>
</FONT>
</BODY>
</HTML>
output
Practical 17
Write a program to illustrate the use of Margin Tag.
<HTML>
<HEAD>
<TITLE> Margin Tag </TITLE>
</HEAD>
<BODY
TOPMARGIN="225%"LEFTMARGIN="225%"RIGHTMARGIN="225%
"BOTTOMMARGIN="225%"MARGINHEIGHT="28"MARGINWIDTH="
18">
<H1>Effect of applying Margins on the web page</H1>
</BODY>
</HTML>
output
Practical 18
output
Practical 19
Write a program to illustrate the use of Numbered
or Ordered Lists.
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
<H1><B><MARQUEE>Connected companies with our Campus
</MARQUEE>
<OL>
<LI>Infosys
<LI>Wipro
<LI>TCS</B>
</OL></H>
</BODY>
</HTML>
output
Practical 20
Write a program to illustrate the use of Numbered
or Ordered Lists using Attributes.
<HTML>
<HEAD>
<TITLE> Ordered List </TITLE>
</HEAD>
<BODY>
<H1><B>Input Devices Are <BR>
<OL>
<LI TYPE="a">Keyboard
<LI TYPE="a">Mouse
<LI TYPE="a">Scanner</B>
</OL></H1>
</BODY>
</HTML>
output
Practical 21
Write a program to illustrate the use of Definition
Lists.
<HTML>
<HEAD>
<TITLE> Definition List </TITLE>
</HEAD>
<BODY>
<H1><B>
<DL>
<DT> Domain Name System
<DD> Internet service used to look up a computer's name and
find its IP address
<DT> JPEG
<DD> Joint Photographic Experts Group
</DL></H1>
</BODY>
</HTML>
output
Practical 22
Hyperlinks
Hyperlink (or links in short) is one of the most powerful feature of
HTML. Usually a website consists of a number of webpages and
ANCHOR Tag
The anchor tag <a> is used to create a hyperlink on a webpage.
It is always specified in the body of the webpages code. It
actually tells the browser where the link starts. The closing tag
</a> indicates the end of the link. The href stands for hypertext
reference that contains the URL of the destination page to which
link will move to . The URL address specified can point to any type
of file on the webpage such as HTML documents, images, sounds ,
movies etc . The general format for using <a> tag is
<a href = URL>Hyperlinked text</a>
Practical 23
Write a program to illustrate the use of Hyperlink
Tag.
<HTML>
<HEAD>
<TITLE> College Website </TITLE>
</HEAD>
<BODY>
<HR>
<a href="about.html">About College</a><BR>
<a href="course.html">Course</a><BR>
<a href="placement.html">Placement</a><BR>
<a href="help.html">Help</a><BR>
</HR>
</BODY>
</HTML>
output
Practical 24
Write a program to illustrate the use of Image Tag.
<HTML>
<HEAD>
<TITLE> Image </TITLE>
</HEAD>
<BODY>
<IMG SRC="SUN_RISE.JPG">
</BODY>
</HTML>
output
Practical 25
Write a program to illustrate the use of Image Tags
Attributes.
<HTML>
<HEAD>
<TITLE> Image </TITLE>
</HEAD>
<BODY>
<IMG SRC="SUN_RISE.JPG" ALIGN="Right" WIDTH="900"
HEIGHT="400">
</BODY>
</HTML>
output
Practical 26
output
Practical 27
Table
Introduction =
Table headers =
Practical 28
Write a program to illustrate the Table using
Caption Attribute.
<HTML>
<HEAD>
<TITLE> Table Wth Headers </TITLE>
<BODY>
<H1>
<TABLE>
<CAPTION ALIGN="CENTER"><H1> Class : CSE
</H1></CAPTION>
<TR>
<TH> RollNo. </TH>
<TH> Name </TH>
<TH> Percentage </TH>
</TR>
<TR>
<TD> 11522 </TD>
<TD> Vikas Bansal </TD>
<TD> 75% </TD>
</TR>
<TR>
<TD> 11519 </TD>
<TD> Vaibhav Sharma </TD>
<TD> 75% </TD>
</TR>
</TABLE>
</H1>
</BODY>
</HTML>
output
Practical 29
Write a program to illustrate the Table using Border
and Align Attributes.
<HTML>
<HEAD>
<TITLE> Table Wth Headers </TITLE>
<BODY>
<TABLE BORDER="10" ALIGN="CENTER">
<CAPTION ALIGN="CENTER"><H1> Class : CSE
</H1></CAPTION>
<TR>
<TH> RollNo. </TH>
<TH> Name </TH>
<TH> Percentage </TH>
</TR>
<TR>
<TD> 11522 </TD>
<TD> Vikas Bansal </TD>
output
Practical 30
</TR>
</TABLE>
</BODY>
</HTML>
output
Practical 31
Write a program to illustrate the Table using Data
as Image.
<HTML>
<HEAD>
<TITLE> Table With Images </TITLE>
<BODY>
<TABLE BORDER="10" ALIGN="CENTER" CELLPADDING="50%">
<CAPTION ALIGN="CENTER"><H1> Image Frame
</H1></CAPTION>
<TR>
<TD> <Image Src="SpiderMan_3.jpg" Height="400"
Width="400"> </TD>
<TD> <Image Src="SUN_RISE.jpg" Height="400" Width="400">
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
output
Practical 32
</TR>
</BODY>
</HTML>
output
Practical 33
Write a program to illustrate the syntax of Login ID
Webpage using attributes.
<HTML>
<HEAD>
<TITLE> Login Form </TITLE>
</HEAD>
<BODY BACKGROUND="SMALL_SEA.jpg">
<FORM ACTION ="Login.asp"METHOD="Post">
<TABLE ALIGN="Center">
<CAPTION ALIGN="CENTER"><H1> ADMISSION FORM
</H1></CAPTION>
<TR>
<TH> User ID </TH>
<TD> <INPUT TYPE="Text" NAME="User ID"VALUE="" SIZE="30"
MAXLENGTH="30"> </TD>
</TR>
<TR>
<TH> Password </TH>
<TD> <INPUT TYPE="Password" NAME="Password" VALUE=""
SIZE="30" MAXLENGTH="30"> </TD>
</TR>
<TR>
<TH> Sex </TH>
<TD><INPUT TYPE="Radio" NAME="Sex" VALUE="Male"
CHECKED> Male
<INPUT TYPE="Radio" NAME="Sex" VALUE="Female"> Female
</TD>
</TR>
<TR>
<TH> Country </TH>
<TD> <SELECT NAME="Country">
<OPTION VALUE="India">India
<OPTION VALUE="America"SELECTED>America
<OPTION VALUE="Newzealand">Newzealand
<OPTION VALUE="China">China
</SELECT> </TD>
</TR>
<TR>
<TD> <INPUT TYPE="Submit" VALUE="Submit"> </TD>
<TD> <INPUT TYPE="Reset" VALUE="Reset"> </TD>
</TR>
</BODY>
</HTML>
output