DEV Community

Cover image for Better Internal Links #
Altug Gurkaynak
Altug Gurkaynak

Posted on

Better Internal Links #

Internal links are a great way to divide the parts of your article.

But they can be better!

If you make the internal titles (h2, h3, h4) look different with CSS (see the example below) that makes it possible to share the link. Also this lets the user FOCUSED to that part of the article ðŸŽŊ

Lets See How

When the internal link is active, make it look featured or different.

So, if you send a link like https://abc.com/page#inner , your title will look different than the other titles (or internal links).

Also, if you use a link image and make it clickable, your readers can/will make the title active and share that internal link by themself. So emphasise it if you can.

Lets see it in action with the code:

https://codepen.io/altug/pen/VwdwKpw

Please share your thoughts and/or development suggestions ✌

Top comments (0)