Font size
WorksheetsCSS QUIZ
Total questions: 50
Worksheet time: 26mins
What Is The Acroymn For CSS
Cascading Style Sheet
Computer Style Sheet
Casscading Style Sheet
WHAT IS CSS
(a)
Which of the following tag is used to embed css in html page?
<css>
<!DOCTYPE html>
<script>
<style>
Which of the following has introduced text, list, box, margin, border, color, and background properties?
HTML
CSS
JAVASCRIPT
PHP
Which of the following CSS framework is used to create a responsive design?
django
rails
laravel
bootstrap
Which of the following CSS property is used to make the text bold?
text-decoration: bold
font-weight: bold
font-style: bold
text-align: bold
What will be the output of following CSS code ?
h1 {color: "green";}
Nothings happen
All h1 contents will become green
Only one h1 content will become green
Error occurs
Which of the following is the correct syntax to link an external style sheet in the HTML file?
<link rel=”stylesheet” href=”style.css” />
<link rel=”stylesheet” src=”style.css” />
<style rel=”stylesheet” src=”style.css” />
<style rel=”stylesheet” link=”style.css” />
How can we change the text color of an element?
background-color
color
Both A and B
None of the above
In how many ways can CSS be written in?
1
2
3
4
What type of CSS is the following code snippet?
<h1 style="color:blue;">A Blue Heading</h1>
Inline
Internal
External
None of the above
How can we select an element with a specific ID in CSS?
#
.
^
None of the above
How can we select an element with a specific Class in CSS?
#
.
^
None of the above
How can we write comments in CSS?
/* */
//
#
All of the above
In the below code snippet, in what order will the margins be added?
p { margin: 25px 50px 75px 100px; }
Top, Right, Bottom, Left
Top, Left, Bottom, Right
Top, Bottom, Right, Left
Right, Left, Top, Bottom
How can we specify the spacing between each letter in a text in CSS?
alpha-spacing
letter-spacing
character-spacing
None of the above
Which of the following is the correct way to select all h1 headers in a div element?
div h1
div-h1
h1
None of the above
How can we set the maximum width of the elements content box using CSS?
height property
max-height property
max-width property
None of the above
Which CSS property is used to specify different border styles?
border-style
border
Both A and B
None of the above
Which of the following property specifies the look and design of an outline?
outline-style
outline
outline-font
None of the above
Which of the following are parts of the CSS box model?
Margins
Borders
Padding
All of the above
Which of the following CSS property is used for controlling the layout?
display
color
text
None of the above
Which of the following components of the CSS box model are transparent?
Padding
Margin
Both A and B
Content
Which of the following CSS property specifies the type of list item marker?
list
list-style-type
ul
ol
Which of the following category of style sheet can be used to change the look of an entire website, by changing one file (CSS)?
External CSS
Internal CSS
Both Inline and Internal
Inline CSS
Which of the following category of CSS is defined in the <head> section of an HTML page, within a element?
Inline CSS
Internal CSS
External CSS
Both Internal and External CSS
Which HTML attributes is used to define an inline style?
Font
Style
Styles
Class
How do we display hyperlinks without an underline?
a{text-decoration: no underline;}
a{text-decoration: none;}
a{decoration: no underline;}
a{underline: none;}
How do we make each word in a text start with a capital letter ?
Text-transform: capitalize
Text-transform : uppercase
We can't do that with css
None
How do we make each word in a text start with a capital letter ?
Text-transform: capitalize
Text-transform : uppercase
We can't do that with css
None
To define the space between the
element's border and content, you
use the padding property, but are
you allowed to use negative values?
Yes
No
How do you make a list that lists
its items with squares?
list-type: square
type: 2
type: square
list-style-type: square
Which of the following are valid ways to represent a colour in CSS?
A valid color name
Color code
HEX value
RGB value
All of the above
We can make rounded borders around elements using which CSS element?
Border-collapse
BBorder-rounded
Border-radius
NOne of the above
How can we set the maximum width of the elements content box using CSS?
Height property
Maxheight property
Max-weight property
None of the above
Which of the following property specifies the look and design of an outline?
Outline-style
Outline
None of the above
What does the inherit value for a property do?
Inherits the value of the parents element
Invalid property name
Changes the value of parents element
Setting an inline-block in CSS requires which of the following properties?
Display
Block
Colour
All of the above
Which of the following CSS property is used for controlling the layout?
Display
Text
Colour
NNone Of the above
Which of the following CSS property specifies the origin of the background image?
Background-origin
Background-size
Origin
None of the above
Which of the following can be achieved with CSS lists?
Set different list item markers for ordered lists
Set different list item markers for unordered list
Set an image for list item marker
All of the above
Which of the following CSS property specifies the type of list item marker?
ol
ul
List-style-type
List-style
What value should be passed to the width parameter if we want an element, say a table, to span the entire width of the screen?
100%
50%
25%
0
Which of the following is the correct approach to make a table responsive?
Overflow-x: auto;
Overflow-x: none;
Both A and B
NNone Of the above
What are the uses of CSS pseudo-elements?
Styles specified parts of an element
Style the first letter or line of an element
Insert content before or after elements
None of the above
How can we select elements with a specified attribute in CSS?
[attributes] selector
Property selector
Both A and B
None of the above
Which of the following are types of length units in CSS?
Relative
Absolute
Both A and B
None of the above
What are the different types of gradients in CSS?
Linear gradient
Conic gradient
Radial gradient
All of the above
Which CSS property is used to create an image reflection?
Box-reflect
Image-reflect
Reflect-img
None of the above
If we want to show an Arrow as cursor, then which value we will use ?
Pointer
Default
Arrow
None of above
