0

Event Attribute

Which one of his valid and why? <button onclick="myfunction();" >hello</button> <button onclick="myfunction()" >hello again </button> and also describe all semi -colon unnecessary in html .

2nd Jul 2018, 5:02 PM
Jitender Kashyap
Jitender Kashyap - avatar
1 ответ
0
the second one is invalid because the opening tag is <buton> and the closing tag is </button> which is not the same
2nd Jul 2018, 6:02 PM
ReimarPB
ReimarPB - avatar