Tell us what’s happening:
Describe your issue in detail here.
“after the p element, insert a form with an action attribute targeting https://register-demo.freecodecamp.org .”
I’ve tried everything I can think of to make this work, I’m not sure what I’m missing. If someone could help get me in the right direction, I’d really appreciate it
**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><a href="https://register-demo.freecodecamp.org"></a></form>
</body>
</html>
after the p element, insert a form with an action attribute targeting https://register-demo.freecodecamp.org .
I’m not sure what I’m doing incorrectly with the ‘action’ attribute
@tubthumpin The only thing the challenge needs you to do is add a form tag after the existing p tag and that’s all…You shouldn’t close your opening form tag like you did and at the same time the challenge doesn’t require you to nest an anchor tag in your form tag…
This what you should have done, hope that helps…
when I do it this way, it says the code is incorrect and that " You should give the form an action attribute." <form a href=“https://register-demo.freecodecamp.org”
if I close the form it wont show in text
@tubthumpin please try to understand what the challenge needs you to do and also try to keep calm and understand me correctly…This is your code below, you have the anchor tag <a nested inside your form element and when i checked through, the challenge doesn’t need you to do that…It only says you should add a form element after the existing
tag…I’m not meant to do it for you but for better understanding i’ll and here’s the right code below your code
Mod Edit: SOLUTION REMOVED
That’s the only thing the challenge needs you to do basically!!!Happy coding…
Oh my… I was confusing attribute with element the whole time. I appreciate the clarification. I think maybe I need to walk away and take a break so I can see it more clearly. Thank you!
@tubthumpin Yeah it gets tiring and confusing sometimes but when it happens like that, just take a breath and come back to it…You passed the challenge now??