Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index

XHTML Tutorial - Attribute Name Case Sensitive

By: FYIcenter.com

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

  1. What Is an XHTML Element?
  2. How To Enter Comments into XHTML Documents?
  3. How To Write the Opening Tag of an XHTML Element?
  4. How To Close an XHTML Element?
  5. What Is Wrong with My <br> Tags?
  6. What Is Wrong with My <meta> Tags?
  7. How To Enter Element Content?
  8. Is XHTML Element Name Case Sensitive?
  9. What Is an XHTML Element Attribute?
  10. How To Write Element Attributes Properly?
  11. Is Attribute Name Case Sensitive?
  12. How To Quote Element Attribute Values Properly?
  13. How To Write Ampersand Sign in Attribute Values?
  14. What Is a Required Attribute?
  15. What Are Predefined Attribute Values?
  16. What Is Wrong with My "checked" Attribute Values?


Selected Developer Jobs:

More...