Learn CSS Colors by Building a Set of Colored Markers - Step 7

Tell us what’s happening:
I have no idea what’s going on. I keep trying to add the link but it says "you should have 1 self closing link element.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

    <a href="styles.css" rel="stylesheets">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Colored Markers</title>

<!-- User Editable Region -->

    <h1>CSS Color Markers</h1>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn CSS Colors by Building a Set of Colored Markers - Step 7

Link to the challenge:

I don’t see a <link> element anywhere in your code.

1 Like

This element should be a ‘link’ element: <link>

1 Like

Thank you, it now works! may I ask what is the difference between the link element and the a element? I thought they are both use to embed links

1 Like

The anchor (<a>) element is used to embed links.
The <link> element is used in the document <head> to link related files (such as your CSS file).


Thank you very much, I will take note of that. It is very helpful :slight_smile:

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