Syntax for adding an iframe is shown on the right. The URL points to the location of the separate page. |
|
height
and width
attributes are used to specify the height and width of the iframe.
The attribute values are specified in pixels by default, but they can also be in percent (like “80%”).
frameborder
attribute specifies whether or not to display a border around the iframe.
Set the attribute value to 0 to remove the border.
target
attribute of a link must refer to the name
attribute of the iframe.
Tag | Description |
---|---|
<iframe> |
Defines an inline sub window (frame). |