I came across this line of code
<button onclick="Set_Delete()" id="btnDelete" alt="submit" >Delete</button>
I'm not able to understand what is the use of alt in a button tag. Can anyone elaborate it?
I came across this line of code
<button onclick="Set_Delete()" id="btnDelete" alt="submit" >Delete</button>
I'm not able to understand what is the use of alt in a button tag. Can anyone elaborate it?
The alt attribute provides an alternate text for the user, if he/she for some reason cannot view the image (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
Note: The alt attribute can only be used with input type image and code in your question is Invalid