Menu ▼

Previous Next

a (Anchor) :

the Anchor (a) tag will be used to give hyperlinks to other pages, it can be with in the web site or an external page.

Syntax :

<a href="location here...."></a>


Example :

<html>

<head>

    <title>HTML Tutorial</title>

</head>

<body>

    <form>

    <div>

        <a href="a.aspx">Click here to load the same page</a><br />

        <a href="/">Click here to go to home page of this web site</a><br />

        <a href="select.aspx">Click here to go to select page</a><br />

        <a href="http://www.google.com" target="_blank">Click here to open google in new window</a>

    </div>

    </form>

</body>

</html>


Previous Next




Search dotnetlearners.com