search

Home  >  Q&A  >  body text

Grouping function of selector is not successful

<!DOCTYPE html>

<html>

<head>

<title>Basic syntax of CCS</title>

<style type="text/css">

<!-- Selector {declaration}

Selector {property:property value;property:property value ;Attribute:Attribute value;.....} -->

p{color:blue;font-size:40px;}

<!-- Selector Grouping-->

b,h1,h2{color:blue;}

</style>

</head> ;

<body style="background:pink;">

<p>php中文网</p>

<b>php is the best language</b>

<h1>php is the best language</h1>

< h2>php is the best language</h2>

</body>

</html>


碧玉刀碧玉刀2366 days ago1592

reply all(2)I'll reply

  • 亚连

    亚连2018-06-13 09:37:08

    If you run it and try it, you will know whether it can succeed. Judging from the code, there is no problem.

    reply
    0
  • 碧玉刀

    I'm just asking because it didn't work successfully.

    碧玉刀 · 2018-06-13 19:10:41
  • Cancelreply