The HTML <a> element (or anchor element), with its href attribute,
creates a hyperlink to web pages, files, email addresses, locations
in the same page, or anything else a URL can address. Content within
each <a> should indicate the link's destination.
Use:
<a href="https://example.com"> </a>
// <a> tag (Anchor tag) is used to direct you to another
// site. If the target is unpecified it uses the same tab
// and if you specifie "_black" it opens a new tab
<a href="https://www.example.com/" target="_blank"> Text </a>
<!-- <a> element links to the section below -->
<p><a href="#Section_further_down">
Jump to the heading below
</a></p>
<!-- Heading to link to -->
<h2 id="Section_further_down">Section further down</h2>
See <A HREF="http://www.w3.org/">CERN</A>'s information for
more details.
A <A NAME=serious>serious</A> crime is one which is associated
with imprisonment.
...
The Organization may refuse employment to anyone convicted
of a <a href="#serious">serious</A> crime.
The <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which indicates the link's destination.
By default, links will appear as follows in all browsers:
1. An unvisited link is underlined and blue
2. A visited link is underlined and purple
3. An active link is underlined and red
Creating a link to programmingquest.com:
<a href="https://www.programmingquest.com">Visit ProgrammingQuest</a>
Code Example |
---|
Html :: convert element to html string |
Html :: botão enviar html |
Html :: remove auto zoom on smartphone website |
Html :: html input invalid |
Html :: collapse bootsrap |
Html :: toggle button |
Html :: The <input Element |
Html :: Uncaught TypeError: Bootstrap |
Html :: bootstrap form input select |
Html :: %20 in html |
Html :: horizontal line html |
Html :: postgres default port |
Html :: lazy load |
Html :: html click hide textbox |
Html :: html preview pdf file |
Html :: boostrap base theme |
Html :: game engine |
Html :: textarea |
Html :: table in bootstrap 4 |
Html :: Modify h1 text |
Html :: class disabled |
Html :: v model vue |
Html :: text field input default value html |
Html :: navbar styles css |
Html :: pdf download button |
Html :: androif intent in html link |
Html :: disable user going back after logging out button jsf |
Html :: disable pdf download to not logged in users wordpress |
Html :: display element with ng-template |
Html :: url trigger click |