Correct Answer:
I hope this helps! Let me know if you have any other questions.
Certification Questions & Certification Answers
Correct Answer:
color: red; /* declaration A */ font-size: 1em; /* declaration B */ padding: 10px 0; /* declaration C */
Correct Answer:
ul { --color: red; } p { color: var(--color); } a { color: var(--color, orange); }
Paragraph
Correct Answer:
.overlay { position: static; top: 200px; bottom: 200px; right: 200px; left: 200px; background-color: rgba(0, 0, 0, 0.5); }
.overlay { position: absolute; top: 200px; bottom: 200px; right: 200px; left: 200px; background-color: rgba(0, 0, 0, 0.5); }
.overlay { position: static; top: 0; bottom: 0; right: 0; left: 0; background-color: rgba(0, 0, 0, 0.5); }
.overlay { position: absolute; top: 0; bottom: 0; right: 0; left: 0; background-color: rgba(0, 0, 0, 0.5); }
Correct Answer:
.overlay { position: absolute; top: 0; bottom: 0; right: 0; left: 0; background-color: rgba(0, 0, 0, 0.5); }
#BLM
.highlight { background-color: yellow; }
#highlight { background-color: yellow; }
.highlight { color: yellow; }
#highlight { color: yellow; }
Correct Answer:
.highlight { color: yellow; }
rgba
is a funtion in css. rgba stands for red, green, blue and alpha. The value of alpha can be between 0 and 1 both inclusive with 0 being fully transparent and 1 being fully opaque.
Correct Answer:
Correct Answer:
grid-template-columns: 2fr 1fr;
Correct Answer:
.grid { display: grid; grid-template-columns: 50px 1fr 2fr; }
Correct Answer:
Correct Answer:
h1 { color: red; }
Correct Answer:
p:first-of-type { color: red; } p { color: blue; } .container { color: yellow; } p:first-child { color: green; }
Paragraph1
Paragraph2
Correct Answer:
article p { color: blue; } article > p { color: green; }
Correct Answer:
section { color: gray; }
Correct Answer:
Correct Answer:
@font-face { font-family: 'Avenir', sans-serif; src: url('avenir.woff2') format('woff2'), url('avenir.woff') format('woff'); }
Correct Answer:
Correct Answer:
p:first-of-type:first-letter { color: red; }
Paragraph 1.
Paragraph 2.
Paragraph 3.
paragraph 4.
Paragraph 6.
Correct Answer:
, from lowest to highest specificity.
…
1. section \* { ...; } 2. [class*='example'] { ...; } 3. p.example { ...; } 4. section p { ...; }
1. p { ...; } 2. p.example { ...; } 3. section p { ...; } 4. [class*='example'] { ...; }
1. p.example { ...; } 2. section p { ...; } 3. [class*='example'] { ...; } 4. section \* { ...; }
1. p { ...; } 2. section p { ...; } 3. [class*='example'] { ...; } 4. p.example { ...; }
Correct Answer:
1. p { ...; } 2. section p { ...; } 3. [class*='example'] { ...; } 4. p.example { ...; }
border: 1px solid red;
border-size: 1px; border-style: solid; border-color: red;
border-size: 1px; border-type: solid; border-color: red;
border-width: 1px; border-style: solid; border-color: red;
border-width: 1px; border-line: solid; border-color: red;
Correct Answer:
border-width: 1px; border-style: solid; border-color: red;
.container { display: flex; } .item { border: 1px solid red; flex-direction: row-reverse; }
Correct Answer:
body { background: #ffffff; /* white */ } section { background: #0000ff; /* blue */ height: 200px; }
Correct Answer:
.example { margin-left: calc(5% + 5px); }
Correct Answer:
font-weight: 400; font-weight: 700;
Correct Answer:
10vw = ?px 10vh = ?px 10vmin = ?px 10vmax = ?px
10vw = 80px 10vh = 60px 10vmin = 60px 10vmax = 80px
10vw = 60px 10vh = 80px 10vmin = 80px 10vmax = 60px
10vw = 8px 10vh = 6px 10vmin = 6px 10vmax = 8px
10vw = 6px 10vh = 8px 10vmin = 8px 10vmax = 6px
Correct Answer:
10vw = 80px 10vh = 60px 10vmin = 60px 10vmax = 80px
Correct Answer:
h2 ~ p { color: blue; } h2 + p { background: beige; }
paragraph 2
paragraph 3
Correct Answer:
font-size: reduce;
font-size: 8px;
font-size: -1em;
font-size: smaller;
Correct Answer:
font-size: smaller;
background-repeat: no-repeat;
background-repeat: fixed;
background-repeat: none;
background-tile: none;
Correct Answer:
background-repeat: no-repeat;
transform: rotate(-30deg);
transform: rotate(30deg);
rotate: 30deg;
spin: 30deg;
Correct Answer:
transform: rotate(-30deg);
li:nth-child(3 + 2n) { margin: 0 5 px; }
li:nth-child(3n + 2) { margin: 0 5 px; }
li:nth-child(2), li:nth-child(5), li:nth-child(8) { margin: 0 5 px; }
li:nth-child(2n + 3) { margin: 0 5 px; }
Correct Answer:
li:nth-child(3n + 2) { margin: 0 5 px; }
html { font-size: 10px; } body { font-size: 2rem; } .rem { font-size: 1.5rem; } .em { font-size: 2em; }
Correct Answer:
header h1, header h2 {...}
header h1 + header h2 {...}
header h1, h2 {...}
h1, h2 {...}
Correct Answer:
header h1, header h2 {...}
Correct Answer:
font-weight: bold;
Correct Answer:
Correct Answer:
Correct Answer:
Correct Answer:
Correct Answer:
a[title]
a > title
a=title
a.title
Correct Answer:
a[title]
Note: an alternative for Q2.
a a:hover
:link :visited :hover :active :focus
:active :focus :hover :link :visited
:link :visited :focus :hover :active
Correct Answer:
:link :visited :focus :hover :active
input[type="text"]:not([disabled]) {...}
input[type="text"]:not("disabled") {...}
input[type*="text"]:not([disabled="disabled"]) {...}
input[type="text"]:not([type="disabled"]) {...}
Correct Answer:
input[type="text"]:not([disabled]) {...}
input[type="text"]
selects all the input with type text, and :not([disabled])
selects all the elements not having the attribute “disabled”. Combining both only selects all the input elements with type attribte as “text” and not having “disabled” attribute.`
.element {cursor: pointer;}
.element {cursor: hand;}
.element {cursor: move-hand;}
.element {cursor: pointer-hand;}
Correct Answer:
.element {cursor: pointer;}
Correct Answer:
Correct Answer:
background-position: 10% 50%;
Correct Answer:
.example { width: 800px; margin: 0 auto; }
The example element will have 0 margin space around the whole element. The auto value will center align the element horizontally and vertically within its container.
The example element will have 0 margin space on the left and right. It will be sized automatically on the top and bottom, which will center align the element within its container.
The example element will have 0 margin space on the top and bottom. The margin will be sized automatically on the left and right, which may center align the element within its container.
The margin value is invalid because its missing a unit measurement after the 0.
Correct Answer:
The example element will have 0 margin space on the top and bottom. The margin will be sized automatically on the left and right, which may center align the element within its container.
Correct Answer:
font-style
text-transform
font-variant
letter-spacing
Correct Answer:
letter-spacing
Correct Answer:
paragraph two
section > p { color: blue; }
p { color: blue; }
section + p { color: blue; }
p + section { color: blue; }
1. Larger z-index values appear on top elements with a lower z-index value. 2. Negative and positive number can be used. 3. z-index can be used only on positioned elements.
1. Smaller z-index values appear on top of elements with a larger z-index value. 2. Negative and positive numbers can be used. 3. z-index can be used with or without positioned elements.
1. Smaller z-index values appear on top of elements with a larger z-index value. 2. Negative and positive number can be used. 3. z-index must also be used with positioned elements.
1. Larger z-index values appear on top of elements with a lower z-index value. 2. Only positive number can be used. 3. z-index must also be used with positioned elements.
Correct Answer:
1. Larger z-index values appear on top elements with a lower z-index value. 2. Negative and positive number can be used. 3. z-index can be used only on positioned elements.
Correct Answer:
Correct Answer:
Correct Answer:
!elevate!
*prime
override
!important
Correct Answer:
!important
A. border-radius: 10px 10px 0 0; B. border-top-left-radius: 10px; and border-top-right-radius: 10px; C. border-radius: 10px 0; D. border-top-radius: 10px;
Correct Answer:
div.sidebar {}
* {}
div#sidebar2 p {}
.sidebar p {}
Correct Answer:
div#sidebar2 p {}
."header clear" {}
header#clear {}
.header.clear {}
.header clear {}
Correct Answer:
.header.clear {}
a:link { background: #0000ff; } a:hover { background: rgba(0, 0, 255, 0.5); }
a { color: blue; } a:hover { background: white; }
a:link { background: blue; } a:hover { color: rgba(0, 0, 255, 0.5); }
a:hover { background: rgba(blue, 50%); } a:link { background: rgba(blue); }
Correct Answer:
a:link { background: #0000ff; } a:hover { background: rgba(0, 0, 255, 0.5); }
Correct Answer:
.header {...}
header {...}
#header {...}
header > h1 {...}
Correct Answer:
header {...}
transition: margin 1000ms ease-in-out;
transition: color 1.3s ease-in;
transition: position 400ms linear;
transition: opacity 1s ease-in;
Correct Answer:
transition: margin 1000ms ease-in-out;
Correct Answer:
[] a[href$='domain.com'] { color: pink; } [x] a[href='*domain.com'] { color: pink; } [] a[href*='domain.com'] { color: rgb(255, 155, 155); } [] a[href*='domain.com'] { color: pink; }
Correct Answer:
[x] a[href=’*domain.com’] {
color: pink;
}
.logo { position: absolute; left: 100px; top: 150px; }
.logo { position: absolute; margin-left: 100px; margin-top: 150px; }
.logo { position: absolute; padding-left: 100px; padding-top: 150px; }
.logo { position: absolute; left-padding: 100px; top-padding: 150px; }
Correct Answer:
.logo { position: absolute; left: 100px; top: 150px; }
background-color: #aaa;
background-color: #999999;
background-color: rgba(170,170,170,0.5);
background-color: rgba(170,170,170,0.2);
Correct Answer:
background-color: rgba(170,170,170,0.2);
.pen { height: 100px; width: 100px; border: 2px dashed brown; position: relative; } #puppy { position: absolute; right: 80px; bottom: 0px; }
Correct Answer:
h2 ~ p { color: blue; }
P3
P4
Correct Answer:
Correct Answer:
A. font-size: xsmall B. font-size: 50% C. font-size: 1em D. font-size: 20px
Correct Answer:
The z-index property is cool!
img { position: absolute; left: 0px; top: 0px; // Missing line }
The z-index property is cool!
img { position: absolute; left: 0px; top: 0px; // Missing line }
z-index: 1;z-index: 1;
z-index: -1;z-index: -1;
z-index: 0;z-index: 0;
z-index: true;z-index: true;
[x] `background: linear-gradient(#648880, #293f50);` [ ] `background-image: linear(#648880, #293f50);` [ ] `background: gradient(linear, #648880, #293f50);` [ ] `background-color: linear-gradient(#648880, #293f50);`
Correct Answer:
[x] `background: linear-gradient(#648880, #293f50);`
Correct Answer:
section * p
section + p
section ~ p
section > p
Correct Answer:
section > p
a[href="#"] {...}
a[href~="#"]
a[href^="#"]
a[href="#"]
Correct Answer:
a[href="#"]
Correct Answer:
::
) was introduced to create a consistency between pseudo-elements from pseudo-classes. For newer browsers, use the double colon notation. For IE8 and below, using single colon notation (:
).::
) was introduced to differentiate pseudo-elements from pseudo-classes. However, modern browsers support both formats. Older browsers such as IE8 and below do not.Correct Answer:
::
) was introduced to differentiate pseudo-elements from pseudo-classes. However, modern browsers support both formats. Older browsers such as IE8 and below do not.Correct Answer:
Correct Answer:
Correct Answer:
background-image: file(wood.png);
background-image: url(wood.png);
background-image: wood.png;
image: wood.png
Correct Answer:
background-image: url(wood.png);
within the outer
#inner { width: 50%; } #outer { width: 100%; }
#inner { left: 0; right: 0; position: center; }
#inner { text-align: center; }
#inner { width: 50%; margin: 0 auto; }
Correct Answer:
#inner { width: 50%; margin: 0 auto; }
Correct Answer:
a:visited
a:hover
a:link
a:focus
Correct Answer:
a:visited
Correct Answer:
[] .glyphicon-bgcircle { circle-radius: 50%; margins: 50px; background-color: #fdadc6; color: rgba(255, 255, 255, 1); font-size: 24px; } [] glyphicon-bgcircle { border-circle: 50%; padding: 50px; background-color: #fdadc6; color: rgba(255, 255, 255, 1); font-size: 24px; } [x] .glyphicon-bgcircle { border-radius: 50%; padding: 50px; background-color: #fdadc6; color: rgba(255, 255, 255, 1); font-size: 24px; } [] .glyphicon-bgcircle { radius-rounded: 50%; margins: auto; background-color: #fdadc6; color: rgba(255, 255, 255, 1); font-size: 24px; }
Correct Answer:
[x] .glyphicon-bgcircle {
border-radius: 50%;
padding: 50px;
background-color: #fdadc6;
color: rgba(255, 255, 255, 1);
font-size: 24px;
}
transform: translateX(-100px)
transform: translateY(-100px)
transform: translateY(100px)
transform: translateX(100px)
Correct Answer:
transform: translateY(-100px)
Correct Answer:
Correct Answer:
Correct Answer:
.grid { display: grid; width: 500px; grid-template-columns: 50px 1fr 2fr; }
Correct Answer:
Correct Answer:
Correct Answer:
a:active { color: pink; }
Correct Answer:
.example { color: yellow; } ul li a { color: blue; } ul a { color: green; } a { color: red; }
Correct Answer:
paragraph two
section p { color: red; } section + p { color: blue; }
Correct Answer:
ul li a a .example a div a
.example a
div a
a
ul li a
Correct Answer:
.example a
@media (min-width: 1024px), screen and (orientation: landscape) { … }
Correct Answer:
background: blue url(image.jpg) no-repeat scroll 0px 0px;
background-color: blue; background-image: url(image.jpg); background-repeat: no-repeat; background-attachment: scroll; background-position: 0px 0px;
background-color: blue; background-img: url(image.jpg); background-position: no-repeat; background-scroll: scroll; background-size: 0px 0px;
background-color: blue; background-src: url(image.jpg); background-repeat: no-repeat; background-wrap: scroll; background-position: 0px 0px;
background-color: blue; background-src: url(image.jpg); background-repeat: no-repeat; background-scroll: scroll; background-position: 0px 0px;
Correct Answer:
background-color: blue; background-image: url(image.jpg); background-repeat: no-repeat; background-attachment: scroll; background-position: 0px 0px;
paragraph two
section p { color: red; } section + p { color: blue; }
Correct Answer:
p { color: #000000; }
"p" is the selector "#000000" is the property "color" is the value
"p" is the selector "color" is the property "#000000" is the value
"color" is the selector "#000000" is the property "#p" is the value
"color" is the selector "p" is the property "#000000" is the value
Correct Answer:
"p" is the selector "color" is the property "#000000" is the value
flex-direction: row;
flex-direction: row-reverse;
flex-direction: column;
flex-direction: column-reverse;
flex-direction: row-reverse;
flex-direction: row;
flex-direction: column-reverse;
flex-direction: column;
flex-direction: row;
flex-direction: row-reverse;
flex-direction: column;
flex-direction: reverse-column;
flex-direction: column;
flex-direction: column-reverse;
flex-direction: row;
flex-direction: row-reverse;
Note: Examples seem to be missing.
Correct Answer:
flex-direction: row;
flex-direction: row-reverse;
flex-direction: column;
flex-direction: column-reverse;
Correct Answer:
Correct Answer:
Correct Answer:
a[title]{...}
a > title {...}
a.title {...}
a=title {...}
Correct Answer:
a[title]{...}
1. External; CSS is written in a separate file. 2. Inline; CSS is added to the of the HTML page. 3. Internal; CSS is included within the HTML tags.
1. External; CSS is written in a separate file and is linked within the
1. External; CSS is written in a separate file and is linked within the element of the HTML file. 2. Internal; CSS is included within the
1. External; CSS is written in a separate file and is linked within the element of the HTML file. 2. Inline; CSS is added to the HTML tag. 3. Internal; CSS is included within the element of the HTML file.
Correct Answer:
1. External; CSS is written in a separate file and is linked within the element of the HTML file. 2. Inline; CSS is added to the HTML tag. 3. Internal; CSS is included within the element of the HTML file.
1) .nav { ...; } 2) nav { ...; } 3) #nav { ...; }
1. An element with an ID of "nav" 2. A nav element 3. An element with a class of "nav"
They all target the same nav element.
1. An element with an class of "nav" 2. A nav element 3. An element with a id of "nav"
1. An element with an class of "nav" 2. A nav element 3. An div with a id of "nav"
Correct Answer:
1. An element with an class of "nav" 2. A nav element 3. An element with a id of "nav"
line-height: 20px; line-height: 2;
Correct Answer:
Correct Answer:
Correct Answer:
Correct Answer:
element is an example of an inline element.
is an example of a block element.
is an example of a block element.
is an example of an inline element.
Correct Answer:
rgba()
value applies transparency to the background color only.rgba()
value specifies the level of transparency of an element, as a whole, including its content.rgba()
value applies transparency to the background color only.rgba()
value specifies the level of transparency of the parent element only.Correct Answer:
rgba()
value applies transparency to the background color only.Correct Answer:
Correct Answer:
Correct Answer:
Correct Answer:
color: #000
color: rgb(0,0,0)
color: #000000
color: 000000
Correct Answer:
color: 000000
color: #000
color: rgb(0,0,0)
color: #000000
color: 000000
Correct Answer:
color: 000000
Correct Answer:
Correct Answer:
element is an example of an inline element.
is an example of a block element.
is an example of a block element.
is an example of an inline element.
Correct Answer:
Correct Answer:
Correct Answer:
This page was last edited on 12th March, 2024 at 8:53 AM (UTC).