mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-03 05:02:01 -05:00
fix: improved the instructions for RWD challenges (#46112)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
@@ -7,9 +7,9 @@ dashedName: step-3
|
||||
|
||||
# --description--
|
||||
|
||||
Paragraph (`p`) elements are used to create paragraph text on websites.
|
||||
The `p` element is used to create a paragraph of text on websites. Create a `p` element below your `h2` element and give it the following text:
|
||||
|
||||
Create a paragraph (`p`) element below your `h2` element, and give it the text `Click here to view more cat photos.`
|
||||
`Click here to view more cat photos`
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -7,9 +7,16 @@ dashedName: step-6
|
||||
|
||||
# --description--
|
||||
|
||||
HTML elements are often nested within other HTML elements. In the previous step you nested the `h2` element, comment and `p` element within the `main` element. A nested element is a child of its parent element.
|
||||
In the previous step, you nested the `h2` element, comment, and `p` element within the `main` element. A nested element is a child of its parent element. It should be indented two more spaces than its parent element to improve readability, like this:
|
||||
|
||||
To make HTML easier to read, indent the `h2` element, the comment, and `p` element exactly two spaces to indicate they are children of the `main` element.
|
||||
```html
|
||||
<ul>
|
||||
<li> Child Element 1 </li>
|
||||
<li> Child Element 2 </li>
|
||||
</ul>
|
||||
```
|
||||
|
||||
Add two spaces in front of the three child elements of `main` so your HTML is more readable.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -82,13 +89,13 @@ assert(code.toLowerCase().match(/-->\n\s{6}<p>/));
|
||||
<html>
|
||||
<body>
|
||||
<h1>CatPhotoApp</h1>
|
||||
<main>
|
||||
--fcc-editable-region--
|
||||
<main>
|
||||
<h2>Cat Photos</h2>
|
||||
<!-- TODO: Add link to cat photos -->
|
||||
<p>Click here to view more cat photos.</p>
|
||||
--fcc-editable-region--
|
||||
</main>
|
||||
--fcc-editable-region--
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user