QUESTION IMAGE
Question
what do we add to alt?
a a description of the image
b nothing
c the citations for the image
d the source to the image
question 4 (1 point)
diana is trying to add the image cat.jpeg to her website. which line of code will add the image?
a <img src=cat.jpeg alt=cat sleeping>
b <img src=cat.jpeg alt=cat sleeping>
c <img src=cat.jpg alt=cat sleeping>
d <img src=cat - sleeping.jpeg alt=cat sleeping>
question 5 (1 point)
which of the following follows good naming conventions for images?
a tree - frog.jpeg
b tree - frog——.jpeg
c 123frog.jpeg
d treefrog.jpeg
- For the first question: The
altattribute in HTML is used to provide a text - based description of an image. This is important for accessibility (e.g., screen readers) and when the image fails to load. - For the second question: In HTML, when specifying the
src(source) of an image, the file extension should match the actual file extension. If the image file is namedcat.jpeg, then thesrcshould becat.jpeg. - For the third question: Good naming conventions for images include using lowercase letters (to avoid case - sensitivity issues on different servers), using descriptive names, and using hyphens (
-) to separate words (instead of spaces or other special characters).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- First question: A. A description of the image
- Second question: B.
<img src = "cat.jpeg" alt = "cat sleeping"> - Third question: A.
tree - frog.jpeg