asked 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?

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.
answered
User Trasvi
by
8.4k points
5 votes
Because the capitilazation is different.
answered
User Andy Britcliffe
by
8.7k points

No related questions found