HTML Attributes
Attributes
HTML attributes are basically used for adding additional information to the tag, It gives some extra data or information about the relative tag which helps the tag in changing its behavior. They exist in the form of name="value" pairs.
Syntax:-
Its syntax is:- {attribute_name="attribute_value"}
Example:-
- href attribute (used in a tag)
- src attribute (used in img tag)
- width attribute (used in img tag)
- height attribute (used in img tag)
- accesskey attribute (used with all tags)
- class attribute (used with all tags)
- title attribute (used with all tags)
- id attribute (used with all tags)
- style attribute (used with all tags)
- contenteditable attribute (used with all tags)