Louis Lazaris breaks down some bonafide CSS trickery from Jane. The Pen reveals off interactivity the place:

  1. You need to press a particular mixture of keys on a keyboard.
  2. Then kind a secret password.

From there, a particular message pops up on the display. Simply JavaScript territory, however no, that is accomplished right here totally in HTML and CSS, which is wild.

Quite a bit of little recognized options and methods is mixed right here to tug this off, like HTML’s accesskey and sample attributes, in addition to :not(), :placeholder-shown, and :legitimate in CSS—to not point out the customized property toggle trick.

That’s… wow. And but, look how little or no code it’s.

Direct Hyperlink →

#Detecting #Particular #Textual content #Enter #HTML #CSS

Leave a Reply

Your email address will not be published. Required fields are marked *