Great article, keep it up!
Sure, you can put an onclick event on a div, but making it a button not only gives you so much API for free, but teaches machines, crawlers and tools like screen readers so much context about your interface that you're not even aware of. Worth the effort.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article, keep it up!
Sure, you can put an onclick event on a div, but making it a button not only gives you so much API for free, but teaches machines, crawlers and tools like screen readers so much context about your interface that you're not even aware of. Worth the effort.