June 11, 2020 08:47 pm GMT
Original Link: https://css-tricks.com/on-adding-ids-to-headers/
On Adding IDs to Headings
Here’s a two-second review. If an element has an ID, you can link to it with natural browser behavior. It’s great if headings have them, because it’s often useful to link directly to a specific section of content.
<h3 id="step-2"Step 2</a
Should I be so inclined, I could link right to this heading, be it from an URL, like https://my-website.com/#step-2
, or an on-page link, like:
<a href="#step-2"Jump to Step 2</a
So, it’s ideal if all headers have … Read article “On Adding IDs to Headings”
The post On Adding IDs to Headings appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/on-adding-ids-to-headers/
Share this article:
Tweet
View Full Article