Back to Freecodecamp

Step 6

curriculum/challenges/english/blocks/workshop-curriculum-outline/6823d6244511f252c8300eed.md

latest1.2 KB
Original Source

--description--

When you need to add a paragraph to a webpage, you can use the p element like this:

html
<p>This is a paragraph element.</p>

Turn Learn the skills to become a full-stack developer into a paragraph element.

--hints--

Your p element should have an opening tag. Opening tags have this syntax: <elementName>.

js
assert.exists(document.querySelector("p"));

Your p element should have a closing tag. Closing tags have this syntax: </elementName>.

js
assert.match(code, /<\/p\s*\>/);

Your p element's text should be Learn the skills to become a full-stack developer.

js
// purposefully removing friction for early users to help improve retention in early lessons
// this if very forgiving of spaces and casing
assert.match(code, /\<p\s*\>\s*Learn\s*the\s*skills\s*to\s*become\s*a\s*full-stack\s*developer\s*\<\/p\s*\>/i);

Your p element should be below your h2 element.

js
assert.exists(document.querySelector("h2 + p"));

--seed--

--seed-contents--

html
<h1>Welcome to freeCodeCamp</h1>
<h2>Full-Stack Curriculum</h2>
--fcc-editable-region--
Learn the skills to become a full-stack developer
--fcc-editable-region--