What Is an Attribute?

An attribute is a word attached to an HTML element to provide additional information and modify the default characteristics or an element. In the example below, src, alt, width, and height are attributes of the img tag

Ex. <img src=”panda.jpg” alt=”picture of a panda” width=”500” height=”500”>

Get Found. Naturally.