Introduction
Attributes add extra information to HTML elements. They help control how elements behave or look.
To give an image a description with alt text for accessibility.
To set a link's destination URL.
To add a unique ID to an element for styling or scripting.
To specify the size or type of an input field in a form.
To make a button perform an action when clicked.