Linking on the Same Web PageTo create an internal link, you need to use a pair of <a> tags. The first <a> tag is used to specify the name of the target location for identification purpose. It is known as target fragment. You can use the <a> tag with its name or id attribute to identify a fragment. This type of anchor is commonly called as named anchor.The first step is to make the target fragment. The simple syntax to do so is written below:<a name =”aa”> Part A </a>Where, “aa” is the name of fragment/segment you want to refer (like top, bottom etc.). The second <a> tag is used to create a link to the target fragment. The simple syntax to link to the target segment is written below:<a href = “#aa”> ClickHere </a>In the second <a> tag, the value of href attribute with # symbol is to be specified.Example: To show the internal linking in an HTML document.<html><head><title>Internal Linking<title></head><body><h1>Linking in a page </h1><h3>Click here to go to the<a href='#bottom'>bottom</a> of the page.</h3> > > > <a name='bottom'><h3> You are at the bottom of the page.</h3></a></body></html>outputLinking Sections of DifferentWeb Pages Internal linking enables us to link sections of different Web pages also. It can be done by specifying the name of the Web page and the section which is to be linked. To link two Web pages, you first need the name to the section by using name attribute of <a> tag that you want to link. Suppose, we need to link a section of HTML1.html to HTML2.html. Create a named anchor in HTML1.html.The syntax is given below:<a name =”link”> Different Page </a>After this, you have to write the code to refer to it, from Web page HTML2.html.Following is the code to do so:<a href =”HTML1.html#link”>Here, HTMLl.html is the name of html file to the section of which you want to link and # link is the segment name you want to link in that html file.