HTML page with iframe tag

Let's follow the example to understand working of iframe.

<html>          <!--called root tag-->
    <head>      <!--contains meta information of page-->
        <title><!--contains title of page-->
        html with iframe;it is used to display page's content inside another page.
        <h2> page in html</h2>
        <h1>this is heading</h1>
        <iframe width="100%" height="500px" name="dis_a"></iframe>
        <!--uses given width and height with name. This name is used as target-->
        <a href="heading.html" target="dis_a">click for heading</a>
        <!--we display the content of heading.html to that frame which has name "dis_a"-->

No comments:

Post a Comment