Which attribute is used to provide an alternative text for an image in HTML?
- alt
- href
- src
- title
The alt attribute is used to provide alternative text for an image in HTML. This text is displayed if the image file cannot be loaded or if the user is using a screen reader. It is important for accessibility and SEO purposes.
Loading...
Related Quiz
- What is the principle of least privilege in security?
- The Python module used for logging is called _______.
- Which stage of CI/CD involves automatically deploying changes to a production environment?
- What is a primary use case for MongoDB?
- The split() method in JavaScript is used to split a string into an array of _______.