Skip to main content
Participant
May 15, 2020
Answered

link to CSS file gives error: "special characters must be escaped [<]."

  • May 15, 2020
  • 2 replies
  • 844 views

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

 

What did I do wrong?

I'm a student and I am just learning to link the CSS to the HTML;

thx!

Tinne

    This topic has been closed for replies.
    Correct answer osgood_

    There is nothing wrong with the link to your css styelsheet. The error is refering to some other code in your page which probably has an unclosed tag.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    May 15, 2020

    Use the online markup validation service to check your code. 

    From DW CC, go to Window > Results > Validation. Check your document. 

     

    A well-formed HTML document should look something like this:

    <!doctype html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>Unique Page Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="Tinne.css" rel="stylesheet" type="text/css">
    </head>
    
    <body>
    PAGE CONTENT GOES HERE
    </body>
    </html>
    

     

    Nancy O'Shea— Product User & Community Expert
    osgood_Correct answer
    Legend
    May 15, 2020

    There is nothing wrong with the link to your css styelsheet. The error is refering to some other code in your page which probably has an unclosed tag.