Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 11, 2020 08:47 pm GMT

On Adding IDs to Headers

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 Headers”

The post On Adding IDs to Headers appeared first on CSS-Tricks.


Original Link: https://css-tricks.com/on-adding-ids-to-headers/

Share this article:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks