Hello dear readers! welcome back to another section of my tutorial on Html. In my last tutorial guide, i talked about the Html frames and in this section am going to be talking about Html iframes.
An inline frame can be defined by using the Html <iframe> tag. The Html <iframe> tag is not somehow related to <frameset> tag, instead it can appear anywhere in your Html document.
The Html <iframe> tag defines a rectangular region within the Html document in which the browser can display a separate document, including scrollbar and borders.
The scr attribute is used to specify the url of the document which occupies the inline frame. Below is an example of how to use a Html <iframe> -
RECOMMENDED: Html Elements
Feel free to try the above code out using your text editor for a better understanding. You can also drop your questions via the comment box below.
The <iframe> Tag Attributes
Most of the attributes of the Html <iframe> tag, like the name, frameborder, longdesc, class, id, margin-height, scrolling, styles and margin-width works exactly like the corresponding attributes for the <frame> tag.
|Sr.No||Attribute & Description|
Take note that the only difference between Html <frame> and Html <iframe> is that a Html <iframe> is used for inline <frame>.
Alright thats it for this tutorial, if you have questions always feel free to drop them on the comment box below, bye for now.