An Interest In:
Web News this Week
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
June 11, 2020 08:47 pm GMT
Original Link: https://css-tricks.com/on-adding-ids-to-headers/
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:
Tweet
View Full Article