Category: Coding Tips & Tricks

Coding Tips & Tricks

Explaining the Accessible Benefits of Using Semantic HTML Elements

Reading Time: 3 minutesHere’s something you’ll spot in the wild: <div class=”btn” role=”button”>Custom Button</div> This is one of those code smells that makes me stop in my tracks because we know there’s a semantic <button> element that we can use instead. There’s a whole other thing about conflating anchors (e.g., <a class=”btn”>) and buttons, but that’s not exactly […]

Coding Tips & Tricks

The “Most Hated” CSS Feature: tan()

Reading Time: 8 minutesLast time, we discussed that, sadly, according to the State of CSS 2025 survey, trigonometric functions are deemed the “Most Hated” CSS feature. That shocked me. I may have even been a little offended, being a math nerd and all. So, I wrote an article that tried to showcase several uses specifically for the cos() and sin() functions. Today, […]

Coding Tips & Tricks

Getting Creative With Small Screens

Reading Time: 8 minutesOver the past few months, I’ve explored how we can get creative using well-supported CSS properties. Each article is intended to nudge web design away from uniformity, toward designs that are more distinctive and memorable. One bit of feedback from Phillip Bagleg deserves a follow up: Andy’s guides are all very interesting, but mostly impractical […]

Coding Tips & Tricks

An Introduction to JavaScript Expressions

Reading Time: 10 minutesEditor’s note: Mat Marquis and Andy Bell have released JavaScript for Everyone, an online course offered exclusively at Piccalilli. This post is an excerpt from the course taken specifically from a chapter all about JavaScript expressions. We’re publishing it here because we believe in this material and want to encourage folks like yourself to sign […]

Coding Tips & Tricks

Building a Honeypot Field That Works

Reading Time: 4 minutesHoneypots are fields that developers use to prevent spam submissions. They still work in 2025. So you don’t need reCAPTCHA or other annoying mechanisms. But you got to set a couple of tricks in place so spambots can’t detect your honeypot field. Use This I’ve created a Honeypot component that does everything I mention below. […]

Coding Tips & Tricks

The thing about contrast-color

Reading Time: 2 minutesOne of our favorites, Andy Clarke, on the one thing keeping the CSS contrast-color() function from true glory: For my website design, I chose a dark blue background colour (#212E45) and light text (#d3d5da). This colour is off-white to soften the contrast between background and foreground colours, while maintaining a decent level for accessibility considerations. […]

Back To Top