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 :: html css good button |
Html :: html always show scrollbar |
Html :: Align an element to bottom with flexbox |
Html :: rowspan |
Html :: jsonplaceholder with delay |
Html :: membuat footer html |
Html :: use font on website html |
Html :: breaks html |
Html :: how to write 2 class in html |
Html :: html video repeating |
Html :: vue bootstrap row |
Html :: how to add function to button in html |
Html :: unmount ubuntu |
Html :: block level elements |
Html :: input type=number 01 |
Html :: How to align input line in html forms |
Html :: link with no link html |
Html :: how to insert a banner in html |
Html :: drop down using bootstrap |
Html :: bootstrap modal causes page shift |
Html :: metadata |
Html :: bootstrap country flag dropdown |
Html :: react-render-html |
Html :: input range event |
Html :: textarea ckeditor |
Html :: html video multiple elements |
Html :: ocultar div css |
Html :: meta for author |
Html :: table header html |
Html :: how to disable tabindex |