Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Name:_________________________________ Class: Web Designing

If we want define style for an unique element, then which css selector will we use?

a. Id
b. Text
c. Class
d. Name

If we don't want to allow a floating div to the left side of an element, which css property
will we use ?

a. Margin
b. Clear
c. Float
d. Padding

The CSS property used to control the element’s font-size is__________


1. font-size
2. text-size
3. text-style
4. None
The HTML attribute used to define the internal stylesheet is___________
1. style
2. <style>
3. <link>
4. <script>
Which of the following CSS property is used to set the background image of an element?
1. background-color
2. background-image
3. background-attachment
4. None
Which of the following is the correct syntax to display the hyperlinks without any underline?
1. a {decoration : no-underline;}
2. a {text-decoration : underline;}
3. a {text-decoration : none;}
4. None
Which of the following is the correct syntax to make the background-color of all paragraph elements to
yellow?
1. all {background-color : yellow;}
2. p {background-color : #yellow;}
3. p {background-color : yellow;}
4. all p {background-color : #yellow;}
Which of the following property is used as the shorthand property for the padding properties?
1. padding-right
2. padding-left
3. padding
4. All of the above
How to select the elements with the class name “example”?
1. example
2. #example
3. Class example
4. .example
The CSS property used to make the text bold is___________
1. weight: bold
2. font-weight : bold
3. style: bold
4. font: bold
The property in CSS used to change the background color of an element is_____________
1. background-color
2. color
3. bgcolor
4. None
Which of the following syntax is correct in CSS to make each word of a sentence start with a capital letter?
1. transform : capitalize;
2. text-style : capital;
3. text-transform : capital;
4. text-transform : capitalize;
CSS stands for _________
1. Color and style sheets
2. Cascading style sheet
3. Cascade style sheets
4. None
Which of the following is the correct syntax for referring the external style sheet?
1. <style src = “example.css” >
2. <style src = example.css>
3. <stylesheet> example.css </stylesheet>
4. <link rel=”stylesheet” type=”text/css” href=”example.css”>
The CSS property used to specify whether the text is written in the horizontal or vertical direction?
1. text-indent
2. writing-mode
3. word-break
4. None
Which of the following is the correct syntax to select all paragraph elements in a div element?
1. p
2. div p
3. div#p
4. div ~p
Which of the following CSS property is used to add shadows to the text?
1. text-stroke
2. text-decoration
3. text-shadow
4. text-overflow

Which of the following CSS property is used to specify whether the table cells share the common or separate
border?
1. border-radius
2. border-collapse
3. border-spacing
The HTML attribute used to define the inline styles is___________
1. class
2. styles
3. style
4. None of the above
The CSS property used to draw a line around the elements outside the border?
1. line
2. border
3. padding
4. outline

You might also like