How to use anchor tag in html with example
how to use anchor tag in html with example: If you want to blogging or you are blogging, then it is very important to know about anchor text. anchor text is used in the website coding in HTML and I will tell you in detail how to use anchor tag in html with example.
first of all, it is necessary to coordinate what is anchor tag and why it is used? Anchor tags are used to link any page, audio, video, pdf etc... to a webpage.
Why do we use anchor tag?
1. If you use anchor tag to link your page to any website's article.
2. If you want to link any YouTube video to your webpage then you can also use it.
3. You want to link any image to your webpage so you can use it.
4. You want to link any PDF file to your webpage so you can use it.
Examples of Anchor tag in html
Link Webpage
I am adding a webpage to this article Click here.
Html Coding:
<a href="https://www.w3schools.com">Click here</a>
Explanation: <a href=”webpage url to link >text to link webpage example: my text is click here </a>
Link Video
Watch video for getting more information about anchor tag in html.
Html Coding:
<a href="https://www.youtube.com/watch?v=9TjkloW78UI">Watch Video</a>
Expalnation: <a href=”https://www.youtube.com/watch?v=9TjkloW78UI >text to link Video example: my text is Watch Video</a>
Also Read: How to add keyword & description meta tag in blogger.
Image Link
Image to explain how to use anchor tag in html.
Html Coding:
<a href="https://image.slidesharecdn.com/lecture2-introductiontohtml-140915032033-phpapp01/95/lecture-2-introduction-to-html-20-638.jpg?cb=1410751818">Image</a>
Expalnation:
<ahref=”https://image.slidesharecdn.com/lecture2-introductiontohtml-140915032033-phpapp01/95/lecture-2-introduction-to-html-20-638.jpg?cb=1410751818 >text to link Image example: my text is Image</a>
Also Read: How to remove date in blogger permalink.
Important Notes:
What Is URL?
So friends, you have understood how you can use anchor tag by reading this article. And You read in this article I read how to use anchor tag in html with example.
No comments:
Post a Comment