Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index
XHTML Tutorial - Attribute Name Case Sensitive
(Continued from previous topic...)
Is Attribute Name Case Sensitive?
Yes, attribute names are case sensitive. You must write all attribute names
in lower case letters.
Here are some valid and invalid attribute names:
- <a href="http://dev.fyicenter.com"> - Valid attribute name.
- <a HREF="http://dev.fyicenter.com"> - Invalid attribute name, must use lower case letters.
- <script Type="text/javascript"> - Invalid attribute name, must use lower case letters.
Note to HTML document authors: HTML element attribute names are not case sensitive.
But XHTML element attribute names are case sensitive. If you are converting
existing HTML documents to XHTML documents, you will get a lots of syntax errors
about upper case letters used in HTML attributes.
(Continued on next topic...)
- What Is an XHTML Element?
- How To Enter Comments into XHTML Documents?
- How To Write the Opening Tag of an XHTML Element?
- How To Close an XHTML Element?
- What Is Wrong with My <br> Tags?
- What Is Wrong with My <meta> Tags?
- How To Enter Element Content?
- Is XHTML Element Name Case Sensitive?
- What Is an XHTML Element Attribute?
- How To Write Element Attributes Properly?
- Is Attribute Name Case Sensitive?
- How To Quote Element Attribute Values Properly?
- How To Write Ampersand Sign in Attribute Values?
- What Is a Required Attribute?
- What Are Predefined Attribute Values?
- What Is Wrong with My "checked" Attribute Values?
|