5.1. Distinguish buttons from links

Limit the use of buttons to actions and links to navigation.

Buttons

Button elements <button> / <input /> are for triggering an action.

They are to be used in cases such as submitting information, displaying the next or previous image in a carousel, closing a modal dialogue box, etc.

Links

Links <a> are for navigation.

They are used to move to another page or to a specific area of the current page, by means of an anchor system.

Comments

Add a comment

Required fields are marked *.

Back to top