What does '& quot' mean in the code?

3

My code was like this

<button onclick="document.getElementById('myImage').src='pic_bulboff.gif'">
    Turn off the light
</button>

and the next time I checked I found this:

<button onclick="document.getElementById(&quot;MyImage&quot;).src=&quot;pic_bulboff_off.gif&quot;">
    Apagado
</button>

Why does this happen in the code, because? Is there any consequence or is it harmful in any way? I would like to be aware of everything, thank you.

    
asked by Hoozuki 10.08.2018 в 16:20
source

3 answers

1

the &quot means a simple quote ' which is being misinterpreted the rules of HTML maybe by some language you are using or the version.

I leave you a More Complete Explanation Link NOTE: Read Lee's response

successful bro, ReNiceCode ...

    
answered by 10.08.2018 в 16:30
0

They are single quotes.

('myImage')
(&quot;MyImage&quot;)

This list can serve as a reference.

link

    
answered by 10.08.2018 в 16:30
-1

&quot; indicates double quote ( ").

See this source for more information.

    
answered by 10.08.2018 в 16:29