How to fix: Element "iframe" undefined

Most Likely Cause and Fix

Your markup contains a <iframe> element in a HTML4 strict or XHTML strict document. These document types do not allow the <iframe> element.

Switch to a HTML4 transitional, XHTML transitional or HTML5 document type.

What This Error Means

This error is stating that your markup contains a <iframe> element (or <>) and that such an element is not defined.

HTML consists of a predefined set of elements. You can't validly use an element that does not exist.

How To Fix It

For iframe elements in HTML4 strict and XHTML strict documents

These document types do not allow the <iframe> element.

Switch to a HTML4 transitional, XHTML transitional or HTML5 document type.

Discuss, Comment and Improve

Did this help you? Can this page be improved? Let us know!

comments powered by Disqus