The src attribute describes the address of the document to embed in the <iframe>. The value of the src attribute can be any URL.
name:
The name attribute allows you to specify a name for an iframe. It is important when you want to create links in one frame that load pages into another frame in that case frame need a name to identify itself as the target of the link.
frameborder
The frameborder attribute is used to specify whether or not to show the borders of the frame.
marginwidth
This attribute specifies the left and right margins of the content of an <iframe>.
marginheight
This attribute specifies the top and bottom margins of the content of an <iframe>.
scrolling
This attribute specifies whether or not to display scrollbars in an <iframe>.
longdesc
This attribute specifies a page that contains a long description of the content of an <iframe>.
Setting Height and Width of Iframe:
The height and width attributes are used to set the size of the iframe.
The values of the attributes are specified in pixels by default, you can set them in percentage.
You can set the target frame for a link using an iframe. The target attribute you have specified for the link must refer to the name attribute of the iframe. Its name and link target must have the same value otherwise link will not open as a frame.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok