Case Sensitivity in {HTML5, XML, CSS, JavaScript}

By Xah Lee. Date: . Last updated: .

{HTML4, HTML5} → No

HTML4, HTML5: tag names are NOT case sensitive. You can write <P cLAss="…">…</p>.

{XHTML, XML} → Yes

XHTML, XML: case sensitive, and must be all lowercase.

Attribute Values → Yes

Attribute values (For example, id="…", class="…"), in any HTML/XML are case sensitive. class="bb" is not the same as class="BB".

JavaScript → Yes

JavaScript identifier (variable and function name) is case sensitive. [see JavaScript Basics]

Allowed Characters in Attribute Names

See: HTML: Allowed Characters in id Attribute

Allowed Characters in JavaScript Identifiers

JS: Allowed Characters in Identifier

Liket it? Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.