Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 1 (1 point) which way is the correct way to add an image to a …

Question

question 1 (1 point)
which way is the correct way to add an image to a webpage?
○ a <h1> image.jpg </h1>
○ b <img> image.jpg </img>
○ c <img src=image.jpg alt=image description>
○ d <img src=image.jpg>
question 2 (1 point)
crediting photos is optional.
○ true
○ false

Explanation:

Brief Explanations
  • Question 1:
  • <h1> is a heading tag in HTML, not for images. So option a is incorrect.
  • The <img> tag in HTML requires the src attribute to specify the image source. Option b lacks the src attribute, so it is incorrect.
  • Option c uses the correct <img> tag with the src (source) attribute to specify the image file and the alt (alternative text) attribute which is good for accessibility and SEO.
  • While option d has the correct src attribute, it is better practice to include the alt attribute as per web standards. But if we consider the basic syntax for adding an image (the src is mandatory and alt is recommended but not always strictly required in some minimal - code scenarios), both c and d are syntactically correct for adding an image (with c being more comprehensive). However, in a standards - compliant way, c is the best answer.
  • Question 2:
  • Crediting photos is often a legal requirement if the photos are copyrighted. Even if they are in the public domain or under a Creative Commons license, proper attribution is usually part of the license terms. So, it is not optional.

Answer:

  • Question 1: C. <img src="image.jpg" alt="Image Description">
  • Question 2: False