15 Reasons Why You Shouldn’t Ignore is html case sensitive
- January 05, 2022
The problem is, this is not something that is readily apparent because browsers are case sensitive. Therefore, it is generally not possible to enter HTML code in any case other than uppercase.
This is one of those things that is caused by the case-sensitive nature of HTML. It’s also one of those things that you have to work around, which is why case sensitivity is so important. You can’t expect your users to use the right syntax for tags in their html, because they won’t be able to read the user code.
This is one of those cases where the case sensitive nature of HTML can cause a whole lot of problems. For instance, a user could make a function that is case insensitive, and then use that to insert some html code into a webpage. In that situation, the function works, but the user code is not case insensitive. In the end thats what should happen. You should get the case-sensitive code into the user code, and the user code should be case sensitive.
You can take this a step further and use the user-defined function to create an html code that is case sensitive, so that the user-defined function would not be case sensitive. Then you can use that function to insert some html code into a webpage. That is the case-sensitivity you are looking for.
The problem is that the user-defined function cannot insert a case-sensitive code into a webpage. In order to do this function must know the case of every word that is entered into the page. So either your page has to be case sensitive (which is awful), or you have to create an html code that is case sensitive (which is even worse).
Why is this so bad? Sure, html is case sensitive (to a certain degree), but it’s not that case specific. Also, you can use html to insert case-sensitive code into any webpage. Your function would not be case sensitive, but it would be html.