Create a HTML document to jump to a specified section within a frame


Input


<!DOCTYPE html>
<html>
<frameset cols="20%,80%">

    <frame src="a.html"/>
         <frame src="link.html#C4"/>
 
</frameset>

</html>




a.html


<!DOCTYPE html>
<html>
<body>
 <h1> Jumps to a specified section within the frame</h1>
</body>
</html>




link.html


<!DOCTYPE html>
<html>
<body>

<p>
 <a href="#C4">Chapter 4</a>
</p>

 <h2>Chapter 1</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 2</h2>
 <p>This is three paragraphs! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 3</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2><a name="C4">Chapter 4</a></h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 5</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 6</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 7</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 8</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 9</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

 <h2>Chapter 10</h2>
 <p>This is a paragraph! ! ! ! ! ! ! ! ! ! </p>

</body>
</html>




Output


No comments:

Post a Comment