2021-10-14 23:33:13 +01:00
|
|
|
---
|
|
|
|
id: 60f5cb8875ab6a0610f05071
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 11
|
2021-10-14 23:33:13 +01:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-11
|
2021-10-14 23:33:13 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
|
|
|
Seeing as we plan on having three distinct sections to the form, add three `fieldset` elements within the `form`.
|
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
|
|
You should add three `fieldset` elements.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.equal(document.querySelectorAll('fieldset')?.length, 3);
|
|
|
|
```
|
|
|
|
|
|
|
|
The three `fieldset` elements should be within the `form`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.equal(document.querySelectorAll('form > fieldset')?.length, 3);
|
|
|
|
```
|
|
|
|
|
|
|
|
The three `fieldset` elements should be siblings.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.exists(document.querySelector('fieldset + fieldset + fieldset'));
|
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2022-03-14 15:54:43 +00:00
|
|
|
<title>Registration Form</title>
|
2021-10-14 23:33:13 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="styles.css" />
|
|
|
|
</head>
|
|
|
|
--fcc-editable-region--
|
|
|
|
<body>
|
|
|
|
<h1>Registration Form</h1>
|
|
|
|
<p>Please fill out this form with the required information</p>
|
|
|
|
<form action='https://fcc-registration-form.com'>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
--fcc-editable-region--
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
body {
|
|
|
|
width: 100%;
|
|
|
|
height: 100vh;
|
|
|
|
margin: 0;
|
|
|
|
background-color: #1b1b32;
|
|
|
|
color: #f5f6f7;
|
|
|
|
}
|
|
|
|
```
|