CSS - Attr function (attribute)

> (World Wide) Web - (W3|WWW) > CSS - Cascading Style Sheets - Markup Language (HTML|XML) Skin

1 - About

The attr function select the value of an attribute

Advertising

3 - Example

<p data-length="2m" >Beyond The Sea</li>
p::before {
   content: attr(data-length) " ";
}
where:

4 - Documentation / Reference

web/css/attr.txt ยท Last modified: 2019/02/09 11:40 by gerardnico