Html 3.2

liunx

Guest
I have a page in html 3.2. I tried validating it. For some reason, the validator shows "bgcolor is not a valid attribute" error. How do I specify background color for the table.<br />
<br />
*** Tables is the only sensible way to get any sort of a layout in html 3.2 ***<br />
<br />
I also got errors for using style="", which I have replaced with <font face=><!--content-->According to <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html32#table">http://www.w3.org/TR/REC-html32#table</a><!-- m --> there is no recommendation for a background color attribute for a table. Actually, the only tag that supports a bgcolor in 3.2 is the BODY tag.<!--content-->There isn't in any specification. Use CSS or live with that the page doesn't validate.<br />
Just curious, why use 3.2? :confused:<!--content-->Originally posted by meow <br />
<br />
Just curious, why use 3.2? :confused: <br />
<br />
I think he likes to torture himself ;)<!--content-->OK, so bgcolor was not a valid attribute for table in HTML 3.2. It was deprecated in HTML 4.01. So when was it a valid attribute (4.0)? :confused: :confused: <br />
<br />
I was trying HTML 3.2 just for kicks. I needed 5 nested tables (most of them to get what style="border: 1px solid black" can do).<br />
<br />
I removed the DTD and ran the page thru HTML Tidy and it gave a DTD:<br />
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><br />
What the heck is that?<br />
<br />
Then I went for a simplified layoutto 2 nested tables and ran thru HTML Tidy and it gave a 4.0 Transitional DTD. Anyone knows whats happening?<!--content-->Originally posted by nkaisare <br />
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> Long ago there were lots of organizations cranking out different versions of HTML. That's the Document Type Declaration for the version created by The Internet Engineering Task Force (<!-- m --><a class="postlink" href="http://www.ietf.org/">http://www.ietf.org/</a><!-- m -->). That specification came out in November 1995 and was written by T. Berners-Lee and D. Connolly (<!-- m --><a class="postlink" href="http://www.ietf.org/rfc/rfc1866.txt">http://www.ietf.org/rfc/rfc1866.txt</a><!-- m -->). They called their version "Hypertext Markup Language - 2.0". The IETF abandoned work on HTML and T. Berners-Lee went on to work with the W3C. The first official W3C version was HTML 3.2 on 14 January 1997 but it was simply a description of where HTML was. They intentionally left the bad stuff in place. HTML 4.0 came out 18 December 1997 and represented an effort to imporve the state of HTML. HTML 4.0 was revised 24 April 1998 and then superseded by HTML 4.01 24 December 1999. Several experimental versions that were never adopted have also appeared.<br />
<br />
All of this can be found at the W3C's HTML pages. (<!-- m --><a class="postlink" href="http://www.w3.org/MarkUp/">http://www.w3.org/MarkUp/</a><!-- m -->).<!--content-->Originally posted by nkaisare <br />
OK, so bgcolor was not a valid attribute for table in HTML 3.2. It was deprecated in HTML 4.01. So when was it a valid attribute (4.0)? :confused: :confused: <br />
<br />
<br />
It is valid in html (4.0 and) 4.01 Transitional. I tried to tell you above that it never was valid but I mixed it up with background in my confused little mind. Sorry. :( <br />
<br />
HTML 4 both added and deprecated a lot of stuff at the same time. All to bring order in the mess all the browser extensions had created.<br />
<br />
BTW, don't let Tidy choose your DTD. It seems to have odd preferences. :p<!--content-->
 
Back
Top