1
Invalid style property
View Answer
a{font-weight:100}
a{ font-stretch:normal;}
a{font-decoration:none;}
a{font-family:verdana;}
2
Spot the error
View Answer
#div{float:left;}
div{float:left;}
@div{float:left;}
.div{float:left;}
3
Wrong Pseudo column
View Answer
p:first-letter{color:red;}
a:href{text-decoration:none;}
img:hover{border:none;}
ul>:first-child{background-color:red;}
4
Invalid style definition
View Answer
<p style=”#fsize12{font-size:12px;}”>Style Definition</p>
<style>#fsize12{font-size:12px;}</style>
<p id=”fsize12” >Style Definition</p>
<font style="font-size:12px;">Style Definition</font>
5
Spot the error on Font Style
View Answer
body{font-size:14px}
font-size-adjust:none
font-stretch:wider
font-family:Trebuchet MS, Arial, Helvetica, sans-serif
6
Find the error on font-weight property
View Answer
font-weight:800
font-weight:bold
font-weight:bolder
font-weight:strong
7
Attribute selector.
View Answer
p[class]
p[class~="web"]
p[attr^"d"]
p[id]
8
Spot the error on values.
View Answer
border:30px 20px 10px 5px;
border:30px solid #FFFFFF;
border-top:30px;
border-style:solid;
9
Spot the error
View Answer
margin:30px 20px 10px 5px;
padding:30px 20px 10px 5px;
box-shadow: 0 0 10px #777777;
border:30px 20px 10px 5px;
10
Identify the error in the following CSS code:
.my-class {
background-color: #fff;
color: red;
font-size: 16px;
text-align: middle
}View Answer
Incorrect hex color format
Missing semicolon after
text-align: center
Incorrect font-size
Incorrect text-align:middle