Skip to content

Commit 12658d3

Browse files
author
Nicholas Carrigan (he/him)
authored
fix(i18n, learn): more crowdin fixes (freeCodeCamp#40905)
1 parent 30ff9b1 commit 12658d3

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,23 @@ You can nest links within other text elements.
1717
</p>
1818
```
1919

20-
Let's break down the example: Normal text is wrapped in the `p` element:
21-
`<p> Here's a ... for you to follow. </p>` Next is the *anchor* element `<a>` (which requires a closing tag `</a>`):
22-
`<a> ... </a>` `target` is an anchor tag attribute that specifies where to open the link and the value `_blank` specifies to open the link in a new tab `href` is an anchor tag attribute that contains the URL address of the link:
23-
`<a href="http://freecodecamp.org"> ... </a>` The text, **"link to freecodecamp.org"**, within the `a` element called `anchor text`, will display a link to click:
24-
`<a href=" ... ">link to freecodecamp.org</a>` The final output of the example will look like this:
20+
Let's break down the example. Normal text is wrapped in the `p` element:
21+
22+
`<p> Here's a ... for you to follow. </p>`
23+
24+
Next is the *anchor* element `<a>` (which requires a closing tag `</a>`):
25+
26+
`<a> ... </a>`
27+
28+
`target` is an anchor tag attribute that specifies where to open the link. The value `_blank` specifies to open the link in a new tab. The `href` is an anchor tag attribute that contains the URL address of the link:
29+
30+
`<a href="http://freecodecamp.org"> ... </a>`
31+
32+
The text, `link to freecodecamp.org`, within the `a` element is called `anchor text`, and will display the link to click:
33+
34+
`<a href=" ... ">link to freecodecamp.org</a>`
35+
36+
The final output of the example will look like this:
2537

2638
Here's a [link to freecodecamp.org](http://freecodecamp.org) for you to follow.
2739

0 commit comments

Comments
 (0)