HTML: Case Sensitivity

By Xah Lee. Date: . Last updated: .

HTML Case Sensitivity

HTML tag names

case-insensitive ✅

but only for English letters, not for other language letters.

For example, if you have a Custom Tag x-ñ and use CSS x-Ñ, it won't work.

HTML attribute name

case-insensitive ✅

but only for English letters, not for other language letters.

For example, if you have a Custom Data Attribute data-ñ and use CSS [data-Ñ], it won't work.

HTML attribute values

case-sensitive 🛑

XML Case Sensitivity

XML tag name

case-sensitive 🛑

XML attribute name

case-sensitive 🛑

XML attribute values

case-sensitive 🛑

Allowed Characters and Case Sensitivity