We use the \'alt\' attribute in an image tag to:* O Display alternative text to
ID: 3903191 • Letter: W
Question
We use the 'alt' attribute in an image tag to:* O Display alternative text to the image when it's not properly rendered. O Display an alternative title on the image. O Change the source of an image when it's not properly displayed. O Setup the height and width of an image. O Display an alternative image on top of the current image. The main difference between "id" and "class" is:* O class must be unique, whereas 'id' can be repetitive. O They are the same, just different terminologies. O 'id' must be unique, whereas 'class' can be repetitive. id' is used to add styles to HTML elements, whereas 'class' is used to group HTML elements. O id is likeExplanation / Answer
Answer:
Question 1
Answer is Display alternative text to the image when it's not properly rendered. (Option A)
Reason: The alt attribute specifies an alternate text for an image, if the image can't be displayed. The alt attribute provides alternative information for an image if a user for some reason can't view it (because of slow connection, an error in the src attribute, or if the user uses a screen reader).
Question 2
Answer is 'id' must be unique, where as 'class' can be repetitive. (Option C)
Reason: An ID can be used to identify one element, whereas a class can be used to identify more than one element.