Just how do you create a link to another website? Read this tutorial for beginning web developers, written in an easy-to-understand format so you will be creating links in no time at all!
Today you will learn only one basic technique: How to create a hyperlink to another page. It's a set tag format that's part of the Hyper Text Markup Language (HTML) like any of the others you may have seen. Once you learn the format, you can make as many links as you want to any other page you want.
There are a couple different schools of thought on this. One suggests that what you write for links should be quite blatant. This includes text like "Click here for this" or "Here's a link to...". The other states that since the hypertext links will be blue (or whatever color they're set to), the links should be just another word in the text set up as a link.
Now an example: The code below would create a link to the Chris Brooks Portfolio home page.
Chris Brooks
- A stands for Anchor. It starts the link to another page.
- HREF stands for Hypertext REFerence. That's a nice, short way of saying to the browser, "This is where the link is going to go."
- http://www.chris-brooks.co.uk is the FULL ADDRESS (URL) of the link. Also notice that the address has an equal sign in front of it and is enclosed in quotes. Why? Because it's an attribute of the Anchor tag, which is a command inside of a command.
- Where it reads "Chris Brooks" is where you write the text that you want to appear on the page. The text in that space will appear on the page for the viewer to click. So write something that denotes the link.
- /A ends the entire link command.
So this is how you create a HTML link such as Chris Brooks