QUESTION IMAGE
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
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 thesrcattribute to specify the image source. Option b lacks thesrcattribute, so it is incorrect. - Option c uses the correct
<img>tag with thesrc(source) attribute to specify the image file and thealt(alternative text) attribute which is good for accessibility and SEO. - While option d has the correct
srcattribute, it is better practice to include thealtattribute as per web standards. But if we consider the basic syntax for adding an image (thesrcis mandatory andaltis 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.
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
- Question 1: C.
<img src="image.jpg" alt="Image Description"> - Question 2: False