Asked by Jesse Mad3329 on Jul 09, 2024
Verified
What do the <img>, <br>, and <hr> tags have in common?
A) They display photographs and other graphics.
B) They require closing tags.
C) They require the alt attribute.
D) They are one-sided tags.
Alt Attribute
The alt attribute is a specification in HTML that provides alternative text for images if they cannot be displayed, enhancing web accessibility.
Photographs
Images captured by a camera that record visual impressions of subjects using light-sensitive materials or digital sensors.
Graphics
Visual elements such as images, shapes, and designs used in digital media or printed material to enhance aesthetic appeal or convey information.
- Master the fundamental aspects of coding languages critical for web development, encompassing HTML, CSS, and JavaScript.
Verified Answer
NJ
Nurse JonesJul 15, 2024
Final Answer :
D
Explanation :
The <img>, <br>, and <hr> tags are one-sided tags, meaning they do not require a closing tag. The <img> tag is used for displaying images, the <br> tag is used for line breaks, and the <hr> tag is used for horizontal lines. None of these tags require the alt attribute, although it is considered best practice to include it for accessibility purposes in the <img> tag.
Learning Objectives
- Master the fundamental aspects of coding languages critical for web development, encompassing HTML, CSS, and JavaScript.