HTML iframesHTML Iframe is used to display a nested webpage (a webpage within a webpage). The HTML An HTML iframe embeds another document within the current HTML document in the rectangular region. The webpage content and iframe contents can interact with each other using JavaScript. Iframe SyntaxAn HTML iframe is defined with the Here, "src" attribute specifies the web address (URL) of the inline frame page. Set Width and Height of iframeYou can set the width and height of iframe by using "width" and "height" attributes. By default, the attributes values are specified in pixels but you can also set them in percent. i.e. 50%, 60% etc. Example: (Pixels)Example: (Percentage)You can also use CSS to set the height and width of the iframe. Example:Remove the border of iframeBy default, an iframe contains a border around it. You can remove the border by using This is a link below the ifarme click on link to open new iframe. |