top of page

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,

  • h ref (hypertext reference) : href=”” (<a href=””>)

  • Inside this attribute “”, you want to put in the URL (Universal resource locator):

  • Example: <a href=” https://jleung11.wixsite.com/html-website-study”>

Screenshot 2025-12-01 at 2.30.15 PM.png

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”

  • Example:

  • <a href=” https://jleung11.wixsite.com/html-website-study”target=”blank>

Screenshot 2025-12-01 at 2.55.34 PM.png

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!!!

bottom of page