4. Write HTML code to design a web as per given specification. Divide the browser screen into two frames. The first frame will display the heading. Divide the second frame into two columns. The frame on the left should be name of cities consisting of hyperlinks. Clicking on any one of these hyperlinks will display related information in right hand side frame as shown below

 

IT Industries in INDIA

City

1.     Pune

2.     Mumbai

Pune

      Infosys

      Persistent


Program :

 

            index.html

 

<html>

<frameset rows="10%,*">

<frame src="file1.html">

<frameset cols="40%,60%">

<frame src="file2.html">

<frame src="pune.html">

</frameset>

</frameset>      

</html>

 

 file1.html

 

<html>

<body>

            <h4>IT Industrties in INDIA</h4></br>

</body>

</html>

 

 

file2.html

<html>

<body>

<b>City</b><br>

<ol type="1">

<li><a href="pune.html" target="frame3">Pune</A></li><br>

<li><a href="file3.html" target="frame3">Mumbai</A></li><br>

</ol>

</body>

</html>

 

 

pune.html

 

    <html>

    <body><h3>Pune</h3>

    <ul type="disc"><li>Infosys</li><li>Persistent</li></ul> 

    </body>  

    </html>



Output Screen





No comments:

Post a Comment