Allyphant Homepage

Buttons vs. Links - Level 02

Buttons vs. Links

Instructions

Recap: Buttons

Buttons are intended to perform an action on the current page. For example, opening a menu or submitting a form. You can create a button in HTML using the <button> element.

Just like links, buttons should have a descriptive text that explains what the button does.

Add a button that displays an alert on click.

index.html

On your computer: Press + m to use the tab key for site navigation.

The editor is loading...

Preview