1 Sept 2020

How to create an anchor link?

 

.How to create an anchor link? So that, you can go from one specific part of post to another post text.


How to link a specific part of post or text. The anchor link is, just think that you published a very long post. There are many topics in that post. Anyone who wants to read a specific topic, he has to see the whole post. But if you take the help of anchor link, if he clicks on the topic he wants to read, the anchor link will take him to the details of that post.


Example :-

<a href="#anchor-name">Jump to the part of the page or post with anchor name "anchor-name"id </a>


<a href="#Plant_topic">details of plant</a>


2nd part :-


<a id="anchor-link">The name where you want of jump<a>


<a id="Plant_topic"> Plant topic<a>

 

Alternatively-- few more ways.


Anchor within image <img id="anchor-name"src ="/images/imgname .jpg"/>


Anchor within a paragraph <p id="anchor-name">Pragraph name</p>


Anchor within header <h2 id="anchor-name">Section name</h2>


Still if you have a doubt, you can ask me.


live example : --How to create an anchor link?.



No comments:

Post a Comment