Skip to content
Web Dev Simplified
×1.5YouTube long-form

This CSS Update Revolutionizes CSS For Me - attr() Function Update

WDWeb Dev Simplified@WebDevSimplified · 1.8M subscribers
Views
70.1K
70,061
Outlier
×1.5
Median 47.5K
Length
8:02
Published
Jul 1, 2025
Tuesday
Comments
187
3.4K likes

Script

No transcript

Scout reads the transcripts of each creator's 12 latest long-form videos. This one isn't among them yet.

Description

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:    • CSS Finally Has if() Statements (but I don...

🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com

My Courses: https://courses.webdevsimplified.com

Patreon:   / webdevsimplified

Twitter:   / devsimplified

Discord:   / discord

GitHub: https://github.com/WebDevSimplified

CodePen: https://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

More from Web Dev Simplified

Search Scout

Search creators, videos and pages, then press Enter to open one.