When I google it i get the same but different

are there different ways you can add the code , be cause when i google it, it comes up almost identical and it looks like what i am trying to do has been done ,it says submit on the section where you put your first name. isn’t the what i am try to do or am i not get something here.

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
   <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" href="styles.css" />
   <h1>Registration Form</h1>
   <p>Please fill out this form with the required information</p>
   <form action='https://register-demo.freecodecamp.org'>
       <label>Enter Your First Name: <input type="text" required id="username" name="username" required>
 <input type="submit">
       <label>Enter Your Last Name: <input type="text" /></label>
       <label>Enter Your Email: <input type="email" /></label>
       <label>Create a New Password: <input type="password" /></label>
     <input type="submit" value="Submit" />
/* file: styles.css */
body {
 width: 100%;
 height: 100vh;
 margin: 0;
 background-color: #1b1b32;
	color: #f5f6f7;

label {
	display: block;
	margin: 0.5rem 0;

   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.41

Challenge: Step 18

Link to the challenge:

You added the required attribute twice to the first input element and you didn’t add it to the other elements.

The attribute needs to be on all the input elements inside the first fieldset element.

something you must not know. on problems like this one, when u put the first required in the first label , if it is wrong, it will tell u, u need to add required to the first label, when u get that first one right, it will say your 2nd label needs required added to input. don’t see any sense in adding required to all of them till I get the first label right, and I don’t why no body stop to think, (I have change this a hundred time this is where I got tired of changing it a ask for help, and how come it seem like google and other web sites put almost the same code but some of the words are different ,like here we use name and google uses username, there code passes and mine don’t , I copy this code from w3school and it won’t work anyways because username should be name ,but if this would pass then code camp should pass it and not have just one answer because if there are muti ways to put the code in , that important info I think.

Did you pass this or not? If not, please post your current code so we can see what you have.

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