Question 1 out of 5

    What is the purpose of the 'alt' attribute in HTML?

    A. It specifies the alternative text for an image

    The 'alt' attribute in HTML is used to provide alternative text for an image, which is displayed if the image fails to load or for accessibility purposes.