Link

HTML Link

Example

<html>
<Head>
<tittle>Unordered List Tag </tittle>
</Head>
<body>
<a href="url" target="_blank">link text</a>
</body>
</html>

Target attribute:-Target attribute is used to specify the location where linked document is opened

  • _blank

    Opens the linked document in a new window or tab.

  • _self

    Opens the linked document in the same frame.

  • _parent

    Opens the linked document in the parent frame.

  • _top

    Opens the linked document in the full body of the window.

  • targetframe

    Opens the linked document in a named targetframe.

  • Use an Image as a Link

    To use an image as a link, we simply use the <img> tag inside the <a> tag:

    example

    <html>
    <Head>
    <tittle>Unordered List Tag </tittle>
    </Head>
    <body>
    <a href="Home.html"> <img src="image.jpg" alt=" " style="width:42px;height:42px;"> </body>
    </html>