How to make the links within the page and add a link with attributes? What is anchor tag?
– Anchor tag The anchor tag is used to create links to other web pages or documents and also links within the same page. Anything that appears between this tag will take you to that address when clicked. Attributes href – stands for hyperlink reference. It refers the address of the destination you want to go. mailto – creates email link. The email address is listed after this attribute. name – names the bookmarks that will be referenced later to link to it in the same page. target – using this attribute users can specify where the new document to be displayed. Hyperlink or Anchor – Link to a location on a page The anchor tag is also used to make the links within the web page which will take you to the specified part of the web page.
Here let us see few examples with different attributes. Syntax: Name This attribute takes us to the mailpage. Dont go any where This code refers to the same page. a new window Opens the link in a new window. The specified image(your-image) will act as a link to the specified URL. hscripts.com Link to a location in the same document. hioxindia.com Link to another file or resource. hiox.com Link to a target location in another document.