Having problem with link element

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

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


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

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