HTML Embedding

The embedding tags in HTML5 allow the inclusion of items other than text, such as images and video, on a web page.

<iframe>

The 'iframe', or inline frame tag, is used to include one HTML page inside another. In the below example, it includes the home page of this website and uses the optional width and height attributes to specify the size of the 'iframe'.

<iframe src="https://www.stuartsplace.com" width="300" height="400"></iframe>

To allow for browsers that don't support the use of an 'iframe', a paragraph of text enclosed in opening and closing 'p' tags can be placed within the opening and closing 'iframe' tags too, for example, warn the user. This would only appear if the use of an 'iframe' is not supported.

Further Reading

Other Embedding Tags