How to make the links within the page and add a link with attributes?
What is <a> anchor tag?
Explanation
<a> - 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.
Example code:
<html>
<title>Hyperlink or Anchor - link to a location on a page
</title>
<body>
<p>
<a href="#C1">See also Chapter 1.</a><br>
<a href="#C2">See also Chapter 2.</a><br>
<a href="#C6">See also Chapter 6.</a><br>
<a href="#C12">See also Chapter 12.</a><br>
</p>
<h3><a name="C1">Chapter 1</a></h3>
<p>This chapter explains about html. </p>
<h3><a name="C2">Chapter 2</a></h3>
<p>This chapter explains advanced html tutorial.</p>