CSS/Css Mcq Set 1 Sample Test,Sample questions

Question:
 In CSS, “font-size” can be called as ________

1.Property

2.Selector

3.Property-Name

4.Rule

Posted Date:-2021-12-28 18:59:29


Question:
 In CSS, what does h1 can be called as _______

1. Attribute

2.Selector

3. Tag

4.Value

Posted Date:-2021-12-28 18:57:09


Question:
 Which of the following CSS framework is used to create a responsive design?

1.django

2.rails

3. larawell

4.bootstrap

Posted Date:-2021-12-28 18:58:08


Question:
 Which of the following CSS property specifies an image to use as the background of an element?

1.background-image

2. background

3.background-img

4.none of the mentioned

Posted Date:-2021-12-28 19:06:15


Question:
In css, “color:red” can be called as ________

1.Declaration

2. Value

3. Rule

4.Selector

Posted Date:-2021-12-28 19:05:01


Question:
Select the CSS property that sets the width of an element’s bottom border?

1. border-width

2. border-bottom

3.border-width-down

4.border-bottom-width

Posted Date:-2021-12-28 19:20:19


Question:
The _______property is used to set the color of the text.

1.pallet

2. colour

3.color

4.text-decoration

Posted Date:-2021-12-28 19:35:55


Question:
What is CSS?

1.CSS is a style sheet language

2. CSS is designed to separate the presentation and content, including layout, colors, and fonts

3.CSS is the language used to style the HTML documents

4.all of the mentioned

Posted Date:-2021-12-28 18:54:42


Question:
What will be the output of following code snippet?

<style h1 {color: green;}> 
<h1>Hello</h1>

1.h1 heading becomes green

2.error

3. h1 heading disappears

4.nothing happens

Posted Date:-2021-12-28 19:35:11


Question:
What will be the output of following CSS code snippet?

 h1 {color: "green";}

1.nothings happen

2.error occurs

3.heading becomes dark-green

4.heading becomes green

Posted Date:-2021-12-28 19:00:52


Question:
What will be the output of following CSS code snippet?

h1 {color: red text-decoration: underline; font-style: italic;}

1.color: red, text-decoration: underline works

2. only font-style: italic works

3.color: red, text-decoration: underline and font-style: italic all works

4.text-decoration: underline and font-style: italic works

Posted Date:-2021-12-28 19:01:49


Question:
What will be the output of the following CSS code snippet?

span {
	border: 1px solid red;
        outline: green dotted thick;
}

1.All span elements will have a green thick border and a red outline

2.All span elements will have a red border and a green dotted outline

3.All span elements will have a outer green dotted border and an inner red border

4. All span elements will have an outer red border and inner green dotted border

Posted Date:-2021-12-28 19:10:29


Question:
What will be the output of the following CSS code?

div {
    border-width:5px;	
    border-style:dotted solid double dashed;
}

1. Box having dotted bottom outline, solid right outline, double top outline and dashed left outline

2.Box having dotted bottom outline, solid left outline, double top outline and dashed left outline

3.Box having dotted top outline, solid right outline, double bottom outline and dashed left outline

4.Box having dotted top outline, solid left outline, double bottom outline and dashed right outline

Posted Date:-2021-12-28 19:16:44


Question:
Which CSS property can be used to set the image as a border instead of the border style?

1. background-image-source

2.background-image

3. border-image-source

4.border-image

Posted Date:-2021-12-28 19:05:26


Question:
Which CSS property is used to make the text bold?

1. text-decoration: bold

2.font-weight: bold

3. font-style: bold

4. text-align: bold

Posted Date:-2021-12-28 19:00:22


Question:
Which CSS selector is used to specify a rule to bind a particular unique element?

1.tag

2.id

3.class

4.both class and tag

Posted Date:-2021-12-28 18:58:56


Question:
Which is not the property of the CSS box model?

1. margin

2.color

3.width

4. height

Posted Date:-2021-12-28 19:08:07


Question:
Which is the correct syntax to link an external style sheet in the HTML file?

1. <link rel=”stylesheet” href=”style.css” />

2.<link rel=”stylesheet” src=”style.css” />

3.<style rel=”stylesheet” src=”style.css” />

4. <style rel=”stylesheet” link=”style.css” />

Posted Date:-2021-12-28 19:02:42


Question:
Which of the following are the CSS Extension Prefixes for Webkit?

1. -chrome

2. -web

3. -o-

4.-webkit

Posted Date:-2021-12-28 19:02:18


Question:
Which of the following CSS property adds padding to the top of an element?

1.padding-top

2. padding-height

3.top

4.padding-left

Posted Date:-2021-12-28 19:10:54


Question:
Which of the following CSS Property controls how an element is positioned?

1.static

2.position

3. fix

4.set

Posted Date:-2021-12-28 19:12:26


Question:
Which of the following CSS property converts text to initial capitals, all uppercase, or all lowercase?

1.text-decoration

2.text-uppercase

3. text-transform

4. text-transform

Posted Date:-2021-12-28 19:14:54


Question:
Which of the following CSS property defines the different properties of all four sides of an element’s border in a single declaration?

1.border-collapse

2.border-width

3.padding

4.borders.

Posted Date:-2021-12-28 19:05:52


Question:
Which of the following CSS property defines the space between cells in a table?

1. border-spacing

2. border-style

3. border

4.none of the mentioned

Posted Date:-2021-12-28 19:17:17


Question:
Which of the following CSS property is used to set the color of the text?

1. text-decoration

2.pallet

3. colour

4. color

Posted Date:-2021-12-28 19:11:51


Question:
Which of the following CSS property is used to specify table borders in CSS?

1.table:border

2. table

3.border

4.none of the mentioned

Posted Date:-2021-12-28 19:13:39


