HTML Tutorial
Attributes
Add extra information and behavior to HTML elements.
Attributes are written inside opening tags and provide extra details about an element.
Common attributes include href, src, alt, id, class, type, and name.
code
<a href="https://example.com">Visit Website</a>
<img src="photo.jpg" alt="Profile photo" />