From 2c322a52ef94f5a77518324aeff4ee8aee780e7d Mon Sep 17 00:00:00 2001 From: phatbhoy67 Date: Tue, 11 Dec 2018 20:07:02 +0000 Subject: [PATCH] Added backticks to inline code (#25041) * Added backticks to inline code The page does not display properly on: https://guide.freecodecamp.org/html/attributes/a-href-attribute/ although it appears ok on github. Added missing backticks around inline code. Removed duplicate image link example. * fix: removed tag/changed to element --- .../english/html/attributes/a-href-attribute/index.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/guide/english/html/attributes/a-href-attribute/index.md b/guide/english/html/attributes/a-href-attribute/index.md index 117bba22dd..d032a7be13 100644 --- a/guide/english/html/attributes/a-href-attribute/index.md +++ b/guide/english/html/attributes/a-href-attribute/index.md @@ -4,7 +4,7 @@ title: A Href Attribute ## A Href Attribute -The `` attribute refers to a destination provided by a link. The `a` (anchor) tag is dead without the `` attribute. Sometimes in your workflow, you don't want a live link or you won't know the link destination yet. In this case, it's useful to set the `href` attribute to `"#"` to create a dead link. The `href` attribute can be used to link to local files or files on the internet. +The `` attribute refers to a destination provided by a link. The `a` (anchor) element is dead without the `` attribute. Sometimes in your workflow, you don't want a live link or you won't know the link destination yet. In this case, it's useful to set the `href` attribute to `"#"` to create a dead link. The `href` attribute can be used to link to local files or files on the internet. For instance: @@ -38,13 +38,13 @@ The `` attribute is supported by all browsers. ``` ### In-page anchors -It's also possible to set an anchor on a specific place on the page. To do this, you should first place a tab at the location on the page with tag and the necessary attribute "name" with any keyword description in it, like this: +It's also possible to set an anchor to certain place of the page. To do this you should first place a tab at location on the page with tag `` and necessary attribute "name" with any keyword description in it, like this: ```html ``` -Any description between tags is not required. After that you can place a link leading to this anchor at any place on the same page. To do this you should use tag with necessary attribute "href" with symbol # (sharp) and key-word description of the anchor, like this: +Any description between tags is not required. After that you can place a link leading to this anchor at any place on the same page. To do this you should use tag `` with necessary attribute "href" with symbol # (sharp) and key-word description of the anchor, like this: ```html Go to Top @@ -57,11 +57,8 @@ The `` may also be applied to images and other HTML elements. ### Example ```html -picture - +picture ``` -### Example -picture ### Some more examples of href ```html This gives a base url for all further urls on the page