HTML Iframes
An HTML iframe is used to display a web page within a web page.
HTML Iframe Syntax
The HTML `<iframe>` tag specifies an inline frame.
An inline frame is used to embed another document within the current HTML document.
<iframe src="url" title="description"></iframe>
Iframe Example
Result
It is a good practice to always include a title attribute for the iframe. This is used by screen readers to read out what the content of the iframe is.
Iframe - Target for a Link
An iframe can be used as the target frame for a link. The `target` attribute of the link must refer to the `name` attribute of the iframe:
Iframe Target Example
Result