freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-css-grid-by-building-.../61438ec09438696391076d6a.md

130 lines
4.1 KiB
Markdown
Raw Normal View History

---
id: 61438ec09438696391076d6a
title: Step 11
challengeType: 0
dashedName: step-11
---
# --description--
Sotto l'elemento `.heading`, crea un nuovo elemento `section` con l'attributo `class` impostato su `text`. All'interno, crea un elemento `p` con l'attributo `class` impostato su `first-paragraph` e il seguente testo:
```markup
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--
Dovresti creare un nuovo elemento `section`.
```js
assert(document.querySelectorAll('section')?.length === 2);
```
Il nuovo elemento `section` dovrebbe trovarsi dopo l'elemento `.heading`.
```js
assert(document.querySelectorAll('section')?.[1]?.previousElementSibling?.className === 'heading');
```
Il nuovo elemento `section` dovrebbe avere l'attributo `class` impostato su `text`.
```js
assert(document.querySelectorAll('section')?.[1]?.className === 'text');
```
Dovresti creare un nuovo elemento `p` all'interno dell'elemento `.text`.
```js
assert(document.querySelector('.text')?.querySelectorAll('p')?.length === 1);
```
Il nuovo elemento `p` dovrebbe avere l'attributo `class` impostato su `first-paragraph`.
```js
assert(document.querySelector('.text p')?.className === 'first-paragraph');
```
Il nuovo elemento `p` dovrebbe avere il testo fornito.
```js
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--
```html
<!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>
```
```css
```