W3C home > Mailing lists > Public > www-html@w3.org > February 2004

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:19:04 UTC