Wednesday, 4 March 2020

WT-13



           
2)Write a HTML code which will divide web page in three frames. First frame should consists of name of college as heading. Second frame should consists of name of courses with hyperlink. Once click on any course it should display subject of that course in third frame.

frames.html
<html>
<frameset cols="30%,30%,40%">
<frame src="header.html" name="frame1">
<frame src="links.html" name="frame2">
<frame src="pune.html" name="frame3">
</frameset>
</html>
header.html
<html>
<body>
<h1 align="center">
<font color="red">ABC College</FONT>
</H1>
</BODY>
</HTML>

links.html
<html>
<body>
<b>Course</b>
<br>
<ol type="1">
<li><a href="a.html" target="frame3">BCA</A></li><br>
<li><a href="b.html" target="frame3">BBA</A></li><br>
</ol>
</body>
</html>

a.html
<html>
<body><h3>BCA</h3>
<ul type="disc">
<li>OB</li>
<li>C</li>
<li>DBMS</li>
</ul>
</body>

</html>