HTML IFrames
The iframe HTML is used for showing a web page in a web page.
HTML Iframe Syntax
A inline frame is specified by the HTML iframe
Tag.
A new document is integrated into the current HTML content using an inline frame.
syntax
Tip: Including a title attribute for the iframe
is excellent practise. This is used to read the contents of the
iframe by the display readers.
Iframe - Set Height and Width
To specify the size of the iframe, use the height
and width
parameters.
Default pixels specify height and width:
Example
Or you may add the CSS height
and width
features by using the style
attribute:
Result of the above query
Related Links
Iframe - Remove the Border
An iframe has a border around it by default.
Add the style
attribute and utilise the CSS border
property for removing the border.
Example
Result of the above query
The size, style and colour of the iframe border may also be changed with CSS:
Example
Result of the above query
Iframe - Target for a Link
The target frame for a link can be an iframe..
The iframe's name
attribute must be referenced by the link's target
attribute::
Example
Result of the above query
Related Links