xxxxxxxxxx
<!-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a -->
<!-- link -->
<a href="http://"></a>
<!-- telp -->
<a href="tel:+"></a>
<!-- Email -->
<a href="mailto:someone@example.com">Send email</a>
<!-- File -->
<a href="/html/default.asp"></a>
xxxxxxxxxx
<a href="https://app.revature.com">Visit our learning platform</a>
xxxxxxxxxx
<!-- this is a link tag -->
<link rel="" href="">
<!-- href is the location of your external ressource
list of rel used with a link tag (popular) :
- stylesheet (css)
- alternate
- author
- external
- incon
- index
-->
xxxxxxxxxx
<!DOCTYPE html>
<html>
<body>
<h1>HTML Links</h1>
<p><a href="https://www.w3schools.com/">Visit W3Schools.com!</a></p>
</body>
</html>
xxxxxxxxxx
<!-- Website Link -->
<a href="URL HERE">Click here!</a>
<!-- Another html file link (if it's in the same file) -->
<a href="[YOUR FILE].html">Page 2</a>
xxxxxxxxxx
Html hyper link examples below!
Example 1:
<a href="yourlink.com">Your text here</a>
Example 2:
<h1><a href="yourlink.com>Text here is displayed in h1 format</a></h1>
xxxxxxxxxx
<!--Short for “anchor” tag, the "a" tag is simply a link! The attribute you MUST have
for it to work is the href= (short for hyper reference) attribute, the value is a url (link)
to the website you will redirect your users to. An example of the a tag is:-->
<a href="https://www.w3schools.com/tags/tag_a.asp">Click me!</a>
<!--Like the img tag, the link can be relative or absolute but instead of linking to an image,
you link to the url! The target= attribute specifies if the url should be opened in a new tab
(_blank), the current tab (_self, by default), etc (these are target attribute values).
Example:-->
<a href="https://www.w3schools.com/tags/att_a_target.asp" target="_blank">
<!--The example shows that the a tag will link to the url (which is a tutorial on target
attribute) in a new tab because the attribute value is _blank!-->