--- title: How to Use Links --- ## How to Use Links Links are found in many webpages and its purpose is to allow users to visit other webpages.
In HTML, you can use the `` tag to create a hyperlink. ```html link text ``` The href attribute is very important, as it defines what the destination address is.
The link text is the actual visable text.
For example, if you wanted something to link to the freeCodeCamp website, you could type: ```html freeCodeCamp ``` When run, this will display the text "freeCodeCamp", but it links to the website `"https://www.freecodecamp.org"`. Clicking on the text will send you to the specified address. Neat! ### Links in images Links don't need to only be text. You can add a link to an image as well! ```html ``` What we do here is we put an tag inside of an tag. This allows us to click the image to go to the link, which is `https://www.freecodecamp.org`. Double neato! #### More Information: * [MDN - HTML Reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a)