To select elements by attribute in CSS, we use the attribute selector.
For instance, we write
[data-role="page"] {
//...
}
to select the elements with the data-role
attribute equal to page
.
To select elements by attribute in CSS, we use the attribute selector.
For instance, we write
[data-role="page"] {
//...
}
to select the elements with the data-role
attribute equal to page
.