My code was like this
<button onclick="document.getElementById('myImage').src='pic_bulboff.gif'"> Turn off the light </button>
and the next time I check I came across this:
<button onclick="document.getElementById("MyImage").src="pic_bulboff_off.gif""> Apagado </button>
Why is this happening in the code, because of what? is there any consequence or is it detrimental in any way? I would like to be aware of everything, thank you.
" means a single quotation mark
' which is being encoded according to the rules of
HTML perhaps for some language you're using or encoding the file.
You can find more information in the following link More complete Explanation Link