Which attribute is essential to specify the source of an image?
- href
- link
- source
- src
The src attribute is crucial for defining the source of an image in the
tag. Its value is the URL of the image you want to display. The href attribute is used with anchor tags, , for links, while source and link aren't standard attributes to specify an image source.
Loading...
Related Quiz
- Which HTML tag is used to render text as bold?
- How can you ensure that the page doesn’t scroll when an internal link is clicked?
- Comments in HTML are not displayed in the _____.
- Which HTML element is used to group related elements within a form and pairs them with a related legend?
- What is the significance of the viewport meta tag in HTML5?