Make A Button

How To: Make A Button

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
Share on email

<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.