Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: Why is border not an attribute of iframe in HTML 4.0?

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Fri, 27 Feb 2004 19:58:47 +1100
Message-ID: <403F06C7.7030602@iinet.net.au>
To: Prive <M.Rambonnet@zonnet.nl>
Cc: W3C HTML List <www-html@w3.org>

Prive wrote:

> Why is border not an attribute of iframe in HTML 4.0?
> 
> Although most browsers support it, it is not a standard attribute of iframe
> and frameborder doesn't work.
   Because that would be another presentational attribute, and the 
popular browsers support many elements and attributes which are not 
standardised.  That is one reason for why they're called tag-soup browsers.

   If you look at the spec, most (unfortunately not all) of the 
presentational elements and attributes are deprecated.  Therefore, it 
was a good decision by the HTML 4 WG to not include it.

   If you want a border around an <iframe> use CSS, not the border 
attribute.
eg.
iframe {
     border: 1px solid black;
}

-- 
Lachlan Hunt
Received on Friday, 27 February 2004 03:58:54 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.