Learn HTML Forms by Building a Registration Form - Step 12

Tell us what’s happening:
I dont know how to put the method element to the form element is there something else i must do?

Your code so far

/* file: index.Ext.html */
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Registration Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
    <h1>Registration Form</h1>
    <p>Please fill out this form with the required information</p>
    <form action='https://register-demo.freecodecamp.org'></form><method>POST</method>
  </body>
</html>
/* file: styles.Ext.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

Your mobile information:

SM-A042F - Android 14 - Android SDK 34

Challenge: Learn HTML Forms by Building a Registration Form - Step 12

Link to the challenge:

Hi. Method isn’t an element, it’s an attribute. Attributes are placed in the opening tags of an element. In this case, add the method attribute specified to the form element. You can reset the step to get the code back to how it was.

2 Likes