Question:
Which of the following CSS property sets the amount of spacing between letters?

1. line-height

2.letter-space

3.space

4.letter-spacing

Posted Date:-2021-12-28 19:08:33


Question:
Which of the following CSS property sets the font size of text?

1. font-size

2. text-size

3.text

4.size

Posted Date:-2021-12-28 19:07:43


Question:
Which of the following CSS property sets the opacity level for an element?

1.transparent

2.opacity

3.transparency

4.all of the mentioned

Posted Date:-2021-12-28 19:15:19


Question:
Which of the following CSS property sets the shadow for a box element?

1. set-shadow

2.box-shadow

3. shadow

4.canvas-shadow

Posted Date:-2021-12-28 19:11:28


Question:
Which of the following CSS Property sets the stacking order of positioned elements?

1. y-index

2.z-index

3.x-index

4.all of the mentioned

Posted Date:-2021-12-28 19:16:11


Question:
Which of the following CSS property sets what kind of line decorations are added to an element, such as underlines, overlines, etc?

1.text-decoration

2.text-style

3.text-decoration-line

4.text-line

Posted Date:-2021-12-28 19:08:59


Question:
Which of the following CSS property specifies the look and design of an outline?

1.outline-style

2. outline-format

3.outline-font

4.none of the mentioned

Posted Date:-2021-12-28 19:09:22


Question:
Which of the following CSS property specifies the placement of an element in relation to floating objects?

1. space

2.clear

3.color

4.none of the mentioned

Posted Date:-2021-12-28 19:09:47


Question:
Which of the following CSS selector selects the elements that are checked?

1.:checked

2. E ~ F

3.::after

4.none of the mentioned

Posted Date:-2021-12-28 19:12:51


Question:
Which of the following CSS selectors are used to specify a group of elements?

1. tag

2.id

3. class

4.both class and tag

Posted Date:-2021-12-28 18:56:33


Question:
Which of the following CSS style property is used to specify an italic text?

1.style

2. font

3. font-style

4.@font-face

Posted Date:-2021-12-28 19:01:21


Question:
Which of the following CSS3 property is used to tell the browser what the sizing properties should be included?

1.box-design

2. box-redesign

3.box-sizing

4. box-model

Posted Date:-2021-12-28 19:07:16


Question:
Which of the following element is used to create a SVG rectangle?

1. <square>

2. <rectangle>

3.<polygon>

4.<rect>

Posted Date:-2021-12-28 19:14:28


Question:
Which of the following function defines a linear gradient as a CSS image?

1. gradient()

2.linear-gradient()

3.grayscale()

4.image()

Posted Date:-2021-12-28 19:04:37


Question:
Which of the following has introduced text, list, box, margin, border, color, and background properties?

1. HTML

2. PHP

3. CSS

4.Ajax

Posted Date:-2021-12-28 18:57:40


Question:
Which of the following is an appropriate value for the overflow element?

1. scroll

2. hidden

3.auto

4.all of the mentioned

Posted Date:-2021-12-28 19:13:17


Question:
Which of the following is not a value for the font-style property?

1.oblique

2.normal

3.italic

4.none of the mentioned

Posted Date:-2021-12-28 19:04:11


Question:
Which of the following is the correct way to apply CSS style to a document?

1.Set an inline style rule using the style attribute directly on an element

2.Use an external style sheet, either by importing it or by linking to it

3.Directly embed a document-wide style in the head element of the document

4.all of the mentioned

Posted Date:-2021-12-28 19:03:44


Question:
Which of the following is the correct way to apply CSS Styles?

1.in an external CSS file

2.inside an HTML element

3. inside the <head> section of an HTML page

4.all of the mentioned

Posted Date:-2021-12-28 19:06:52


Question:
Which of the following is the correct way to apply Styles?

1. inside an HTML element

2.inside the section of an HTML page

3.in an external CSS file

4.all of the mentioned

Posted Date:-2021-12-28 19:36:39


Question:
Which of the following is the first CSS specification to become an official W3C Recommendation?

1.CSS level 2

2.(X)HTML CSS

3.CSS level 1

4.CSS level 2.1

Posted Date:-2021-12-28 19:03:11


Question:
Which of the following strings are defined in CSS?

1. both single quotes and double quotes

2.single quotes

3.double quotes

4.none of the mentioned

Posted Date:-2021-12-28 19:15:48


Question:
Which of the following tag is used to embed css in html page?

1. <css>

2.<!DOCTYPE html>

3.<script>

4.<style>

Posted Date:-2021-12-28 18:56:05


Question:
Which type of HTML tag is used to define an internal style sheet?

1. <script>

2.<link>

3.<class>

4.<style>

Posted Date:-2021-12-28 18:59:56


Question:
Who invented CSS?

1. Hakon Wium Lie

2.Sergey Brin

3.Rasmus Lerdorf

4.Brendan Eich

Posted Date:-2021-12-28 18:55:31


Question:
______ has introduced text, list, box, margin, border, color, and background properties.

1.css

2.html

3. ajax

4.php

Posted Date:-2021-12-28 19:18:48


More MCQS

  1. CSS MCQ Questions & Answers Part 1
  2. CSS MCQ Questions & Answers Part 2
  3. CSS MCQ Questions & Answers Part 3
  4. CSS Mcq Questions
  5. CSS mcqs Part 1
  6. CSS mcqs Part 2
  7. CSS mcqs Part 3
  8. Css Mcq Set 1
  9. Css Mcq Set 2
  10. Css Mcq Set 3
  11. Css Mcq Set 4
  12. Css Mcq Set 5
  13. Css Mcq Set 6
  14. Css Mcq Set 7
  15. Css Mcq Set 8
  16. Css Mcq Set 9
  17. CSS Multiple-Choice Questions
  18. CSS MCQ
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!