State about ANCHOR tag

     

    Anchor Tag - - - Links with-in-the page:

  • This is HTML tag
  • Anchor tag is useful to provide the relation between TOP to BOTTOM
  • Step1:Select a header and assign a Anchor name as "top":Syntax explanation:

    Step2:at the bottom of page provide the anchor link

    <a href="#top">Go to the top</a>

     

    Code:

    <html>
    <head>
    <title>Link with in page Anchor Tag</title>
    </head>
    <body>
    <h1>This is the text for top <a name="top"></a></h1>
    <h1>Write some text what you want here:</h1>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p>Add some Lines</p>
    <p><font color="blue"> Note:maintain the gap between header to bottom 30 to 40 lines;<br>
    If you click on top it moves to header what <br>we assigned "this is text for top" </font></P>
    <a href="#top">Go to the top</a>
    </body>
    </html>

    Result:

    Download The Coding Along With Web Page