Joe Hesse wrote:
Quote:
I have two complete html files below. |
They seem to be missing the (required) title element and the Doctype.
Quote:
When the first file is viewed with a browser both the paragraph and
table are red. When the second file is viewed with a browser only the
paragaph is red. I expected that both the paragraph and table would
display as red in the second file since the <div> element encloses both
of them. |
Presumably the browser default style sheet has
table { color: black; }
in it then. So if you don't override it, the colour is black.
If you had a suitable Doctype then you would trigger standards mode, and (in
Firefox at least[1]) gets the much more sensible
table { color: inherit; }
instead.
[1] Its the only one I bothered to test
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is