attr()
Term side of the Card
Topic: Global Functions
Unit title: attr()
Categories: Function
Explanation side of the Card
Explanation: The function used to retrieve and display the value of an HTML attribute, often in combination with pseudo-elements. It allows dynamic insertion of attribute values, such as `data-*` or `title`, directly into the content or styles.
Browser compatibility:
- The chrome browser supports this feature starting from version 2
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 1
- The safari browser supports this feature starting from version 3.1
Availability: