(10) CSS Error Spotting Questions and Answers

  1. a{font-weight:100}

  2. a{ font-stretch:normal;}

  3. a{font-decoration:none;}

  4. a{font-family:verdana;}

View Answer
  1. #div{float:left;}

  2. div{float:left;}

  3. @div{float:left;}

  4. .div{float:left;}

View Answer
  1. p:first-letter{color:red;}

  2. a:href{text-decoration:none;}

  3. img:hover{border:none;}

  4. ul>:first-child{background-color:red;}

View Answer
  1. <p style=”#fsize12{font-size:12px;}”>Style Definition</p>

  2. <style>#fsize12{font-size:12px;}</style>

  3. <p id=”fsize12” >Style Definition</p>

  4. <font style="font-size:12px;">Style Definition</font>

View Answer
  1. body{font-size:14px}

  2. font-size-adjust:none

  3. font-stretch:wider

  4. font-family:Trebuchet MS, Arial, Helvetica, sans-serif

View Answer
  1. font-weight:800

  2. font-weight:bold

  3. font-weight:bolder

  4. font-weight:strong

View Answer
  1. p[class]

  2. p[class~="web"]

  3. p[attr^"d"]

  4. p[id]

View Answer
  1. border:30px 20px 10px 5px;

  2. border:30px solid #FFFFFF;

  3. border-top:30px;

  4. border-style:solid;

View Answer
  1. margin:30px 20px 10px 5px;

  2. padding:30px 20px 10px 5px;

  3. box-shadow: 0 0 10px #777777;

  4. border:30px 20px 10px 5px;

View Answer
  1. Incorrect hex color format

  2. Missing semicolon after text-align: center

  3. Incorrect font-size

  4. Incorrect text-align:middle

View Answer