<div id=”sectors”>
<div id=”A” class=”A”></div>
<div id=”B” class=”B”></div>
<div id=”C” class=”C”></div>
<div id=”D” class=”D”></div>
<div id=”E” class=”E”></div>
</div>
With these style rules:
<style>
#sectors > div {
float: left;
position: relative;
width: 80px;
height: 80px;
margin: 16px;
background-color:red; color: white;
text-align: center;
}
#sectors > div::after {
content: attr(id) ‘-Block’;
}
#sectors > div.changecolor {
background-color: blue;
}
</style>
Answers:
- In style rule add this code “#sectors > div:not(.C):not(.D):not(.E) {background-color: blue;}”
- In style rule add this code “#sectors > div:not(.C, .D, .E) {background-color: blue;}”
- Both A and B
- None of the above
Answers:
- It is not possible to do so.
- border-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
- background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
- background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 1px; width: 10px; height: 10px;
Answers:
- Yes
- No
font-weight:normal
What is the other way of getting the same result?
Answers:
- font-weight:100
- font-weight:900
- font-weight:400
- font-weight:700
div[class^=”stronger”] { }
{em
…
}
Which of the following statements is true?
Answers:
- It applies the rule only on divs who belong to a class that begins with “stronger”.
- It applies the rule only on divs of class “stronger”.
- It applies the rule only on divs who belong to a class which end with “stronger”.
- It applies the rule only on divs who belong to a class which does not contain “stronger” in its name.
6. For the clear property, which of the following values is not valid?
Answers:
- none
- left
- right
- top
<style>
.foo {
width:100px;
height:50px;
border-width:3px;
-webkit-border-image:
-webkit-gradient(linear, 0 0, 0 100%, from(black), to(red)) 1 100%;
-webkit-border-image:
-webkit-linear-gradient(black, red) 1 100%;
-o-border-image:
-o-linear-gradient(black, red)) 1 100%;
-moz-border-image:
-moz-linear-gradient(black, red) 1 100%;
}
</style>
<div class=”foo”>Lorem</div>
Answers:
- The text “Lorem” will be colored black-red.
- The div element will be colored black-red.
- The border of div element will be colored black-red.
- None of these.
Answers:
- auto
- never
- always
- normal
- length
Answers:
- continuous or paged
- visual or tactile
- grid or bitmap
- braille or screen
Answers:
- page-break-inside
- page-break-outside
- page-break-before
- page-break-after
- None of these
box-shadow:30px 20px 10px 5px black;
Answers:
- The shadow will be spread out to 30px top, 20px right, 10px bottom, 5px left.
- The position of the horizontal black shadow is 30px and the position of the vertical black shadow is 20px and blur distance is 10px and size of shadow is 5px.
- The position of the vertical black shadow is 30px and the position of the horizontal black shadow is 20px and size of shadow is 10px and blur distance is 5px.
- The shadow will be spread out to 30px top and bottom, 20px left and right with 10px blur distance, 5px shadow size.
Answers:
- button
- span
- table row
A drop shadow needs to appear only at the bottom, and no images should be used.
Consider the following code:
-moz-box-shadow: 0px 4px 4px #000;
-webkit-box-shadow: 0px 4px 4px #000;
box-shadow-bottom: 5px #000;
However, this produces shadows on the rest of the element.
Which of the following code snippets will correct the issue?
Answers:
- border-bottom:5px solid #ffffff; -webkit-box-shadow: 0px 5px #000000; -moz-box-shadow: 0px 5px #000000; box-shadow: 0px 5px #000000;
- -webkit-box-shadow: 0 4px 4px -2px #000000; -moz-box-shadow: 0 4px 4px -2px #000000; box-shadow: 0 4px 4px -2px #000000;
- -webkit-box-shadow: 0 4px 4px -2px inside #000000; -moz-box-shadow: 0 4px 4px -2px inside #000000; box-shadow: 0 4px 4px -2px inside #000000;
- None of these.
body { text-replace: “a” “b” “b” “c” }
What will be the output of the following string if the text-replace style is implemented?
andy lives behind cafe
Answers:
- ndy lives behind cbfe
- cndy lives cehind ccfe
- andy lives behind cafe
- andy lives cehind bafe
Answers:
- preserve-3d
- flat
- none
- preserve
<style>
.foo {
width:100px;
height:50px;
border-width:3px;
-webkit-border-image:
-webkit-gradient(linear, 0 0, 0 100%, from(black), to(red)) 1 100%;
-webkit-border-image:
-webkit-linear-gradient(black, red) 1 100%;
-o-border-image:
-o-linear-gradient(black, red)) 1 100%;
-moz-border-image:
-moz-linear-gradient(black, red) 1 100%;
}
</style>
…
<div class=”foo”>Lorem</div>
Answers:
- The text “Lorem” will be colored black-red.
- The div element will be colored black-red.
- The border of div element will be colored black-red.
- None of these.
Answers:
- img { float= left }
- img { float: left here }
- img { background: “black” }
- img { border-width: 10 }
- All of the above
td:nth-child(3n+0){
background-color: orange;
}
Answers:
- It returns a syntax error.
- The background color of the fourth td will be orange.
- The background color of the third td will be orange.
- The background color of every third td will be orange.
Answers:
- Adding a class to each <li> element but last
- Using li:not(:last-child) css selector
- Using li:last-child selector
- None of the above
Answers:
- box-shadow: 0 0 8px rgba(255,255,255, 0.25);
- box-shadow: inset 0 0 8px rgba(0,0,0, 0.25);
- box-shadow: 0 0 8px rgba(255,255,255, 25%);
- box-shadow: inset 0 0 8px rgba(0,0,0, 25%);
Answers:
- auto
- balance
- none
<div>Lorem ipsum</div>
Answers:
- box-shadow: 0 0 8px 2px #888;
- border-shadow: 0 0 8px 2px #888;
- div-shadow: 8px 2px 0 0 #888;
- None of these
Answers:
- width: calc(100% – 50px);
- width: reduce(100% – 50px);
- width: decrease(100% – 50px);
- width: 100% – 50px;
Answers:
- orphans
- widows
- bottom
- overflow
- None of these
Answers:
- 10
- 100
- 500
- None of the above
Answers:
- small
- medium
- large
- default
Answers:
- Yes, using the text-gradient property.
- Yes, but only for headings.
- There is no way to do a text color gradient with CSS3.
- None of the above.
border-opacity:0.7;
Given a div element that needs to have a transparent red border, which of the following code samples will work in conjunction with the code above to accomplish the requirement?
Answers:
- border: 1px solid rgba(255, 0, 0, 0.7);
- border: 1px solid rgb(255, 0, 0, 0.7);
- border: 1px solid rgba(255, 255, 0, 0.7);
- border: 1px solid red; opacity: 0.7;
Answers:
- 1
- 5
- None
Answers:
- none
- normal
- alternate
- inherited
Answers:
- It is possible only when two separate styles are used, “background-image” and “gradient”, on an HTML tag.
- It is possible only when “background-image” is used.
- It is possible only when layered HTML tags are used, “background-image” and “gradient”.
- It is not possible to combine a background image and CSS3 gradients.
Answers:
- The default cursor will be displayed.
- No cursor will be displayed.
- A pointer cursor will be displayed.
- A text cursor will be displayed.
div[class^=”stronger”] { }
{
…
}
Answers:
- It applies the rule only on divs who belong to a class that begins with “stronger”.
- It applies the rule only on divs of class “stronger”.
- It applies the rule only on divs who belong to a class which end with “stronger”.
- It applies the rule only on divs who belong to a class which does not contain “stronger” in its name.
Answers:
- input:([!type=’text’])
- input:not([type=”text”])
- input:not([type!=”text”])
- input:([type!=’text’])
Answers:
- none
- left
- right
- top
@page rotated {size: landscape}
TABLE {page: rotated; page-break-before: right}
What will this code do?
Answers:
- It will put all tables on a right-hand side landscape page.
- It will rotate the page if the table is positioned at the right side.
- It will keep the table in the landscape position and rotate the page.
- None of the above
Answers:
- 1
- normal
- none
If a parent element display property is set to none, its children too will not be rendered.
Answers:
- True
- False
Answers:
- SVG supports only CSS filters.
- SVG supports CSS filters as well as ‘filter’ property of SVG
- SVG supports only ‘filter’ property of SVG
- SVG does not supports any filters
h2 { pause: 40s 60s }
Answers:
- pause-before will be set to 40 seconds and pause-after will be set to 60 seconds.
- pause-after will be set to 40 seconds and pause-before will be set to 60 seconds.
- pause-after and pause-before will be set to 40 seconds.
- pause-after and pause-before will be set to 60 seconds.
Answers:
- font-size
- font-variant
- font-weight
- line-height
Answers:
- condense
- normal
- semi-narrower
- expanded
- semi-expanded
Answers:
- order: “none”;
- order= “none”;
- order: none;
- order= none;
- None of these.
Answers:
- .mirror_text{ -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: “FlipH”; }
- .mirror_text{ Box-reflect; 20px right; }
- .mirror_text{ Box-reflect; 20px left; }
- .mirror_text{ -moz-transform: rotate(-180deg); -webkit-transform: rotate(-180deg); transform: rotate(-180deg); }
Answers:
- slow
- normal
- fast
- none
Answers:
- @-webkit-keyframes pulse #DemoGradient { 0% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(196,222,242)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } 50% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(222,252,255)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } 100% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(196,222,242)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } }
- #DemoGradient{ background: -webkit-linear-gradient(#C7D3DC,#5B798E); background: -moz-linear-gradient(#C7D3DC,#5B798E); background: -o-linear-gradient(#C7D3DC,#5B798E); background: linear-gradient(#C7D3DC,#5B798E); -webkit-transition: background 1s ease-out; -moz-transition: background 1s ease-out; -o-transition: background 1s ease-out; transition: background 1s ease-out; background-size:1px 200px; border-radius: 10px; border: 1px solid #839DB0; cursor:pointer; width: 150px; height: 100px; } #DemoGradient:Hover{ background-position:100px; }
- It is not possible to apply a gradient transition using only CSS3.
Answers:
- height:auto
- height:100%
- height:0
- max-height:100%
When trying to apply a CSS3 style to a label of a checked radio button like this:
….
<style>
label:checked { font-weight: bold; }
</style>
….
<input type=”radio” id=”rad” name=”radio”/>
<label for=”rad”>A Label</label>
This does not produce the desired effect.
Which of the following snippets will correct issue?
Answers:
- It is not possible to style.
- <input id=”rad” type=”radio” name=”rad”><label “rad”>A Label</label>
- input[type=”radio”]:checked+label{ font-weight: bold; }
- input[type=”radio”]:checked@label{ font-weight: bold; }
Answers:
- form input:not([type=”radio”], [type=”checkbox”]) { }
- input:not([type=”radio”]):not([type=”checkbox”]) { }
- input:not([type=”radio & checkbox”]) { }
- input:!([type=”radio”]) , input:!([type=”checkbox”]) { }
Answers:
- Yes
- No
Answers:
- There is no difference, both of them have the same results.
- display:inline-block; adds whitespace between the elements.
- float:left; collapses the parent element on itself.
- None of these.
Answers:
- 0 to 256
- 0 to 255
- -250 to 250
- -255 to 255
Answers:
- window
- tab
- none
- parent
- current
em { color: rgba(0,0,255,1) }
Answers:
- Opacity 1 with solid red color
- Opacity 0 with solid blue color
- Opacity 0 with solid red color
- Opacity 1 with solid blue color
- None of these
@font-face {
font-family: “calibriforh1”;
src: local(“calibri”), url(calibri.woff);
}
h1 { font-family: “calibriforh1”, arial, sans-serif; }
Answers:
- It’s for searching the user’s system for a “calibri” font, and if it does not exist, it will load the font from the server instead.
- It’s for searching the user’s system for a “calibri” font, and if it does not exist, it will load user’s system’s default font instead.
- It’s for loading the user’s system’s default font.
- None of these.
Answers:
- Using CSS transitions will slow down page upload and produce lag.
- The completion of a CSS transition generates a corresponding DOM event. An event is fired for each property that
- undergoes a transition. This allows a content developer to perform actions that synchronize with the completion of a transition.
- CSS transitions allow DOM events in CSS values to occur smoothly over a specified duration.
- None of these.
div {
display: none;
-webkit-transition: opacity 1s ease-out;
opacity: 0;
}
div.active {
opacity: 1;
display: block;
}
Answers:
- On active state the element is displayed.
- On active state the element’s opacity is changed to 1.
- On active state the element’s opacity is changed to 0.
- Nothing will be shown.
DIV { line-height: 1.2; font-size: 10pt }
Answers:
- DIV { line-height: 1.2em; font-size: 10pt }
- DIV { line-height: 12em; font-size: 10pt }
- DIV { line-height: 120%; font-size: 10pt }
- DIV { line-height: 20%; font-size: 10pt }
- DIV { line-height: 80%; font-size: 10pt }
p { margin: 3em 2em }
Answers:
- The top and the bottom margins will be 3em and the left and the right margins will be 2em.
- The top and the bottom margins will be 2em and the left and the right margins will be 3em.
- The top and the left margins will be 3em and the bottom and the right margins will be 2em.
- The top and the right margins will be 2em and the bottom and the left margins will be 3em.
Need to use attribute selector in css to change link on different color and image.
The following code is not working correctly:
<style>
a {
display: block;
height: 25px;
padding-left: 25px;
color:#333;
font: bold 15px Tahoma;
text-decoration: none;
}
a[href=’.pdf’] { background: red; }
</style>
…..
<a href=»/manual.pdf»>A PDF File</a>
Which of the following code snippets will correct issue?
Answers:
- a[href$=’.pdf’] { /*css*/ }
- a[href#=’.pdf’] { /*css*/ }
- a[href@=’.pdf’] { /*css*/ }
- a{href$=’.pdf’} [/*css*/ ]
Answers:
- div:nth-child(4), div:nth-child(8), div:nth-child(12), div:nth-child(16) { }
- div:nth-child(4n) { }
- div:nth-child(4n+4) { }
- div:nth-child(3n+4)
#parentdiv
{
width: 200px;
height: 400px;
vertical-align: middle;
}
#childdiv
{
width: 100px;
height: 50px;
}
Vertical Center
Answers:
- display:table-cell; for parentdiv and display:inline-block; for childdiv
- display:block; for parentdiv and display:inline-block; for childdiv
- display:inline-block; for parentdiv and display:table-cell; for childdiv
- display:inline-block; for parentdiv and display:inline-block; for childdiv
Lorem ipsum
Answers:
- . box-shadow: 0 0 8px 2px #888;
- border-shadow: 0 0 8px 2px #888;
- div-shadow: 8px 2px 0 0 #888;
- None of these
Answers:
- .No, CSS cannot be used for that purpose.
- Yes, it can be done using the number-format property.
- Yes, it can be done using the decimal property.
- None of these
<style>
.foo {
width:100px;
height:50px;
border-width:3px;
-webkit-border-image:
-webkit-gradient(linear, 0 0, 0 100%, from(black), to(red)) 1 100%;
-webkit-border-image:
-webkit-linear-gradient(black, red) 1 100%;
-o-border-image:
-o-linear-gradient(black, red)) 1 100%;
-moz-border-image:
-moz-linear-gradient(black, red) 1 100%;
}
</style>
<div class=»foo»>Lorem</div>
Answers:
- The text «Lorem» will be colored black-red.
- The div element will be colored black-red.
- The border of div element will be colored black-red.
- None of these
Answers:
- The background-clip property specifies the painting area of the background.
- The background-clip property is not supported in Internet Explorer 8 and earlier versions.
- The background-clip property is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and Safari.
- All are correct.
@font-face {
font-family: «calibriforh1»;
src: local(«calibri»), url(calibri.woff);
}
h1 { font-family: «calibriforh1», arial, sans-serif; }
Answers:
- It’s for searching the user’s system for a «calibri» font, and if it does not exist, it will load the font from the server instead.
- It’s for searching the user’s system for a «calibri» font, and if it does not exist, it will load user’s system’s default font instead.
- It’s for loading the user’s system’s default font.
- None of these.
Answers:
- div:nth-child(4), div:nth-child(8), div:nth-child(12), div:nth-child(16) { }
- div:nth-child(4n) { }
- div:nth-child(4n+4) { }
- div:nth-child(3n+4)
#parentdiv
{
width: 200px;
height: 400px;
vertical-align: middle;
}
#childdiv
{
width: 100px;
height: 50px;
<div id=»parentdiv»>
<div id=»childdiv»>Vertical Center</div>
</div>
Answers:
- display:table-cell; for parentdiv and display:inline-block; for childdiv
- display:block; for parentdiv and display:inline-block; for childdiv
- display:inline-block; for parentdiv and display:inline-block; for childdiv
- display:inline-block; for parentdiv and display:inline-block; for childdiv
Answers:
- .Finish strokes, flared or tapering ends, or actual serifed endings.
- Stroke endings that are plain without any flaring, cross stroke, or other ornamentation.
- Either join strokes or other cursive characteristics beyond those of italic typefaces.
- Primarily decorate the characters while still containing their representations.
Answers:
- div{
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
width:100px;
height:100px;
border:20px solid red;
background:green;
margin:10px;
}
div + div{
border:10px solid red;
} - @-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
#rotating img
{
-webkit-animation-name: rotate;
-webkit-animation-duration: 0.5s;
-webkit-animation-iteration-count: infinite;
animation-timing-function: linear;
-webkit-animation-timing-function: linear;
-moz-animation-timing-function: linear;
} - @-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
#rotating img
{
transition-timing-function: linear;
-webkit-transition-timing-function: linear;
-moz-transition-timing-function: linear;
}
Answers:
- Apply ‘float:none’ to the element you want to center.
- Apply ‘margin:0 auto’ to the element you want to center.
- Apply ‘text-align:center’ to the element you want to center.
- None of these.
Answers:
- Z-index only affects text elements.
- Z-index only used for pseudo-class elements.
- Z-index only affects positioned elements.
- Z-index only affects absolute positioned elements.
@font-face {
font-family: «DejaVu Sans»;
src: url(«fonts/DejaVuSans.ttf»);
}
@font-face {
font-family: «DejaVu Sans»;
src: url(«fonts/DejaVuSans-Bold.ttf»);
font-weight: bold;
}
@font-face {
font-family: «DejaVu Sans»;
src: url(«fonts/DejaVuSans-Oblique.ttf»);
font-style: italic, oblique;
}
@font-face {
font-family: «DejaVu Sans»;
src: url(«fonts/DejaVuSans-BoldOblique.ttf»);
font-weight: bold;
font-style: italic, oblique;
}
Answers:
- Font style is set to italic, oblique.
- Font-weight is set to bold;
- Font-family is set to DejaVu Sans
- Multiple @font-face rules added.
Answers:
- div{
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
width:100px;
height:100px;
border:20px solid red;
background:green;
margin:10px;
}
div + div{
border:10px solid red;
} - div{
width:100px;
height:100px;
border:20px solid red;
background:green;
margin:-10px;
}
div + div{
border:10px solid red;
} - div{
width:100px;
height:100px;
border:20px solid red;
background:green;
padding:-10px;
}
div + div{
border:10px solid red;
} - None of these.
Answers:
- «rem» is equal to «px».
- «rem» depends on the body’s font size.
- «rem» is independent from the body’s font size.
- «px» is the size of a pixel on a 96 DPI display, while «rem» is the size of a pixel at 72 DPI.
Answers:
- all 0 ease 0
- all 0
- none
- 0
Answers:
- By using border-collapse: collapse
- By using border-collapse: separate
- By removing border-collapse:
- None of above.
Answers:
- It’s cross-browser.
- It’s not cross-browser.
- It will work only for class selector.
- It’s not possible in css3.
Answers:
- A background image is needed.
- A background color is needed..
- Both a background image and a background color are needed.
- It not possible to add noise to a background using CSS3.
input[type=»radio»]:checked + label
{
background-color:#000;
}
Answers:
- Black background color apply on Radio button and label only if it is checked
- Black background color apply on Radio button and label
- Black background color apply on label only
- Black background color apply on checked label only
HTML:
CSS:
#nav a {
background-color: #FF0;
}
#nav a:hover {
background-color: #AD310B;
-webkit-transition: background-color 1000ms linear;
-moz-transition: background-color 1000ms linear;
-o-transition: background-color 1000ms linear;
-ms-transition: background-color 1000ms linear;
transition: background-color 1000ms linear;
}
What will happen when the link is hovered?
Answers:
- The link background will fade out.
- The link color will change to #AD310B.
- The link background will fade in and change his color to #AD310B.
- None of the above.
Answers:
- -webkit- and -moz- are vendor-specific prefixes and are not standard CSS3 properties.
- -webkit- and -moz- are standard CSS3 properties and are vendor-specific.
- -webkit- and -moz- are not standard CSS3 properties and not vendor-specific.
- None of these.
Answers:
- div{
-webkit-transform: rotate(-180deg);
-moz-transform: rotate(-180deg);
}
div{
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
} - div:before {
content:» «;
float:left;
background:url(../../image.png) no-repeat 0 0;
display:block;
} - div {
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: «FlipH»;
width: 32px;
height: 32px;
}
Answers:
- Style an element when a user mouses over it
- Style visited and unvisited links differently
- Style an element when it gets focus
- All
Answers:
- background-origin
- background-clip
- background-size
- All of the above
Answers:
- color: rgb(0, 191, 255) 0.5;
- color: rgb(0, 191, 255) 50;
- color: rgba(0, 191, 255, 0.5);
- color: rgba(0, 191, 255, 50);
“Pixel is a static measurement, while percent and EM are relative measurements.”
Answers:
- Yes
- No
Answers:
- transform: scale(2, .5); and transform: scaleX(2);, transform: scaleY(.5);
- transform: rotate(20deg); and transform: rotateX(20deg);
- transform: skew(20deg); transform: skewY(20deg);
- transform: translate(20px, 50px); and transform: translateX(50px);, transform: translateY(20px);
<style type=»“text/css”»>
#notification p { color: yellow; }
p.important { color: red; }
</style>
<div id=»notification»>
<p class=»important»>Hello, Frelancer!</p>
</div>
Answers:
- Yellow
- Red
Answers:
- 3 x 3
- 4 x 4
- 3 x 2
- 2 x 3
Answers:
- Padding is the space between content and the border of element.
- Padding is the space between content and the other element.
- Margin is the space outside of border.
- Margin is the space inside of element.
Answers:
- color: rgb(0, 191, 255);
- color: #00bfff;
- color: DeepSkyBlue;
- color: hsl(195, 100%, 50%);
- None of these
Answers:
- your div.awesome
- .your div#awesome
- #your div.awesome
- #your div#awesome
Answers:
- translate
- rotate
- scale
- matrix
- All of these properties are exists
Answers:
- Max-width
- Aspect-ratio
- Background-color
- Orientation
- Color
Answers:
- div {-webkit-column-count: 3; }
- div {-moz-column-count: 3; }
- div {column-count: 3; }
- All of the above
columns: 2 auto;
Answers:
- column-width: auto;
- column-count: 2
- Both 1 and 2
- None
Answers:
- absolute
- fixed
- relative
- static
- All of these values are valid
Answers:
- div> p
- div + p
- div ~ p
- p:after<div>
Answers:
- :active
- :hover
- :text
- :out-of-range
Answers:
- Opacity sets the opacity value for an element and all of its children.
- RGBA sets the opacity value only for a single declaration.
- Both 1 and 2
- None of the above
Answers:
- .gradient {
background-image:
linear-gradient(
to bottom right,
red, #f06d06
);
} - .gradient {
background-image:
linear-gradient(
to top left,
red, #f06d06
);
} - .gradient {
background-image:
linear-gradient(
to right,
red, #f06d06
);
} - .gradient {
background-image:
linear-gradient(
to top right,
red, #f06d06
);
}
Answers:
- 2
- 3
- 1
- 4
Check all that apply.
Answers:
- transition
- transition-delay
- transition-duration
- transition-timing-function
- transition-property
<p class=»“styled-red”»>Hello!</p>.
Answers:
- p[class*=“styled”]
- p[class^=“styled”]
- p[class&=“styled”]
- p[class#=“styled”]
Answers:
- text-transform: capitalize;
- text-transform: upcase;
- text-transform: uppercase;
font-family: Georgia;
line-height: 1.4;
font-weight: normal;
font-stretch: normal;
font-variant: small-caps;
font-size: 16px;
Answers:
- font: small-caps normal normal 16px/1.4 Georgia;
- font: normal small-caps normal 16px/1.4 Georgia;
- font: 16px/1.4 Georgia normal small-caps normal;
- font: Georgia 16px/1.4 normal small-caps normal;
Answers:
- a[href^=»https»]
- p:empty
- input:file
- p:last-of-type
Answers:
- Skews by 2 in x-direction and scales horizontally 3 times
- Scales horizontally 2 times and skews by 3 in x-direction
- Skews by 2 in y-direction and scales horizontally 3 times
- Scales horizontally 2 times and skews by 3 in y-direction
Answers:
- transform: rotate3d(0, 30, 30)
- transform: rotate3d(0, 30, 1, 30)
- transform: rotate3d(0, 1, 1, 30)
- transform: rotate3d(1, 1, 1, 30)
Answers:
- whether element have sub element or not.
- whether element have only 2 sub elements or not
- whether element is of particular type or not
- None of These
Answers:
- #black{color: #000000;}
- h1 #black{color: #000000;}
- #black h2{color: #000000;}
- All of the above
Answers:
- :link, :visited, :hover, :active
- :link, :visit, :hover, :active
- :link, :visited, :over, :active
- :link, :visited, :hover, :active, :inactive
Answers:
- Embedded CSS with <style>element
- Inline CSS with style attribute.
- External CSS with <link> element.
- All of the above
Answers:
- repeat-x
- repeat-y
- repeat-xy
- no-repeat
Answers:
- @font
- @font-face
- @new-font
- @custom-font
Answers:
- Generates grid with 2 columns
- Creates a grid item on second column
- Starts grid item from second column
- Creates a 2×2 grid
div.wrapper h2
font-size: 18px;
margin-top: 0;
Answers:
- Type 2 Heading inside Element div of class wrapper.
- Type 2 Heading inside Element div with id wrapper.
- Type 2 Heading inside Element div of any class
- None Of These
Answers:
- p { font-size: 1 ex; }
- p { font-size: 0ex; }
- p { font-size: 1; }
- p { font-size: 1ex; }
- p { font-size: 0; }
Answers:
- list-style-type
- list-style-layout
- list-type-style
- list-type
Answers:
- @media (min-width: 800px) {
body { background: white; }
}
@media (min-width: 401px , max-width: 799px) {
body { background: black; }
}
@media (max-width: 400px) {
body { background: blue; }
} - @media (min-width: 800px) {
body { background: white; }
}
@media (min-width: 401px max-width: 799px) {
body { background: black; }
}
@media (max-width: 400px) {
body { background: blue; }
} - @media (min-width: 800px) {
body { background: white; }
}
@media (min-width: 401px) and (max-width: 799px) {
body { background: black; }
}
@media (max-width: 400px) {
body { background: blue; }
} - @media (min-width: 800px) {
body { background: white; }
}
@media (min-width: 401px) (max-width: 799px) {
body { background: black; }
}
@media (max width: 400px) {
body { background: blue; }
}
Answers:
- selector:pseudo-class{property: value}
- selector.class:pseudo-class{property:value}
- Both A and B
- None of the above
Answers:
- @important
- #important
- !important
- !first
Answers:
- Top and bottom margin will be 10px and left and right margin will be 2% of the total width.
- Left and right margin will be 10px and top and bottom margin will be 2% of the total height
- Top margin will be 10px and other margins will be 2% of the total width
- Left margin will be 10px and other margins will be 2% of the total width
Answers:
- border-layout
- border-decoration
- border-style
- border-weight
Answers:
- Floating an element allows you to take that element out of normal flow and position it to the far left or right of a containing box
- The Floated element becomes a block-level element around which other content can flow
- Floating an element allows you to add that element in of normal flow and position it to the far left or right of a containing Div
- Floating and element in relation to the browser window, as opposed to the containing element
Answers:
- column-rule
- column-rule-count
- column-width
- column-span
Answers:
- Spacing
- Marking
- Padding
- Content-border
Answers:
- background-size: 80px 60px;
- bg-dimensions: 80px 60px;
- background-proportion: 80px 60px;
- alpha-effect: bg-resize 80px 60px;
Answers:
- selected
- div
- element
- property
Answers:
- Letter
- Line
- Page
- All of the above
Answers:
- @font-face
{
font-family: MyFont;
src: url(myfont.ttf);
}
p { font-family: «MyFont», arial, sans-serif; } - @font-face
{
font-family: MyFont;
src: url(myfont.ttf);
}
p { font-family: «MyFont» }; - @font-face
{
src: url(myfont.ttf);
}
p { font-family: «MyFont», arial, sans-serif; } - @font-face
{
font-family: MyFont;
}
p { font-family: «MyFont», arial, sans-serif; }
Answers:
- rotateX()
- rotateY()
- rotateZ()
- None of the above
Answers:
- rotateX()
- rotateY()
- rotateZ()
- None of the above
Answers:
- border-top-width: thin;
border-right-width: small;
border-left-width: medium; - border-top-width: thin;
border-right-width: medium;
border-bottom-width: thin;
border-left-width: medium; - border-right-width: medium;
border-bottom-width: thin;
border-left-width: high; - border-top-width: thin;
border-right-height: medium;
border-bottom-height: thin;
border-left width: medium;
Answers:
- list-spacing
- marker-spacing
- marker-offset
- list-offset
Answers:
- Pixel
- Meter
- Inch
- Em
Answers:
- 700×600
- 800×600
- 950×600
- 1020×600
Answers:
- .border:hover
{
box-shadow: inset 0 0 0 25px #53a7ea;
} - .border:hover
{
box-shadow: inset 0 0 0 25 #53a7ea;
} - .border:hover
{
box-shadow: inset 0 0 0 color;
} - .border:hover
{
box-shadow: inset 0 0 0 25px effect;
}
Answers:
- background: linear-gradient(direction, color-stop1, color-stop2, …);
- background: linear-gradient(angle, color-stop1, color-stop2);
- background: radial-gradient(shape size at position, start-color, …, last-color);
- None of the above
Answers:
- -moz-opacity:x
- filter: alpha(opacity=x)
- Both of the above
- None of the above
Answers:
- background-image: url(bg1.png), url(bg2.png);
background-repeat: repeat, repeat-y;
background-attachment: fixed, fixed;
background-position: right bottom, top left; - background-image: url(bg1.png), url(bg2.png);
background-repeat: no-repeat, repeat-y;
background-attachment: fixed, fixed;
background-position: right bottom, top left; - background-image: url(bg1.png), url(bg2.png);
background-repeat: no-repeat;
background-attachment: fixed, fixed;
background-position: right bottom, top left; - background-image: url(bg1.png), url(bg2.png);
background: no-repeat, repeat-y;
background-attachment: fixed, fixed;
background-position: right bottom, top left;
Answers:
- matrix()
- translate()
- scale()
- rotateX() , rotateY() , rotateZ()
Answers:
- :visited
- :clicked
- :focus
- :link
Answers:
- Quotation Mark
- Round Brackets
- Triangular Brackets
- Curly Braces
Answers:
- html
- layout
- css
- web
Answers:
- page
- browser
- div
- All of the above
Answers:
- A block-level element always starts on a new line and takes up the full width available.
- An inline element does not start on a new line and only takes up as much width as necessary.
- A block-level element always starts on a new line and only takes up as much width as necessary.
- A block-level element can be placed into inline elements.
Answers:
- A block-level element always starts on a new line and takes up the full width available.
- An inline element does not start on a new line and only takes up as much width as necessary.
- A block-level element always starts on a new line and only takes up as much width as necessary.
- A block-level element can be placed into inline elements.
Answers:
- .float-wrapper { margin-bottom:0; }
- .float-wrapper { margin-bottom:none; }
- .float-wrapper { margin-bottom:1; }
- .float-wrapper { margin-bottom:5; }
Answers:
- Alpha
- Aqua
- About
- Approximate
Answers:
- empty-cells : show | hide
- empty-cells : inherit | show | remove
- empty-cells : inherit | show | hide
- empty-cells : inherit | show | none
No comments:
Post a Comment