HTML Attribute
- Additional information about the elements is provided by attribute.
- All HTML components are capable of having attributes.
- Typically, attribute are expressed as name=value pairs.
The parts of html attribute:
- A name and a value make up an attribute. The HTML element is <element>. The attribute names are name1 and name2.
- An element's attribute provide it more capabilities or functionality.
- In the opening tag of the element, attributes are inserted.
- Any amount of characteristics can be applied to an element.
Syntax:
The href attribute;
<a href="https://www.gocourse.in/">Click GOCOURSE</a>