mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-13 22:00:19 -04:00
fix(curriculum): add code example in step 12 of Cat Photo App project (#51376)
This commit is contained in:
@@ -7,9 +7,13 @@ dashedName: step-12
|
||||
|
||||
# --description--
|
||||
|
||||
In the previous step you turned the words `link to cat pictures` into a link by placing them between opening and closing anchor (`a`) tags. You can do the same to words inside of an element, such as a `p` element.
|
||||
You can turn any text into a link, such as the text inside of a `p` element.
|
||||
|
||||
In the text of your `p` element, turn the words `cat photos` into a link to `https://freecatphotoapp.com` by adding opening and closing anchor (`a`) tags around these words.
|
||||
``` html
|
||||
<p>I think <a href="https://www.freecodecamp.org/">freeCodeCamp</a> is great.</p>
|
||||
```
|
||||
|
||||
In the text of your `p` element, turn the words `cat photos` into a link by adding opening and closing anchor (`a`) tags around these words. Then set the `href` attribute to `https://freecatphotoapp.com/`
|
||||
|
||||
|
||||
# --hints--
|
||||
|
||||
Reference in New Issue
Block a user