Quote:
Originally posted by Adam Y.
I just checked my CSS five mintues ago with the validator and it mentioned nothing about using the hexadecimal numbers. It works just fine with the color's names.
|
I'd like to state that I said "you
MIGHT need to use hex numbers", not "you HAVE to use hex numbers".
Quote:
<br /> is valid only in XHTML, because it is an XML-style open/close tag. In XHTML, you must close all your tags, so you could concievably go <br></br>. I don't suggest you use XHTML, as it's a largely unsupported language, a reformulation of HTML as XML. It is not as of this moment, designed to replace HTML, and in fact there is no reccomendation that introduces anything new, other than its architecture. The latest (and final) version of HTML is version 4.01, which is what you should normally use.
The name attribute was not replaced by id; they serve different functions. The id attribute is something for things like scripts (i.e. getElementById) and styles (#textbox) to lock onto, and also can be used for semantics. The name attrubute explicitly specifies a purpose, such as in a form, "email" would be the name you give to the form input for an email address so that a script or browser can identify what information is being posted. In stylesheets, you don't need to use hex numbers. Black and red for example, can be entered in. Also, an RGB value can be used.
Standards are great usually. Please though, don't be under the misconception that writing for a standard will make a page easier or better in some way. Often it isn't.
|
I said <br /> was only XHTML standard. XHTML isn't much different than HTML. According to W3Schools it's supposed to suprass HTML.
Name was replaced by id in XHTML.....
id is only used for images though I think, but it might be used for others also.
RGB values can be used, yes.
But if someone wants a standard (a.k.a. compliant) website, then they should use standard coding.
Am I the only one that has even attempted XHTML?