Sent by Alex Robinson on 29 September 2004 18:06
>But - a coupla questions:
>----------
>
>Is this preferable to what I used? Should I use it in all my headers?
>Yours:
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
....
>Mine:
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
....
Not preferable. Just different.
see http://css-discuss.incutio.com/?page=DocType for details
I just write XHTML 1 by default.
>What is this for: /* <![CDATA[ */
>What is this for: /* ]]> */
Because I'm writing XHTML (which is a flavour of XML) entities like >
must be encoded. The CDATA tag simply tells the browser (or whatever
parser is inspecting the file) to read the following text as literal
unencoded text. The weird series of characters at either end are what
BBEdit (since it is BBEdit that has inserted it automagickally) has
concocted to enable the CDATA block to be recognised by the browser
but not cause the CSS parser any problems.
http://www.w3schools.com/xml/xml_cdata.asp
>I could not find out any web info on styling the html element:
>
>html
> {
> background: #ffffff;
> margin: 2em;
> }
Well, in theory it's as styleable as any other element. In practice,
certain browsers are a bit iffier than others. That's why I suggested
that you might want to wrap everything in a container div instead.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/