Try to answer these 800+ CSS MCQs and check your understanding of the CSS subject. Scroll down and let's begin!
A. dimension
B. edge
C. border
A. nocontent-cells
B. empty-cells
C. noborder-cells
D. blank-cells
A. Immediately within the box border
B. Immediately outside the box border
C. None of these
D. Between the padding and the box border
A. To vertically align an image: img { vertical-align:text-top; }
B. It sets the vertical alignment of an element.
C. It sets the vertical alignment of an the entire webpage.
A. !DOCTYPE is specified.
B. !DOCTYPE is not specified.
C. header is specified.
A. spacing
B. align
C. padding
A. a:visited
B. a:hover
C. a:link
A. tracking
B. letter-spacing
C. kerning
A. a:active
B. a:unvisited
C. a:visited
D. a:link
E. a:hover
A. backgroundcolor:
B. background-color:
C. color-bkgd:
D. bgcolor:
E. color-background:
A. font properties
B. vertical-align
C. background properties
D. All of these
E. word-spacing
A. a HEX, e.g., #00ff00
B. All of these
C. an RGB value, e.g., rgb(255,0,255)
D. a color name, e.g., yellow
A. BBEdit
B. TextMate
C. All of these, any text editor will do.
D. Sublime Text
A. All of these
B. Chrome
C. Firefox
D. Internet Explorer
A. <link rel="stylesheet" type="text/css" href="mystyle.css">
B. <stylesheet>mystyle.css</stylesheet />
C. <style src="mystyle.css" />
A. Common Style Syntax
B. Computer Style Sheets
C. Cascading Style Sheets
D. Creative Style Sheet
A. #
B. !
C. &
D. %
A. $ (dollar sign)
B. @ (the "at" symbol)
C. % (percent sign)
D. ! (exclamation point)
E. # (pound sign)
A. just themes
B. styling
C. structure
D. scripting
A. In the <body> section
B. At the beginning of the document
C. In the <head> section
D. At the end of the document
A. <script>
B. <style>
C. <css>
A. {p = margin-left:20px}
B. p {margin-left:20px;}
C. {p: margin-left:20px;}
D. {p: margin-left:(20px)}
A. #
B. </
C. @
D. <
E. .
A. .style
B. .sass
C. .styles
D. .theme
E. .css
A. margins
B. padding
C. border
D. All are correct
A. Common Style for Strings
B. Cascading Style for Strings
C. Common Style Sheets
D. Cascading Style Sheets
E. Community Specification of Styles
A. font-style
B. foont
C. styles-font
D. foont-styles
E. font-decoration
A. In the <title> section
B. In the <head> section
C. In the <body> section
D. At the end of the document
A. <style>
B. <script>
C. <iss>
D. <internal>
A. h1.all {background-color:#FFFFFF;}
B. all.h1 {background-color:#FFFFFF;}
C. h1 {background-color:#FFFFFF;}
A. To request a sandwich
B. It does nothing
C. To call an internal stylesheet
D. To call an external stylesheet
A. the text size in an element
B. the color of an element
C. the height and width of an element
A. W3C
B. Mozilla
C. Apple
D. Microsoft
E. Google
A. When the user clicks it
B. It is a normal link
C. When the user mouses over it
D. When the user has visited it
A. "%"
B. "_"
C. "#"
D. "@"
A. *
B. !
C. ^
D. ~
A. /*This is a comment*/
B. </ This is a comment />
C. #This is a comment#
D. //This is a comment
A. No
B. Yes
A. False
B. True
A. color
B. color-spacing
C. color-space
A. Returns "true" if the background color matches another element
B. Specifies the background color of an element
C. Copies the background color from another element
D. Specifies the background image
A. hsize
B. size
C. x-spacing
D. min-width
E. width
A. font-style
B. text-style
C. font-size
D. text-size
E. size-font
A. all of these
B. color of outline
C. width of outline
D. style of outline
A. y-index
B. a-b testing
C. x-index
D. z-index
A. body {color: black;}
B. {body:color=black(body};
C. body:color=black;
D. {body;color:black;}
A. body { color: red; }
B. { body: color=black(body }
C. { body; color: black }
D. body:color=black
E. body { color; red }
A. color
B. bgcolor
C. background-color
A. the <p > tag
B. a group of elements
C. the <head> tag
D. the <a> tag
A. h1 {color:#00ff00;}
B. body {color:blue;}
C. h2 {color:rgb(255,0,0);}
D. All of these
A. Verdana
B. Arial
C. Times New Roman
D. Zapfino
E. Georgia
A. border-kind
B. border-display
C. border-design
D. border-style
A. All are correct
B. thick
C. medium
D. thin
A. pentadecimal
B. hexadecimal
C. nanodecimal
D. octadecimal
A. a:link {background-color:@B2FF99;}
B. a:link {background-color:!B2FF99;}
C. a:link {background-color:#B2FF99;}
D. a:link {background-color:%B2FF99;}
A. a:hover
B. mouse over
C. a:over
D. a:link
A. the ID Selector
B. the class Selector
C. an html tag
A. fixed
B. Both scroll and fixed
C. scroll
A. when it's width is set to 100%
B. when it's width is set to 50%
A. <link>
B. <sheet>
C. <external>
D. <ess>
A. h1.all { background-color: #FFFFFF; }
B. h1 { background-color: #FFFFFF; }
C. h1 { bg-color: #FFFFFF; }
D. h1:all-childs { background-color: #FFFFFF; }
A. y-index
B. z-index
C. x-index
A. id=""
B. #
C. @
D. $
E. .
A. #fff
B. #ffffff
C. All of the above
D. rgb(255,255,255)
E. white
A. Set different list item markers for ordered lists
B. Set different list item markers for unordered lists
C. All are correct
D. Set an image as the list item marker
A. transparency
B. association
C. transistor
D. transition
A. How to display HTML elements
B. How to save HTML elements
C. How to send HTML elements
D. How to create HTML elements
A. font-weight: bold;
B. text: BOLD!
C. font: b;
D. style: bold;
A. the importance order of the cascade
B. the depth of nested divs
C. the height and width of an element
D. 2d and 3d dimensions
A. .css
B. .style
C. .main
D. .styles
A. a {font: decoration: none}
B. a {text-decoration: u}
C. a: font-decoration: underline
D. a {text-decoration: underline}
A. green-space
B. blue-space
C. white-space
D. red-space
A. div {bgcolor = red}
B. div {background-color = red}
C. div {background-color : red}
D. div {bgcolor : red}
A. Yes
B. No
C. Only for images
D. Only for <P> tags
A. No
B. Yes
A. True
B. False
A. .center {text-:master;}
B. master -align:center;}
C. #master{text-align:center;}
D. .master {text-align:center;}
E. master:center
A. border-curve
B. rounded-corners
C. border-radius
A. >
B. None of these
C. )
D. }
E. ]
A. border-width: solid;
B. borderstyle solid;
C. border-style: solid;
D. border-weight: solid;
A. All are correct
B. Flying elements/banners on the page
C. Menus that pop out when triggered
D. Games where you move an object around
A. "#"
B. :."
C. "."
D. "{ }"
E. "d"
A. It is invalid
B. Links will be styled with no underlines
C. Paragraphs will have hidden text
D. It's an anchor with no ship
A. text-trans
B. text-transformation
C. text-decoration
A. Indexed
B. CMYK
C. Grayscale
D. RGB
A. bgimage
B. imagesbackground
C. background-img
D. background-image
E. image-bg
A. dashed
B. dotted
C. dashing
A. p {text-align: center}
B. h1 {font-align: centered;}
C. h1 {text-align: center;}
D. h1 {text-align: centered;}
A. <p.all style="text-shadow:6px 6px 10px #FF0000 "> Text-shadow is of red color. </p>
B. <p style="text-shadow:6px 6px 10px #FF0000 "> Text-shadow is of red color. </p>
C. <all.p style="text-shadow:6px 6px 10px #FF0000 "> Text-shadow is of red color. </p>
A. text-spacing:
B. text-shadow:
C. text-decoration:
D. text-transform:
A. It specifies the background text.
B. It specifies the background color.
C. It specifies the positioning area of the background images.
A. Elastic
B. Fluid
C. Liquid
D. Responsive
A. border-style: dotted;
B. border-style: dashed;
C. border-style: solid;
D. border-style: outset;
A. Allows web designers to overlap elements or to stack them on top of each other
B. Allows users to drag and drop images to another location on the page
C. Aligns HTML elements to the right or left while allowing content to flow around it
A. inline = " "
B. href = " "
C. css = " "
D. src = " "
E. style = " "
A. Hexadecimal colors
B. HSL colors
C. HSLA colors
D. All of these
E. RGB colors
A. font-color
B. color
C. text-color`
D. hue
A. min: height
B. min-height
C. minimum-height
D. m-heights
A. #id_name { }
B. .id_name { }
C. if id=id_name then { }
D. /* idname { } */