Uploaded July 2025 | Updated September 2026, 1 week ago
The attr() function has been around forever in CSS, but recently it has received a massive update that takes it from a niche function to one of my favorite CSS features. In this video I will talk about the new changes to the attr() function as well as explain why I think it is so useful.
π Materials/References:
CSS if() Video: youtu.be/mvgY3GvcSCo
π Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: patreon.com/WebDevSimplified
Twitter: twitter.com/DevSimplified
Discord: discord.gg/7StTjnR
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
β±οΈ Timestamps:
00:00 - Introduction
00:24 - attr function basics
03:50 - attr function advanced usage
05:37 - if statement use cases
#CSS #WDS #CSSAttr
The attr() function has been around forever in CSS, but recently it has received a massive update that takes it from a niche function to one of my favorite CSS features. In this video I will talk about the new changes to the attr() function as well as explain why I think it is so useful.
π Materials/References:
CSS if() Video: youtu.be/mvgY3GvcSCo
π Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: patreon.com/WebDevSimplified
Twitter: twitter.com/DevSimplified
Discord: discord.gg/7StTjnR
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
β±οΈ Timestamps:
00:00 - Introduction
00:24 - attr function basics
03:50 - attr function advanced usage
05:37 - if statement use cases
#CSS #WDS #CSSAttr










