Files

64 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

---
id: 60f5c3e399ff1a05629964e4
title: Step 10
challengeType: 0
dashedName: step-10
---
# --description--
As suggested by the title, you are creating a form. So, after the `p` element, insert a `form` with an `action` attribute targeting `https://fcc-registration-form.com`.
# --hints--
You should add a `form` element adjacent the `p` element.
```js
assert.exists(document.querySelector('p + form'));
```
You should give the `form` an `action` attribute.
```js
// Default action points to window location
assert.notEqual(document.querySelector('form')?.action, window?.location?.href);
```
You should give the `action` a value of `https://fcc-registration-form.com`.
```js
// TODO: Do we need to use an in-house (domain) URL - just-in-case
assert.equal(document.querySelector('form')?.action, 'https://fcc-registration-form.com/');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<title>Registration Form</title>
<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>
</body>
--fcc-editable-region--
</html>
```
```css
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: #1b1b32;
color: #f5f6f7;
}
```