Files
freeCodeCamp/curriculum/challenges/english/14-responsive-web-design-22/learn-html-forms-by-building-a-registration-form/60f5c3e399ff1a05629964e4.md
Naomi Carrigan 16e7cdedb1 feat: migrate filenames to IDs (#45146)
* feat: migrate filenames to IDs

* feat: migrate balance sheet file names

* revert: no id name for cert projects

* fix: i swear i know what i'm doing
2022-03-02 09:06:00 -06:00

1.3 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
60f5c3e399ff1a05629964e4 Step 10 0 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.

assert.exists(document.querySelector('p + form'));

You should give the form an action attribute.

// 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.

// 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--

<!DOCTYPE html>
<html>
  <head>
    <title>freeCodeCamp Registration Form Project</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>
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
	color: #f5f6f7;
}