Wondering how you make links from one page to another with HTML? Here is how to do it.
It's pretty easy to make HTML links.
You will use the a tags. Like this:
<a></a>
So <a> is where the link code starts and </a> is where the link tag ends.
And within the first part of the tag (<a>) is where you'll include the URL that you want to link to, which could be your homepage, contact page, or an external link to another website.
The base of the tag is: <a href=” ”>.
Notice the quotes. That's where the link URL goes. In-between the quotes.
And make sure the link tag goes within the <body></body> tags on the page.
Here you go:
So with that example link, the word "Contact" is the clickable word that would go to the /contact page.
If you want the link to open in a new tab when clicked, you would add target="_blank" into the first part of the link tag. Like this:
Now learn how to improve SEO.