Learn HTML Forms by Building a Registration Form - Step 11

Tell us what’s happening:
Describe your issue in detail here.
I can’t remember other ways action attributes are used or if i am even using this correctly. It tells me to give the form an action attribute.
Your code so far

<!-- file: index.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>
  <a href="https://register-demo.freecodecamp.org">help</a>
</form>
  </body>
</html>
/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
}

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1

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

Link to the challenge:

You can learn more about attribute

You are creating another element which is anchor (a).

Look at your link element. rel is the attribute and stylesheet is the value.

so you need to code the action attribute and put it inside form element

Step 11: " …after the p element, insert a form with an action attribute targeting https://register-demo.freecodecamp.org .

<form attribute="value">

The attribute value is the URL address in this case.

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.