diff --git a/guide/english/html/tutorials/how-to-use-links/index.md b/guide/english/html/tutorials/how-to-use-links/index.md index 93fcdc1f37..812cc1d63a 100644 --- a/guide/english/html/tutorials/how-to-use-links/index.md +++ b/guide/english/html/tutorials/how-to-use-links/index.md @@ -3,33 +3,34 @@ title: How to Use Links --- ## How to Use Links -In HTML you can use the `` tag to create a link. For example you can write `freeCodeCamp` to create a link to freeCodeCamp's website. +Links are found in many webpages and its purpose is to allow users to visit other webpages. -Links are found in nearly all web pages. Links allow users to click their way from page to page. +
In HTML, you can use the `` tag to create a hyperlink. -HTML links are hyperlinks. You can click on a link and jump to another document. - -When you move the mouse over a link, the mouse arrow will turn into a little hand. - -Note: A link does not have to be text. It can be an image or any other HTML element. - -In HTML, links are defined with the tag: - ```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. -Example + +
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 -Visit our site for tutorials + + ``` -The href attribute specifies the destination address (https://www.freecodecamp.org) of the link. - -The link text is the visible part (Visit our site for tutorials). - -Clicking on the link text will send you to the specified address. +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: