+ 1

Confusion over html being case sensitive or not

I googled it and top 2 answers contradict themselves, any help? Thank you

9th Feb 2020, 9:10 AM
Jdubyou
Jdubyou - avatar
4 odpowiedzi
+ 1
it was though in xhtml, its no longer the case (no pun intended) in html5. at some part i think an attribute like value of id, class are case-sensitive
9th Feb 2020, 9:19 AM
Taste
Taste - avatar
+ 4
Jdub html is not case sensitive. DOCTYPE HTML or DOCTYPE html or doctype html is the same thing.
9th Feb 2020, 10:42 AM
Tanmay Gupta
Tanmay Gupta - avatar
+ 3
Html is not case sensitive but javascript is. We can write HTML as well as html also. DOCTYPE and doctype are sams in Html.
9th Feb 2020, 9:13 AM
A͢J
A͢J - avatar
+ 1
Element and attribute names are ASCII case-insensitive in HTML. (https://html.spec.whatwg.org/multipage/semantics-other.html#case-sensitivity-of-selectors)
9th Feb 2020, 9:49 AM
Michael
Michael - avatar