Skip to main content
Participant
May 15, 2020 10:58 AM UTC
Answered

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

<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 is closed to new replies. Start a new post to keep the conversation going.
    osgood_Correct answer
    Legend
    May 15, 2020 11:10 AM UTC

    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 6:14 PM UTC

    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>
    

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    osgood_Correct answer
    Legend
    May 15, 2020 11:10 AM UTC

    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.

    Translate