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