Should I put a Semicolon (;) when I use onclick=""?
;
onclick=""
<p onclick="closeLightBox();">Click<p>
or:
<p onclick="closeLightBox()">Click<p>
The semicolon in this position, is valid, but not mandatory.
2.1m questions
2.1m answers
60 comments
57.0k users