NEW
Font size
WorksheetsCSS Quiz
Total questions: 20
Worksheet time: 10mins
If we want define style for an unique element, then which css selector will we use ?
Id
element
class
child
Can we align a Block element by setting the left and right margins ?
Yes
Not possible
If we want to wrap a block of text around an image, which css property will we use ?
wrap
push
float
align
If we want to show an Arrow as cursor, then which value we will use ?
pointer
default
arrow
arr
Which element is used in the <HEAD> section on an HTML page, if we want to use an external style sheet file to decorate the page ?
<src>
<link>
<style>
<css>
Which attribute can be added to many HTML elements to identify them as a member of a specific group ?
id
div
class
span
When we write <img src="img.png">, what "img.png" inside double quote implies?
element
attribute
value
operator
Which css property you will use if you want to add some margin between a DIV's border and its inner text ?
spacing
margin
padding
inner-margin
Which CSS property is used to control the text size of an element ?
font-style
text-size
font-size
text-style
The default value of "position" attribute is _________.
fixed
absolute
sticky
relative
How will you make all paragraph elements 'RED' in color ?
.p.all {color: red;}
.* {color: #990000;}
all.p {color: #998877;}
p {color: red;}
By default Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code ?
a {text: no-underline;}
a {text-decoration:none;}
a {text-style: no-underline;}
a {text-decoration: no-underline;}
The elements <DIV> and <SPAN> have the following characteristics
Element <DIV> inherits properties defined for <SPAN> in a stylesheet
Elements <SPAN> and <DIV> define content to be inline or block-level
<DIV> and <SPAN> are used as alternatives for the element <P>
<DIV> is used inside element <P>.
Which is not a property of attribute Behaviour of <Marquee> tag?
alternate
blur
scroll
slide
How can you open a link in a new browser window?
<a href="url" new>
<a href="url" target="new">
<a href="url" target="_blank">
<a href="url" target="">
How many different styling techniques are used in CSS?
2
4
3
1
Select the correct among the following for linking an external style sheet.
<link rel=“stylesheet” type=“text/css” href=“style.css”>
<style rel=“stylesheet” type=“text/css” href=“style.css”>
<link>stylesheet
<link href=“style.css”>stylesheet
Which of the following is the correct CSS syntax?
p:color=green, font-size=15px
{p:color=green, font-size=15px}
p {color:green, font-size:15px;}
p {color:green; font-size:15px;}
If "padding: 10px 5px 20px 0px" is given. What does this represent?
left:10px , top:5px , right:20px , bottom:0px
top:10px , right:5px , bottom:20px , left:0px
right:10px , bottom:5px , left:20px , top:0px
bottom:10px , left:5px , top:20px , right:0px
Which is the correct syntax to set the unordered-list item marker to a square.
<ul style=“list-style-type:square”>
<ul style=“square”>
<ul list-style: “square”>
<ul style=square>
