I saw this question and I am wondering about the same thing in JavaScript.
If you use the character \' or the character \" when making strings in JavaScript, the app
Good practice, according to Mozilla, is to use " " in HTML (where ' ' cannot be used) while reserving ' ' in Javascript (where both " " and ' ' can be use indifferently)...
There's no difference. The reason for its existence is exactly what you mentioned