freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-html-forms-by-buildin.../60f5c3e399ff1a05629964e4.md

1.3 KiB

id title challengeType dashedName
60f5c3e399ff1a05629964e4 Step 11 0 step-11

--description--

Come suggerito dal titolo, stai creando un modulo. Dopo l'elemento p, inserisci un elemento form con un attributo action con il valore https://register-demo.freecodecamp.org.

--hints--

Dovresti aggiungere un elemento form vicino all'elemento p.

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

Dovresti assegnare all'elemento form un attributo action.

// Default action points to window location
assert.notEqual(document.querySelector('form')?.action, window?.location?.href);

Dovresti assegnare all'attributo action il valore https://register-demo.freecodecamp.org.

assert.equal(document.querySelector('form')?.action, 'https://register-demo.freecodecamp.org/');

--seed--

--seed-contents--

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" 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;
}