6. Link Tag
-
Link tag <a></a>(Stands for anchor, because the link connects the two websites like a boat anchor)
-
Add an attribute after<a,
-
href (hypertext reference) : href=”” (<a href=””>)
-
Inside this attribute “”, you want to put in the URL (Universal resource locator):
Example:
-
<p>
This is a link tag -
<a href="https://jleung11.wixsite.com/html-website-study">
The a is the tag. href is the hyperlink reference.
</a>
<br> -
<a href="https://jleung11.wixsite.com/html-website-study" target="_blank">
The link will open in a new webpage.
</a>
<br>
</p>

<p>
This is a link tag
<a href="https://jleung11.wixsite.com/html-website-study">
The a is the tag. href is the hyperlink reference.
</a>
<br>
<a href="https://jleung11.wixsite.com/html-website-study" target="_blank">
The link will open in a new webpage.
</a>
<br>
</p>
This is the first line.
This is the second line.
This is the third line.
Adding the pre tag will add the space between sentence.
This is bold tag. Same as the Emphasize/ em and strong tag. The text become bold by adding the tag
This is Italics.
This is a link tag The a is the tag. href is the hyperlink reference.
The link will open in a new webpage.
7. How to Controls the link open a new page or new tab in your browser?
-
If you don’t have a target attribute, by default, the browser will load the link in the same page.
-
Add a target load in a new webpage:
-
Target=”blank”
Remember to save the file every time you change any thing in your website and reload the browser, otherwise you cannot review what you change!!!