HTML5 Tag: A - anchor


If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor). If the a element has no href attribute, then the element represents a placeholder for where a link might otherwise have been placed, if it had been relevant.

<a href="index.html">Home Page</a> 
Example - Internal Linking
<a href="#demoDiv">Home Page</a>
<div>Some Big content</div>
<div id="demoDiv">Demo Div content: When you click on above link then you will be redirect to location</div>
Creating an email link
<a href="mailto:[email protected]">Send email </a>
Creating a phone link
<a href="tel:+999888777">+999888777</a>
Creating a whatsapp link
<a href="whatsapp://send?text=Hello%20World!">Hello, world!</a>

Copyright @ 2024 DevelopNew. All Rights Reserved