mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): add instruction to include target=_blank attribute in step 64 (#56092)
This commit is contained in:
+8
@@ -9,6 +9,8 @@ dashedName: step-64
|
||||
|
||||
Inside the `footer`, add a `p` element. Then, nest an anchor (`a`) element in the `p` that links to `https://www.freecodecamp.org` and has the text `Visit our website`.
|
||||
|
||||
Make sure that the link opens in a new tab by adding a `target` attribute with the value `_blank`.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should not modify the existing `footer` element.
|
||||
@@ -43,6 +45,12 @@ Your new `a` element should link to `https://www.freecodecamp.org`. Remember tha
|
||||
assert(document.querySelector("footer > p > a")?.href === "https://www.freecodecamp.org/");
|
||||
```
|
||||
|
||||
Your new `a` element should have the `target` attribute set to `_blank`.
|
||||
|
||||
```js
|
||||
assert.equal(document.querySelector("footer > p > a")?.target, "_blank");
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
## --seed-contents--
|
||||
|
||||
Reference in New Issue
Block a user