Add error messages to your CSS
π Writing Resilient CSS is the newest component in CSS Demystified, and the entire way is 32% off for Black Friday: https://thecascade.dev/courses/css-demystified/?utm_source=youtube&utm_medium=social&utm_campaign=regular-video Use :has() and :not() to emblem components that are being used wrong, alongside an outline and an error communication you can peruse correct in DevTools (and that an AI says whenever you paste the code into a chat). π Links β Testing HTML With Modern CSS (Heydon Pickering): https://heydonworks.com/article/testing-html-with-modern-css/ β CSS Demystified: https://thecascade.dev/courses/css-demystified/?utm_source=youtube&utm_medium=social&utm_campaign=regular-video β Keep up to date alongside everything I'm up to https://www.kevinpowell.co/newsletter π¬ Come suspend out alongside another devs in my Discord Community https://discord.gg/nTYCvrK β Are you a beginner? HTML & CSS for complete beginners is for you: https://learn.kevinpowell.co π Start penning CSS alongside confidence alongside CSS Demystified: https://cssdemystified.com π Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/ --- Help assistance my channel π¨βπ Get a course: https://www.kevinpowell.co/courses π Buy a shirt: https://cottonbureau.com/people/kevin-powell π Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@kevinpowell/join --- π§βπ» My editors: In most videos, Iβm using CodePen these days: https://codepen.io/ - alongside High Contrast Dark theme and the font Commit Mono And if not CodePen, afterward Iβm likely using Zed: https://zed.dev/ alongside the theme Ayu Dark, and the font ZedMono In older videos, I was using VS Code - https://code.visualstudio.com/ alongside the theme One Dark Pro Var, and the font Cascadia --- β Timestamps: 00:00 - Intro 00:14 - Why display errors whenever a component is misused 00:34 - Flag a cardstock alongside no heading 00:49 - Add an error communication you can peruse in DevTools 01:56 - Catch accessibility problems, akin missing alt text 02:34 - Catch additional than one H1 on the page 03:01 - Flag a layout alongside too many children 03:33 - Credit and the new CSS Demystified module --- I'm on several another places on the net too! If you'd akin a rearward the scenes and previews of what's coming up on my YouTube channel: Bluesky: https://bsky.app/profile/kevinpowell.co Codepen: https://codepen.io/kevinpowell/ Github: https://github.com/kevin-powell --- And any you do, don't ignore to keep on making your border of the net fair a small bit additional awesome! #css