Reponsive web design (beta)

i think i found an error. Step 4 of Learn HTML Forms by Building a Registration Form says - Add a title element to the head , and give your project a title of freeCodeCamp Registration Form Project . Also, nest a self-closing link element in the head element. Give it a rel attribute value of stylesheet , a type attribute value of text/css , and an href attribute value of styles.css.

my code -

freeCodeCamp Registration Form Project

but it is giving me an error so i cant advance to the next step

<link rel="stylesheet" type="text/css" href="styles.css">

<title>freeCodeCamp Registration Form Project</title>
1 Like

i keep getting this - Your link element should be a self-closing element.

1 Like

oh wait nevermind i found the solution.

Hi @antoniom1909 , could you please share the solution? I’ve tried changing the codes in different lines and still the same error:
" Your link element should be a self-closing element.". Thanks!

1 Like

Hi! If i remmember correctly, for some reason that exercise needs the “/” in the link tag like this - <link …(code)… />. I hope it helps.


it worked!! Thanks :slight_smile:

Do you have any idea why this happens? The necessity of using a “/”, I mean.

1 Like

Thats definitely the issue. Thank you for the tip

This isn’t working for me. Any tips?
Hint: Your link element should be a self-closing element.

Registration Form
<link rel="stylesheet" type="text/css" href="styles.css" />

This works for me just put a “/” there in the end because its self closing.

Because putting a “/” at the end makes a tag self-closing.

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