Help is needed is step 26

I need help on this same step. After wrapping the anchor tags around the text “terms and condition”. Where does this come
https://www.freecodecamp.org/news/terms-of-service/ ?

   **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <title>Registration Form</title>
	  <link rel="stylesheet" type="text/css" 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'>
     <fieldset>
       <label>Enter Your First Name: <input type="text" required /></label>
       <label>Enter Your Last Name: <input type="text" required /></label>
       <label>Enter Your Email: <input type="email" required /></label>
       <label>Create a New Password: <input type="password" pattern="[a-z0-5]{8,}" required /></label>
     </fieldset>
     <fieldset>
       <label><input type="radio" name="account-type" /> Personal Account</label>
       <label><input type="radio" name="account-type" /> Business Account</label>
       <label><input type="checkbox" required /> <a href="terms and conditions" /></label>
       
     </fieldset>
     <fieldset></fieldset>
     <input type="submit" value="Submit" />
   </form>
 </body>
</html>
/* 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.63 Safari/537.36 Edg/102.0.1245.39

Challenge: Step 26

Link to the challenge:

anchor tag requires href attribute with valid url, you have used the which is to appear as link it is not a url. this url https://www.freecodecamp.org/news/terms-of-service/ should be used

I have done so, but the code is not passing.

 <a href="https://www.freecodecamp.org/news/terms-of-service/"> terms and conditions</a>

did you remove I accept the text, it should be like this, I accept the terms and comditions

I did include it. I wonder what i am doing wrong :sweat: :sweat: :sweat:

          <a href="https://www.freecodecamp.org/news/terms-of-service/">I accept the terms and conditions</a>

the text I accept the should before anchor tag so that only terms and conditions should appear in blue

I am completely lost

this is the code I was telling you about

Why is it not passing then, if i am doing right?

post your updated code

This is the updated code.

 <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and condition</a>

its not like I posted earlier

Here is the updated code

 <p>I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and condition</a></p>

Its still not passing.

you missed s here, its conditions

always copy the text directly from instructions and do not change them

I saw that error and just corrected it. It still didn’t pass. What am i doing wrong? :sleepy: :sleepy: :sleepy: :sleepy: :sweat: :sweat: :sweat: :weary: :weary:

   <p>I accept the <a href="https://www.freecodecamp.org/news/terms-of-service/">terms and conditions

you don’t have to nest the text and anchor in p tag, its text for label not p

this is from your original post

Hurray!!! finally, fixed it. Thank you so much @ghulamshabirbaloch

1 Like