HTML attributes provide additional information about HTML elements. They are always specified in the start tag and usually come in name="value"
pairs.
<element attribute="value">Content</element>
<a href="https://example.com">Visit</a>
Defines the URL for a link
<img src="image.jpg" />
Specifies the image path
<img alt="description" />
Provides alternate text for images
<p style="color:red;">Text</p>
Adds inline CSS
<p title="Tooltip">Hover me</p>
Adds a tooltip when hovered
You can use multiple attributes in a single tag to define more properties.
<img src="logo.png" alt="Logo" width="100" height="100">
Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!