HTML Exerecises
HTML Exerecises
1.Develop a program to display the following equation in the web browser(use sub
and sup tags).
1. (A+B)2A2+B2+2(A+B)(use <sup>)
3. (use <sup>tag)
2. Develop a program to display any image in the web browser.(use all image
attributes include alt,width,height,border,hspace and vspace).
3. Develop a program to display the particular website or file in the web browser.
(use anchor tags and href,target attributes).
4.a)Develop a program to display the marquee message in the web browser.(use all
marquee tags.direction:left/right/top/down)
Ex:
Ex:
<bgsound src=”audio/welcome.wav’>
Attributes:
Loop=”value”
Src=Location of the file.
Program:
<ol>
<li type=A>HTML</li>
<li type=a>XML</li>
<li type=I>JSP</li>
<li type=i>SERVLET</li>
<li type=1>AJAX</li>
</ol>
o Html
o Xml
o Ajax
o Jsp
o Xslt
o Servelet
o Soap
Html
Xml
Ajax
Jsp
Xslt
Servelet
Soap
Html
Xml
Ajax
Jsp
Xslt
Servelet
Soap
XML
o HTML
JSP
XSLT
o SERVLET
JAVA SCRIPT
WSDL
12.Develop a program to disply the following HTML lists in web browser.(using all
types of lists)
WEB TECHNOLOY
1. Html
2. Xml
3. Ajax
4. Jsp
5. Xslt
6. Servelet
7. Soap
WEB TECHNOLOGY:
o Html
o Xml
o Ajax
o Jsp
o Xslt
o Servelet
o Soap
WEB TECHNOLOGY
Html
Xml
Ajax
Jsp
Xslt
Servelet
Soap
WEB TECHNOLOGY
Html
Xml
Ajax
Jsp
Xslt
Servelet
Soap
HTML
Hyper text Markup Language
XML
Extensible markup language
JSP
Java server pages
JAX
Java API for xml
SAX
Simple API for XML
XSLT
Extensible Style sheet Transformation
CSS
Casecade style sheets
Href
Hypertext reference
SOAP
Simple object access protocol
JS
JAVA SCRIPT
WSDL
WEB Service Definition Language
DHTML
Dynamic Hyper Text Markup Language
XHTML
Extensible Hyper Text Markup Language
AJAX
Asynchronos JAVA and XML
14.Develop a program to display the following heading elements in the web browser
window.(use br tag to display the horizontal line in every heading.)
H1 LEVEL HEADING
H2 LEVEL HEADING
H3 LEVEL HEADING
H4 LEVEL HEADING
H5 LEVEL HEADING
H6 LEVEL HEADING
<frameset cols="50%,40%">
<frameset rows=”50%,50%">
<frame src="file:///D:/marquee.html"/>
<frame src="file:///D:/marquee1.html"/>
</frameset>
<frameset rows="50%,50%">
<frame src="file:///D:/marquee2.html"/>
<frame src="file:///D:/marquee3.html"/>
</frameset>
HTML HTML
DOCUMENT 1 DOCUMENT 2
HTML HTML
DOCUMENT 1 DOCUMENT 4
HTMl DOCUMENT 1:
Marquee message direction=left
HTML DOCUMENT 2:
HTML DOCUMENT 3:
Marquee message direction:TOP
HTML DOCUMENT 2:
Marquee message DIRECTION:DOWN
18. Develop a program to display the following frames in the web.(Insert documents
to each frames)
18. Develop a program to display the following frames in the web browser.(insert
HTML documents to each frames and use noresize attributes)
19.Develop a program to display the output for following html list programs.
a)
<!-- Karnataka.html -->
<HTML>
<HEAD>
<TITLE>About Karnataka</TITLE>
</HEAD>
<BODY>
<CENTER><H1>Karnataka</H1></CENTER>
<HR>
<UL>
<LI>Area : 1,91,791 Sq. Kms</LI>
<LI>Capital : Bangalore</LI>
<LI>Language : Kannada</LI>
<LI>Population : 5,27,33,958</LI>
</UL>
</BODY>
</HTML>
b)
<!-- AndhraPradesh.html -->
<HTML>
<HEAD>
<TITLE>About Andhra Pradesh</TITLE>
</HEAD>
<BODY>
<CENTER><H1>Andhra Pradesh</H1></CENTER>
<HR>
<UL>
<LI>Area : 2,75,068 Sq. Kms</LI>
<LI>Capital : Hyderabad</LI>
<LI>Language : Telugu</LI>
<LI>Population : 7,57,27,541</LI>
</UL>
</BODY>
</HTML>
c)
<!-- TamilNadu.html -->
<HTML>
<HEAD>
<TITLE>About Tamil Nadu</TITLE>
</HEAD>
<BODY>
<CENTER><H1>Tamil Nadu</H1></CENTER>
<HR>
<UL>
<LI>Area : 1,30,058 Sq. Kms.</LI>
<LI>Capital : Chennai</LI>
<LI>Language : Tamil</LI>
<LI>Population : 6,21,10,839</LI>
</UL>
</BODY>
</HTML>
d)
<!-- Kerala.html -->
<HTML>
<HEAD>
<TITLE>About Kerala</TITLE>
</HEAD>
<BODY>
<CENTER><H1>Kerala</H1></CENTER>
<HR>
<UL>
<LI>Area : 38,863 Sq. Kms.</LI>
<LI>Capital : Thiruvananthapuram</LI>
<LI>Language : Malayalam</LI>
<LI>Population : 3,18,38,619</LI>
</UL>
</BODY>
</HTML>
20)Develop a program to display the image.(use map tag).
The <map> tag is used to define a client-side image-map. An image-map is an image with
clickable areas.
The name attribute is required in the map element. This attribute is associated with the
<img>'s usemap attribute and creates a relationship between the image and the map.
The map element contains a number of area elements, that defines the clickable areas in the
image map.
Indiamap:
<img src="file:///D:/list/india/planets.gif" width="300" height="300" alt="planet"
usemap="#planetmap" />
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" href="file:///D:/list/india/AndraPradesh.html"
alt="Sun" />
<area shape="circle" coords="90,58,3" href="file:///D:/list/india/TamilNadu.html"
alt="Mercury" />
<area shape="circle" coords="124,58,8" href="file:///D:/list/india/Kerala.html"
alt="Venus" />
</map>