kevinpowell

Don't use spans or code for shortcuts and keystrokes


Listen Later

Check out the HTML & CSS Tip of the Week: https://html-css-tip-of-the-week.netlify.app/

🔗 Links

✅ The code from this video: https://codepen.io/kevinpowell/pen/qEBWJYN
✅ Relative colors: https://youtu.be/gPacarD9NuA
✅ MDN on kdb (includes samp examples too): https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd
✅ :has() support table: https://caniuse.com/css-has
✅ HTML & CSS tip of the week: https://html-css-tip-of-the-week.netlify.app/

🎓 https://kevinpowell.co/courses

⌚ Timestamps

00:00 - Introduction
01:15 - the kbd element
03:00 - nested kbd elements
05:05 - html and css tip of the week
06:30 - the samp element
08:00 - using samp and kbd together
10:30 - styling them up depending on how they are nested
10:45 - kbd inside of samp

#css

--

Come hang out with other dev's in my Discord Community

💬 https://discord.gg/nTYCvrK

Keep up to date with everything I'm up to

https://www.kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!

📺 https://www.twitch.tv/kevinpowellcss

Help support my channel

👨‍🎓 Get a course: https://www.kevinpowell.co/courses
👕 Buy a shirt: https://teespring.com/stores/making-the-internet-awesome
📽️ Join as a channel member: https://youtube.com/@KevinPowell/join
💖 Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: Join this channel to get access to perks:
https://www.youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw/join

My editor: VS Code - https://code.visualstudio.com/

I'm on some other places on the internet too!

If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.

Bluesky: https://bsky.app/profile/kevinpowell.co

Codepen: https://codepen.io/kevinpowell/
Github: https://github.com/kevin-powell

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

...more
View all episodesView all episodes
Download on the App Store

kevinpowellBy