<link> confusion self closing vs not self closing

Tell us what’s happening:
Confused as how to correctly write the element as two projects complete it differently . The Camper Cafe project requires it to be self closing and the Colored Marker project doesn’t requires it to be self closing . How do I know when to make the distinction?

  **Your code so far**

/* Camper Cafe */

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
  </head>
  <body>

/* Marker Project */

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Colored Markers</title>
    <link rel="stylesheet" type="text/css" href="styles.css">
  </head>
  <body>

I’ve edited your post 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 (’).

There isn’t one. It’s an issue with the tests. The closing slash is optional and not needed.

oooooh so thats why i dont remember self closing elements needing space and a slash, well i hope they all stay constistant soon

Thank you for the clarification.

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