JavaScript AJAX Basics (retiring) AJAX Concepts A Simple AJAX Example

Nick Burton
Nick Burton
7,060 Points

Why is XML uppercase but HTTP isn't?

Why isn't the "Http" in XMLHttpRequest() uppercase if "XML" is? They're both acronyms. This seems inconsistent or is there a reason? Thanks.

3 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 143,831 Points

Hey guys,

It's actually because XML (Extensible Markup Language) is a Proper Noun and, therefore, needs to be capitalized. Whereas, Http (Hypertext Transfer Protocol) isn't a Proper Noun (it's more of a 'process' or action), thus doesn't need to be capitalized.

That's just my interpretation on why. :) :dizzy:

Steven Parker
Steven Parker
170,451 Points

The closest I can come to a potential explanation is that in some practices, a distinction is made between "short acronyms" and "long acronyms", where short ones are given all caps, but long ones are treated as words. I suspect the individual(s) responsible for this name may have applied that naming strategy.

Nick Burton
Nick Burton
7,060 Points

Thanks for quick reply Steven. I was wondering what sort of logical explanation there may be. That does make sense. I was more curious than confused. :D