I don’t not understand where to place the info

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

I’m not understanding this question. I keep getting a “ place a “a” element round terms and conditions. What terms of conditions? And where do I place the link? I have tried placing it in different locations and nothing works. I have gone back through all my notes and tried everything I have. I have been working on this one step for over an hour please help

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 method="post" action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
        <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
        <label for="email">Enter Your Email: <input id="email" type="email" required /></label>
        <label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
      </fieldset>

<!-- User Editable Region -->

      <fieldset>
        <label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
        <label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
        <label for="terms-and-conditions" <a> terms and conditions</a>><input id="terms-and-conditions" type="checkbox" required href="https://www.freecodecamp.org/news/terms-of-service/" /> I accept the terms and conditions</label>
      </fieldset>

<!-- User Editable Region -->

      <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 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1

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

Link to the challenge:

The challenge wants you to wrap the text terms and condition inside a link.

The final result should look like this

Screen Shot 2023-08-15 at 9.05.14 PM

It the same thing you did in step 12 in the cat photo app project

hope that helps

Now it’s telling me I should give the “a”element a href of https://… or I should only wrap the terms and conditions in an “a” element

This is the example for the step 12 in the cat project

see more<a href=“the link”>cat photosin our gallery.

what does your code look like now???

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

I am working on my iPad but it gives me an error that it can’t open the help forum so I have to transfer everything to my phone.

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

first there should be a tag with a link (and closed bracket), then words of link have to follow, then a tag should be closed.

I’m ready to cry. I have been working on this one question for two days. What am I doing wrong??? I just started coding about two weeks ago. I have gone back through all my notes.

Post your actual code instead of screenshots. Use what I already provided you above

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

this is what I have now for question 30 I lost the other help forum on this.

I either get only place an “a” element around the text “terms and conditions” when I do that I get you need to place your link within your “a” element. I move the ending tag and get only place tags around … I move stuff and stuff and nothing works.

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 method="post" action='https://register-demo.freecodecamp.org'>
      <fieldset>
        <label for="first-name">Enter Your First Name: <input id="first-name" type="text" required /></label>
        <label for="last-name">Enter Your Last Name: <input id="last-name" type="text" required /></label>
        <label for="email">Enter Your Email: <input id="email" type="email" required /></label>
        <label for="new-password">Create a New Password: <input id="new-password" type="password" pattern="[a-z0-5]{8,}" required /></label>
      </fieldset>

<!-- User Editable Region -->

      <fieldset>
        <label for="personal-account"><input id="personal-account" type="radio" name="account-type" /> Personal Account</label>
        <label for="business-account"><input id="business-account" type="radio" name="account-type" /> Business Account</label>
        <label for="terms-and-conditions"><input id="terms-and-conditions" type="checkbox" required /> I accept the <a terms and conditions href="https://www.freecodecamp.org/news/terms-of-service/"></a> </label>
      </fieldset>

<!-- User Editable Region -->

      <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 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1

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

Link to the challenge:

I solved it don’t know what I did different but it worked.

1 Like

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