Is it possible to include iframe with HTML5 format inside HTML4 document? Then, will HTML5 features work as expected? Or, will root document restrict the HTML5 features?
Asked
Active
Viewed 920 times
2 Answers
2
The doctype
declaration will not restrict the elements if the browser needs to support the element.
https://html5test.com/results/desktop.html Source: HTML 4 Iframe with HTML5 content
So, answering your questions:
Yes it is possible to do this.
Yes all features will work, if the browser supports it.
No there will be no restrictions because of the document.
-
Thanks! I thought there was no post on this. Thanks for the reference! – Byungchan An Oct 26 '15 at 18:02
0
Normally, it will be. Frame rendering is independent of the parent page, so I think you will be able to load almost any page, even HTML5, in a frame on a root page with an older !DOCTYPE.

André-Luc Huneault
- 147
- 2
- 7