5. 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.

    Program :

 

    index.html

 

    <html> 

      <frameset rows = "21%,*"> 

        <frame name = "top" src = "file1.html" /> 

         <frameset cols = "30%,*"> 

        <frame name = "main" src = "file2.html" /> 

        <frame name = "button" src = "frame" />

       </frameset>

       </frameset>

     </html>  

 

 

 

file1.html

 

<html>

<body>

<head><h1><center><font color="orange">NR Classes</center><font/></h1></head>

</body>

</html>

 

 

file1.html

 

   <html>

    <body>

    <ul>Courses

    <ol type="1">

    <li><a href="bcs.html" target="button">Bcs</a></li>        

    <li><a href="bca.html" target="button">BCA</a></li>               

    </ol>

    </ul>

    </body>

    </html>

  

 

bca.html

 

<html>

<body>

<ul type="square">BCA

<ul type="circle">

  <li >Web Technoogy</li>

  <li >RDBMS</li>

  <li >Bussiness Mathematics</li>

</ul>

</ul>

</html>

 

bcs.html

 

<html>

<body>

<ul type="square">BCS

<ul type="circle">

  <li >Computer Organization</li>

  <li >Adavance Programming in C</li>

  <li >Applied Mathematics</li> 

</ul>

</ul>

</html>



Output Screen


No comments:

Post a Comment