teo-08
1
hello. my code won’t pass and the error message says that my link element should be a self closing element but i can’t see the issue.
link to the lesson here: https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-4
<head>
<title>Registration Form</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
</body>
Hello,
I don’t like this enforced coding style, but the task pushes us to insert a forward slash right after the last quotation mark so, “styles.css”/>
Thank you. I was looking around the internet and sometimes it would say that the / was needed and others it wasn’t. it creates this confusion.
This is a remainder of the XHTML era, which nowadays looks just ugly and confuses people. I’m glad that you can move ahead.
1 Like
system
Closed
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.