|
<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.
|