freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-more-about-css-pseudo.../61fd66c687e610436494c6f1.md

53 lines
923 B
Markdown
Raw Normal View History

---
id: 61fd66c687e610436494c6f1
title: Step 3
challengeType: 0
dashedName: step-3
---
# --description--
All'interno dell'elemento `section` aggiungi un elemento `h1` con un elemento `span` annidato.
# --hints--
L'elemento `section` dovrebbe avere un elemento `h1`.
```js
assert(document.querySelector('section')?.children?.[0]?.localName === 'h1');
```
L'elemento `h1` dovrebbe avere un elemento `span`.
```js
assert(document.querySelector('h1')?.children?.[0]?.localName === 'span');
```
# --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>Balance Sheet</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<main>
--fcc-editable-region--
<section>
</section>
--fcc-editable-region--
</main>
</body>
</html>
```
```css
```