(5) Name Attribute with the XHTML 1.0 transitional DTD
Explanation:
( skip )
- Some ready-made scripts still call for the name of an element. The scripters could use the id attribute instead, but numbers of them still rely on the name attribute.
- The name attribute has been deprecated from almost all elements, however.
It remains valid only for some of the form elements, such as
<input />and<textarea>, but not even for the<form>itself. - The name attribute will not validate as XHTML 1.0 strict if it is found in any element from which it has been deprecated.
- It will validate as XHTML 1.0 transitional. This is a purpose of XHTML-transitional, to allow us to include some deprecated elements if we must.
Help:
- Review our tutorial about XHTML-Transitional.
