Question: can img tag have class?
Answer: The img element can have a "class" attribute just like most elements. You can position images, add borders, margins and much more with CSS. The "alt" attribute refers to alternative text or text that the W3C calls "fallback content". This too is required.