How to Resolve NextJS Not Returning Correct Status for 404 PagesI was struggling to understand why my NextJS project using app router was not returning a 404 status code when I used the built in notFound() function. This took to me some time to figure out, so I am sharing the fix here in hopes that it will help s...Aug 25, 2025 · 2 min readchjweb.se
3 Common Alt Attribute MistakesMost web developers are aware of the alt attribute and have probably read something like: “always include the alt attribute to improve accessibility.” A common misconception is that simply putting any kind of text inside the alt attribute will improv...Feb 1, 2025 · 6 min readchjweb.se
The Problem with Using Placeholder AttributesI am not the first person to write about the accessibility issues of placeholders, but I keep seeing them pop up in different projects. It is not uncommon to see a design that looks like the following: An input field, where the only way to discern i...Jan 21, 2025 · 4 min readchjweb.se
Gradient Border in Pure CSSIt's been a while since I last made an post in the Pure CSS series, but now it's time to add another entry to it. This post will show you how to create a gradient border in Pure CSS. The "Pure CSS" part mainly refers to not having to use a third-part...Feb 10, 2022 · 4 min readchjweb.se
A Better Way To Build With FaunaMost tutorials on FaunaDB tells you to upload your GraphQL schema via their UI. When I started using Fauna, I felt that this workflow was very tedious. Every time I'd make a change in my schema, however small, I'd have to open the Fauna dashboard and...Feb 8, 2022 · 4 min readchjweb.se