CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS attr() Function

CSS attr() Function

 

 

The attr() function is used to return the value of an attribute of the selected elements. 

 

Syntax:-

 

Its syntax is:- attr(attribute-name)

 

Further Explanation:-

 

Value Description
attribute-name Required. The name of the attribute of the HTML element.

Code Explanation

All Tutorials related to CSS Functions

All Sections related to CSS