
Originally Posted by
Chadjoh
I'am I correct that the frame tag is not allowed in HTML 5 but the iframe is allowed?
It originally didn't included iframes, but the W3C rethought this after dumping iframes from the Strict HTML and XHTML doctypes. You were to use the "<object>" element to add objects to your document, but browser differences and limitations made this difficult for many developers. With the much-more-pragmatic HTML 5 (not yet released), iframes are back and even have two new attributes: seamless and sandbox. Other attributes: HTML5
I have used the following in place of the iframe tags:
Code:
<<div style="margin: 0 auto; width: 960px; height: 400px; overflow: auto;"><object style="width:100%; height:400px; margin:1%;" type="text/html" data="http://website.com/"></object></div>
Of course, you don't need to use inline CSS as shown here.
Bookmarks