Frames / iFrames

Figure 1 Example of an iframe

The <iframe> element is used to embed another HTML document within the current document. It creates a rectangular region in the web page where the embedded content is displayed. The embedded content can be from the same domain or a different domain.

Note: The <frame> has been deprecated and SHOULD NOT be used.

NOTE:

  • New to accessibility or uncertain of requirements, it will be helpful to review all sections below.
  • Already familiar with requirements, skip to the “Working Example” section for sample HTML, CSS and JavaScript (when needed), along with a working demo.