Technology News

Detecting Specific Text Input with HTML and CSS

Louis Lazaris breaks down some bonafide CSS trickery from Jane. The Pen shows off interactivity where:

  1. You have to press a special combination of keys on a keyboard.
  2. Then type a secret password.

From there, a special message pops up on the screen. Easily JavaScript territory, but no, this is done here entirely in HTML and CSS, which is wild.

A lot of little known features and tricks is combined here to pull this off, like HTML’s accesskey and pattern attributes, as well as :not(), :placeholder-shown, and :valid in CSS—not to mention the custom property toggle trick.

That’s… wow. And yet, look how very little code it is.

Direct Link →

Is it Finally Safe to Use Serif Fonts Online?
Astroworld and the trickiness of tragedy blame games

Related Articles

What Is the Best Font for a Flyer?

What Is the Best Font for a Flyer?
Helvetica, Nevis, Cooper Black, Mono Alphabet — these names will be extremely familiar to those who have ever tried to create a stunning flyer, brochure, leaflet, and so on. Such…

Test Your Site With Real Users

test-your-site-with-real-users
A few years ago, there was this French book publisher. They specialize in technical books and published an author who wrote a book about CSS3, HTML5 and jQuery. The final…

USB-C on iPhone 15 Pro Changes EVERYTHING..

USB-C on iPhone 15 Pro Changes EVERYTHING..
Get the ProtoArc 2 in 1 Travel Hub Mouse direct from their official website and use “25CREATED” for 25% off: https://crtd.tech/hubmouse Also available on Amazon: https://crtd.tech/hubmouseamazon I’ve been using the…

WEIRD iPhone Easter eggs…????

WEIRD iPhone Easter eggs…????
iOS has quite a few really weird easter eggs. Can you find them all? Here’s some on the iPhone 15 Pro running iOS 17 you’ve probably never heard of.#iphone #apple…