In HTML <img> element is an empty element. This means there is no closing tag, and it must carry two attributes: src and alt attributes. Also 'title' attribute can be used. Most browsers will display the content of 'title' attribute in a tooltip when the users hovers over the image.