HTML Attribute

HTML attributes are special words which provide additional information about the elements or attributes are the modifier of the HTML element.
Each element or tag can have attributes, which defines the behaviour of that element.

Attributes should always be applied with start tag.
The Attribute should always be applied with its name and value pair.
You can add multiple attributes in one HTML element, but need to give space between two attributes.

<element attribute_name="attribute_value">content</element> 

The <img> is html element tag and src,atl,width and height is a attributes

— The output of the above example will look something like this:-

Stack Overlode is optimized Tutorials and examples for learning and training. Examples might be simplified to improve reading and learning and understand. Tutorials and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using Stack Overlode, you agree to have read and accepted our terms of use, cookie and privacy policy.