What does the <img> tag do in HTML?

Master the CIW Site Development Associate Exam with targeted study tools, including flashcards and multiple-choice questions. Each question comes with hints and explanations to ensure you're fully prepared for exam day confidence!

The tag in HTML is specifically used to embed images on a web page. This tag is essential for displaying graphics and photographs, making it a fundamental part of web design. The tag requires a source attribute, usually written as src, which points to the location of the image file, allowing browsers to fetch and display the image correctly. Additionally, it can include attributes such as alt, which provides alternative text for the image if it cannot be displayed, enhancing accessibility and search engine optimization.

In contrast, the other choices refer to different HTML elements. For instance, creating a hyperlink is accomplished using the tag, while defining a table involves the

tag. Including a script within a web page can be done with the