Categories Programming & Tech

A Few Things About the Anchor Element’s href You Might Not Have Known | CSS-Tricks

I love “re-learning” things I thought I knew. HTML is full of those opportunities (case in point, like today) since it’s where you typically start learning about web development. And in those early days, you don’t know what you don’t know.

So, thanks Jim Nielsen for giving me a reason to give URL patterns another look. It’s easy to take URL superpowers for granted, even if you already have these patterns under your belt.

The patterns:

 
 
 
 
 
  

But do yourself a favor and read Jim’s full post. He gets way more into the weeds, referencing the specification and stress testing different configurations. I mean, this is gold:

But I’m writing because#topwill also scroll to the topifthere isn’t another element withid="top"in the document. I didn’t know that.

Me neither.


Direct Link →

Written By

More From Author

You May Also Like