HTML Attributes
By Saket Bhatnagar••Beginner to Intermediate
attributes
- 1Attributes are html tag properties.
- 2They are used to provide additional information about tag , so that tag can behave in our desired manner
- 3HTML attributes consist of a name and a value, separated by an equals sign (=). The value is usually enclosed in quotes ("), although some attributes may use single quotes (') or no quotes at all.
- 4 Attributes should be applied in opening tag only.
- 5Example:
<p title="i am paragraph tag"> Welcome to Saket's Blog </p>
Here , title is attribute .