Home  >  Q&A  >  body text

The id part does not show red

css:

/*id selector*/

#stress{

color:red;

}

html:

<!doctype html>

<html>

<head>

<!--id selector-- >

<meta http-equiv="content-Type"content="text/html;charset="UTF-8">

<title>id selector< ;/title>

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

</head>

<body>

<p>When I was in the third grade, I was a little girl who was <span id="stress">as timid as a mouse</span>. I never dared to answer the teacher in class. Questions raised.</p>

</body>

</html>


##

OneOne2414 days ago1779

reply all(2)I'll reply

  • 东方_冥

    东方_冥2018-04-03 10:02:25

    <meta http-equiv="content-Type"content="text/html;charset="UTF-8">

    Try removing the quotes before UTF-8

    <meta http-equiv="content-Type" content="text/html;charset=UTF-8" />


    reply
    0
  • 灭绝师太

    灭绝师太2018-04-02 16:58:44

    Is the path of the external css style written wrong?


    reply
    2
  • Cancelreply