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

1.3 KiB

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

--description--

Como sugerido pelo título, você está criando um formulário. Portanto, após o elemento p, insira form com um atributo action direcionado para https://register-demo.freecodecamp.org.

--hints--

Você deve adicionar um elemento form adjacente ao elemento p.

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

Você deve dar ao elemento form um atributo action.

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

Você deve dar ao atributo action um valor de 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;
}