Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace "values" links with cssxref macro in /web/html
Search: \[`([^`]+)`\]\(/en-US/docs/Web/CSS/Reference/Values/([^)]+)\)
Replace: {{cssxref("$1")}}
  • Loading branch information
dipikabh committed Dec 15, 2025
commit 6f8b97f6d2ee13547b79ca88a0a973851989c5fd
2 changes: 1 addition & 1 deletion files/en-us/web/html/how_to/use_data_attributes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ threeColumnArticles.forEach((article) => {

## CSS access

Note that, as data attributes are plain HTML attributes, you can even access them from [CSS](/en-US/docs/Web/CSS). For example to show the parent data on the article you can use [generated content](/en-US/docs/Web/CSS/Reference/Properties/content) in CSS with the [`attr()`](/en-US/docs/Web/CSS/Reference/Values/attr) function:
Note that, as data attributes are plain HTML attributes, you can even access them from [CSS](/en-US/docs/Web/CSS). For example to show the parent data on the article you can use [generated content](/en-US/docs/Web/CSS/Reference/Properties/content) in CSS with the {{cssxref("attr()")}} function:

```css
article::before {
Expand Down