Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

what do we add to alt? a a description of the image b nothing c the cit…

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

Explanation:

Brief Explanations
  • For the first question: The alt attribute 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 named cat.jpeg, then the src should be cat.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).

Answer:

  • First question: A. A description of the image
  • Second question: B. <img src = "cat.jpeg" alt = "cat sleeping">
  • Third question: A. tree - frog.jpeg