18.0k views
1 vote
Although "dog.jpg" and "dog.JPG" and "DOG.jpg" and "DOG.JPG" all appear to be the same file, they are not considered the same when programming web pages on the internet.

why?

User Darjeeling
by
6.0k points

2 Answers

6 votes
HTML is case sensitive. When it matches strings and filenames and all other kinds of things (except for tags) it checks to see if the cases match too. If they don't, they're not the same, and it doesn't return anything. As a beginning programmer, I messed this up a lot! Basically cases aren't interchangeable in HTML, so you have to be consistent.
User Trasvi
by
6.5k points
5 votes
Because the capitilazation is different.
User Andy Britcliffe
by
6.4k points