* chore(curriculum): accessibility-quiz * chore(curriculum): cafe-menu * chore(curriculum): ferris-wheel * chore(curriculum): fix ferris-wheel tests * chore(curriculum): colored-markers * chore(curriculum): photo-gallery * chore(curriculum): magazine * chore(curriculum): penguin * chore(curriculum): city-skyline * chore(curriculum): registration-form * chore(curriculum): picasso-painting * chore(curriculum): balance-sheet * chore(curriculum): piano * chore(curriculum): rothko-painting * fix: title min 15 chars
76 lines
1.5 KiB
Markdown
76 lines
1.5 KiB
Markdown
---
|
|
id: 6143862a5e54455d262c212e
|
|
title: Step 3
|
|
challengeType: 0
|
|
dashedName: step-3
|
|
---
|
|
|
|
# --description--
|
|
|
|
Within your `body`, create a `main` element. Then in that element, create a `section` with a `class` set to `heading`.
|
|
|
|
# --hints--
|
|
|
|
You should have a `main` element.
|
|
|
|
```js
|
|
assert.exists(document.querySelector('main'));
|
|
```
|
|
|
|
Your `main` element should be within your `body` element.
|
|
|
|
```js
|
|
assert(document.querySelector('main')?.parentElement?.localName === 'body');
|
|
```
|
|
|
|
You should have a `section` element.
|
|
|
|
```js
|
|
assert.exists(document.querySelector('section'));
|
|
```
|
|
|
|
Your `section` element should be within your `main` element.
|
|
|
|
```js
|
|
assert(document.querySelector('section')?.parentElement?.localName === 'main');
|
|
```
|
|
|
|
Your `section` element should have the `class` set to `heading`.
|
|
|
|
```js
|
|
assert(document.querySelector('section')?.classList?.contains('heading'));
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<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|Baskervville|Raleway&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>
|
|
--fcc-editable-region--
|
|
|
|
--fcc-editable-region--
|
|
</body>
|
|
</html>
|
|
```
|
|
|
|
```css
|
|
|
|
```
|