I'm new to these languages.
-
In web development, it is good to know about case sensitivity of Cascaded Stylee Sheets(CSS) as well. Related posts - [Are class names in CSS selectors case sensitive?](https://stackoverflow.com/q/12533926/465053), [Are CSS selectors case-sensitive?](https://stackoverflow.com/q/7559205/465053) & [Are property values in CSS case-sensitive?](https://stackoverflow.com/q/17967371/465053) – RBT Jun 22 '19 at 04:50
4 Answers
HTML is not case-sensitive (XHTML is, though).
PHP respects case in variable names, but not functions.
Javascript is case-sensitive.

- 59,888
- 27
- 145
- 179
-
Yeah, that's my only beef with PHP. I love it, but the lack of case sensitivity in functions bugs me. – BraedenP Nov 16 '09 at 01:56
-
1
-
-
@web: browsers are forgiving of invalid markup. That doesn't make it valid. – Michael Petrotta Nov 16 '09 at 02:21
-
-
@web It doesn't work. Serve your XHTML as XHTML (`application/xhtml+xml`) and you will see an error. – Eli Grey Nov 16 '09 at 05:12
PHP variable names are case sensitive, but the names of functions are case insensitive. Why is this?PHP is a language that's designed to let you write a web page template into which you can insert additional tags to call up the functionality of PHP, and it originated in the days before xhtml when tags were case insensitive. So it's natural for those additional tags to be case insensitive too.
JavaScript is Case Sensitive A function named "myfunction" is not the same as "myFunction" and a variable named "myVar" is not the same as "myvar".JavaScript is case sensitive - therefore watch your capitalization closely when you create or call variables, objects and functions
HTML As regards to tag and attribute names and most keyword-like attribute values, HTML is case insensitive. You can, for example, type TITLE or Title or title or even tItLE if you like.

- 3,395
- 3
- 23
- 19
-
Except upper-case tags are considered invalid in xhtml (which wasn't part of the question, but still...) – David Thomas Nov 16 '09 at 02:13
Very roughly (as your question is a bit rough as well :): PHP is in variable names and constants, but nowhere else; javascript is completely (correct me if I'm wrong); HTML is not, however the recommended (and starting with XHTML 1.0, required) form for writing tags is lowercase.

- 442,112
- 142
- 972
- 1,088
One of these is not like the others... HTML is a markup language, as Wikipedia explains "A system for annotating text". Php and Javascript are programming languages. Programming languages "express computation". These constructs are very different, yet easy to cast into the same type because they are interwoven in a typical web application.
The other answers break down the differences, but just want to be clear there are two apples and one orange in your list.

- 4,868
- 2
- 33
- 49