How To: Make A Button
Make A Button

How To: Make A Button

<button type=”button”>Click Me!</button>

Adding this code will make a button that says “Click Me!” You can change the text to what ever you want it to say! You can also make it pop up an alert by using this code:

<button type=”button” onclick=”alert(‘Hello world!’)”>Click Me!</button>

Using this code will make an alert saying “Hello world!” pop up, just as with the text, you can make the alert say anything you’d like.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.