Professional Documents
Culture Documents
HTML
HTML
/ Courses
/ Complete HTML / HTML5 Crash Course.
/ Lessons
/ HTML Links
Go to course home
The HTML anchor tag defines a hyperlink that links one page to another page. It can create hyperlink
to other web page as well as files, location, or any URL. The “href” attribute is the most important
attribute of the HTML a tag. and which links to destination page or URL.
The link starts at the source anchor and points to the destination anchor, which may be any web
resource, for example, an image, an audio or video clip, a PDF file, an HTML document or an element
within the document itself, and so on.
Example
_self – Default. Opens the document in the same window/tab as it was clicked.
Images as a link
To use an image as a link, just put the <img> tag inside the <a> tag:
Example
<a href=”https://lab.thecloudde.com”>
</a>
Run Code
Previous Next