Learn HTML Forms by Building a Registration Form - Step 27

Tell us what’s happening:
Describe your issue in detail here.

I have applied my but it reads to only wrap it around the terms and condition which show highlighted. Could anyone offer me some guidance?

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <title>Registration Form</title>
  <link rel="stylesheet" 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 /></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>
      <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="https://www.freecodecamp.org/news/terms-of-service/"</a> I accept the terms and conditions</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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

first - syntax error, a element does not close properly ( missing >)
second - a element should only wrap terms and conditions so the result will be like below:
I accept the terms and conditions

Hope this will help. Happy coding

I added the > and the highlight disappears. If I remove it it shows up again.

it needed an addition space after the last " of the .

a element will transform the words/image that is wrapped by a element
since nothing between <a> and </a>
so it is right that there is no link in the result.
put the closing a element (</a>) after word conditions before the closing label element (</label>)

Hope this will help. Happy coding

Hey Isabella! you’re doing great with the replies.

Here’s a tip, you could also format your answers with the editor because it provides a lot of features like lists and text formatting too. Keep it up :smile:

what editor?? Please guide me, I am still newbie in here. Thank you

So this is the post formatting editor and you can use this to provide quality to your posts. For example:


trying first and second like you have here, you could either click on the list icon


or just click ctrl + shift + 7 to add a list to your post. You can try experimenting with other options on your own time!

Aaahh… I see…
Thank you very much!!

1 Like

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