NEW
Font size
WorksheetsHTML5 & CSS3 - Day 2
Total questions: 15
Worksheet time: 5mins
What is CSS3 ?
A JavaScript framework
A browser
A programming language
The third version of CSS
CSS3 is backward compatible, which means :
Old CSS must be rewritten
Browsers stop supporting CSS2
CSS2 still works with CSS3
CSS3 works only on new browsers
Why are vendor prefixes used ?
To make CSS faster
To replace standard properties
To write shorter code
To support experimental CSS features in browsers
Which of the following is a valid vendor prefix ?
-css-
-html-
-style-
-webkit-
Which property adds shadow to an element box ?
shadow
text-shadow
border-shadow
box-shadow
What is the correct order of the CSS Box Model (inside → outside) ?
Margin → Border → Padding → Content
Content → Padding → Border → Margin
Border → Padding → Content → Margin
Content → Border → Padding → Margin
Which box-sizing value keeps the element size fixed when padding is added ?
content-box
padding-box
border-box
fixed-box
Which shorthand syntax is correct for borders ?
border: solid red 2px;
border: 2px red solid
border: 2px solid red;
All of these
What does border-radius: 50% usually create ?
Rectangle
Ellipse
Circle
Triangle
Which property is used to apply an image to borders ?
background-image
border-style
outline-image
border-image
Which property adds shadow to text ?
box-shadow
font-shadow
shadow-text
text-shadow
Which font type is loaded from the web using Google Fonts ?
System fonts
Web fonts
Local fonts
Bitmap fonts
Which CSS rule is used to load a custom font from the server ?
@import
@font-face
@font-load
@media
Which property is required to create smooth hover effects ?
animation
display
transform
transition
Which CSS property is used to apply a linear gradient as a background ?
background-color
linear-gradient
border-image
background-image
