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 fails to load or for accessibility purposes, allowing screen readers to describe the image to visually impaired users.
Loading...
Related Quiz
- Which type of relationship is represented by a foreign key in a database?
- MongoDB is an example of a _______ database.
- Which attribute is used to provide an alternative text for an image in HTML?
- You're working on a team project, and your feature branch diverged significantly from the main branch. Which Git command would you use to integrate your changes without creating a messy merge history?
- Which of the following is a common testing framework used in TDD for JavaScript?