How do you make a button on HTML?

1 answer

Answer

1032423

2026-09-07 13:45

+ Follow

JavaScript
JavaScript

You use the input tag and the button type. Value will specify what appears on the face of the button. All input tags should appear inside form tags. The following will create a simple button, that when clicked will pop up a message, using a bit of JavaScript. Copy and paste it or type it exactly as it is into your code and it will work.

<FORM>

<INPUT Type=Button value="Click Here" onClick="alert('Hello');">

</FORM>

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.