Element-specific attributes (alt for images, href for links)
While global attributes can be applied to any HTML element, some attributes are specific to certain elements. Let's look at two common examples: alt attribute for images (<img>) Purpose: Provides alternative text for an image. This text is displayed if the image cannot be loaded, or for users who are visually impaired and use screen readers. Usage: HTML <img...
0 Reacties 0 aandelen 2K Views 0 voorbeeld