berry wrote:
How come the  validator said that iframe is not a valid tag or can not be
used with HTML 4.01 strict? I remember  that I used in the past  iframe
without problem.

iframe is not defined in the HTML4.01 (or xhtml1.0) Strict DTD, so using it in a strict document is not valid. Period.


Whether it has worked "without problem" is not an indication of whether it is valid. There are millions of web pages that use invalid code and still "work" in most browsers.

If you want to use iframes, use a Transitional or Frameset doctype. For similar functionality in Strict, use object:

<object data="vide.htm" id="mframe" type="text/html" width="690" height="320">Text here for older browsers (perhaps a link to vide.htm)</object>

HTH
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to