4.0 KiB
4.0 KiB
id | title | challengeType | dashedName |
---|---|---|---|
61438ec09438696391076d6a | Passo 11 | 0 | step-11 |
--description--
Abaixo do elemento .heading
, crie um elemento section
com a class
definida como text
. Dentro dele, crie um elemento p
com a class
definida como first-paragraph
e o seguinte texto:
Soon the freeCodeCamp curriculum will be 100% project-driven learning. Instead of a series of coding challenges, you'll learn through building projects - step by step. Before we get into the details, let me emphasize: we are not changing the certifications. All 6 certifications will still have the same 5 required projects. We are only changing the optional coding challenges.
--hints--
Você deve criar um elemento section
.
assert(document.querySelectorAll('section')?.length === 2);
O novo elemento section
deve vir após o elemento .heading
.
assert(document.querySelectorAll('section')?.[1]?.previousElementSibling?.className === 'heading');
O novo elemento section
deve ter a class
definida como text
.
assert(document.querySelectorAll('section')?.[1]?.className === 'text');
Você deve criar um elemento p
dentro do elemento .text
.
assert(document.querySelector('.text')?.querySelectorAll('p')?.length === 1);
O novo elemento p
deve ter a class
definida como first-paragraph
.
assert(document.querySelector('.text p')?.className === 'first-paragraph');
O novo elemento p
deve ter o texto fornecido.
assert(document.querySelector('.first-paragraph')?.innerText === 'Soon the freeCodeCamp curriculum will be 100% project-driven learning. Instead of a series of coding challenges, you\'ll learn through building projects - step by step. Before we get into the details, let me emphasize: we are not changing the certifications. All 6 certifications will still have the same 5 required projects. We are only changing the optional coding challenges.');
--seed--
--seed-contents--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Magazine</title>
<link
href="https://fonts.googleapis.com/css?family=Anton%7CBaskervville%7CRaleway&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main>
<section class="heading">
<header class="hero">
<img
src="https://cdn.freecodecamp.org/platform/universal/fcc_meta_1920X1080-indigo.png"
alt="freecodecamp logo"
loading="lazy"
class="hero-img"
width="400"
/>
<h1 class="hero-title">OUR NEW CURRICULUM</h1>
<p class="hero-subtitle">
Our efforts to restructure our curriculum with a more project-based
focus
</p>
</header>
<div class="author">
<p class="author-name">
By
<a href="https://freecodecamp.org" target="_blank" rel="noreferrer"
>freeCodeCamp</a
>
</p>
<p class="publish-date">March 7, 2019</p>
</div>
<div class="social-icons">
<a href="https://www.facebook.com/freecodecamp/">
<i class="fab fa-facebook-f"></i>
</a>
<a href="https://twitter.com/freecodecamp/">
<i class="fab fa-twitter"></i>
</a>
<a href="https://instagram.com/freecodecamp">
<i class="fab fa-instagram"></i>
</a>
<a href="https://www.linkedin.com/school/free-code-camp/">
<i class="fab fa-linkedin-in"></i>
</a>
<a href="https://www.youtube.com/freecodecamp">
<i class="fab fa-youtube"></i>
</a>
</div>
</section>
--fcc-editable-region--
--fcc-editable-region--
</main>
</body>
</html>