From b4ebb8f8bc58c66848df4c67f373d43401a03bbc Mon Sep 17 00:00:00 2001 From: Eddie Melendez Date: Thu, 13 Dec 2018 14:02:57 -0500 Subject: [PATCH] added href local directory reference (#30677) * added href local directory reference * fixed: removed extra backtick --- guide/english/html/attributes/href/index.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/guide/english/html/attributes/href/index.md b/guide/english/html/attributes/href/index.md index 75c08e641a..a1b2029688 100644 --- a/guide/english/html/attributes/href/index.md +++ b/guide/english/html/attributes/href/index.md @@ -7,6 +7,8 @@ Hypertext Reference (HREF) is an HTML attribute that you use to specify a link d The exact behavior of the HREF attribute depends on the element that is using it. For instance, when used with the `` tag, it is referencing the location of an object expressed as a URL. When using the HREF attribute with the `` tag, the HREF attribute is referencing the URL location of an image to render. +Additionally, an HREF may also reference a file on a server or a local directory. A directory can be considered a folder on a computer. For instance, you might wish to create a hyperlink that points to the main page of a website. Typically the main page of a website has the file name `index.html`, so instead of a full URL, you may simply type `index.html`. Please note that if the file is not in the same directory it may require you to add a `/` or a `../` to move into or out of the current directory. + ### Examples: Link to Google's Homepage: @@ -26,6 +28,14 @@ Image as an Link: Google ``` +Link to an index file on the same directory: + + -> The text "Index File" acts like the link to a file titled `index.html` + +```html +Index File +``` + Tags that use HREF: ```html