MCQs > IT & Programming > CSS MCQs > Basic CSS MCQs

Basic CSS MCQ

1. A rotary mower cuts grass when the whirling mower blade _________ the grass.

Answer

Correct Answer: Impacts

Note: This Question is unanswered, help us to find answer for this one

2. A ____ contains the web page content that appears on the screen.

Answer

Correct Answer: Visual viewport

Note: This Question is unanswered, help us to find answer for this one

3. A(n) ____ attack is a hacker using a personal computer to break into a system.

Answer

Correct Answer: Direct.

Note: This Question is unanswered, help us to find answer for this one

4. ____ uses media groups to describe how different media devices render content.

Answer

Correct Answer: CSS

Note: This Question is unanswered, help us to find answer for this one

5. According to the css rules of precedence, ______ styles override ________ styles.

Answer

Correct Answer: Inline, external

Note: This Question is unanswered, help us to find answer for this one

6. Use the __________ property to align text within an element.

Answer

Correct Answer: Text-align

Note: This Question is unanswered, help us to find answer for this one

7. Which choice uses the correct syntax for adding a hover pseudo class to element ?

Answer

Correct Answer: A:hover {...}

Note: This Question is unanswered, help us to find answer for this one

8. You want to move an element up 100px. Which CSS property would you use?

Answer

Correct Answer: Transform: translateY(-100px)

Note: This Question is unanswered, help us to find answer for this one

9. Which style rule would you apply to set the background image to display the contents of the wood.png file?

Answer

Correct Answer: Background-image: url('wood.png');

Note: This Question is unanswered, help us to find answer for this one

10. To rotate an object 30 degrees counterclockwise, which style property would you apply?

Answer

Correct Answer: Transform: rotate(-30deg);

Note: This Question is unanswered, help us to find answer for this one

11. To make the font size of an element one size smaller than the font size of the element's container, which style property would you apply?

Answer

Correct Answer: Font-size: smaller;

Note: This Question is unanswered, help us to find answer for this one

12. Which five style features are associated with the box model?

Answer

Correct Answer: Margin, padding, border, width, height

Note: This Question is unanswered, help us to find answer for this one

13. Which statement is not true?

Answer

Correct Answer: When two selectors apply to the same element, the one with lower specificity wins.

Note: This Question is unanswered, help us to find answer for this one

14. Which selector is used to select the paragraph element that is a direct descendent of section?

Answer

Correct Answer: Section > p

Note: This Question is unanswered, help us to find answer for this one

15. Which answer is an example of a type selector (also sometimes referred to as an element selector)?

Answer

Correct Answer: Header {...}

Note: This Question is unanswered, help us to find answer for this one

16. Pseudo-classes are used to _.

Answer

Correct Answer: Style the state of the selected element

Note: This Question is unanswered, help us to find answer for this one

17. How can you create a semi-transparent background color?

Answer

Correct Answer: Background-color: rgba(0, 0, 0, 0.5);

Note: This Question is unanswered, help us to find answer for this one

18. What is the correct selector for targeting all text inputs that are not disabled?

Answer

Correct Answer: input[type="text"]:not([disabled]) {...}

Note: This Question is unanswered, help us to find answer for this one

19. Which property is used to create a drop shadow effect on an HTML element?

Answer

Correct Answer: Box-shadow

Note: This Question is unanswered, help us to find answer for this one

20. Which style rule would make the image 50% smaller during a hover?

Answer

Correct Answer: Img#photo:hover {transform: scale(0.5);}

Note: This Question is unanswered, help us to find answer for this one

21. How will the grid items display? grid-template-columns: 2fr 1fr;

Answer

Correct Answer: The first column is twice as wide as the second column and will fit proportionally within the grid container

Note: This Question is unanswered, help us to find answer for this one

22. What is the effect of this style? background-position: 10% 50%;

Answer

Correct Answer: The background image is placed 10% from the left and 50% from the top of its container

Note: This Question is unanswered, help us to find answer for this one

23. What is the correct syntax for changing the cursor from an arrow to a pointing hand when it interacts with a named element?

Answer

Correct Answer: .element {cursor: pointer;}

Note: This Question is unanswered, help us to find answer for this one

24. What property is used to adjust the space between text characters?

Answer

Correct Answer: Letter-spacing

Note: This Question is unanswered, help us to find answer for this one

25. How do you add Google fonts to your project?

Answer

Correct Answer: By using an HTML link element referring to a Google-provided CSS

Note: This Question is unanswered, help us to find answer for this one

26. What is one disadvantage of using a web font service?

Answer

Correct Answer: It is not always a free service.

Note: This Question is unanswered, help us to find answer for this one

27. You want your styling to be based on a font stack consisting of three fonts. Where should the generic font for your font family be specified?

Answer

Correct Answer: It should be the last one on the list.

Note: This Question is unanswered, help us to find answer for this one

28. What is an alternate way to define the following CSS rule? font-weight: bold;

Answer

Correct Answer: Font-weight: 700;

Note: This Question is unanswered, help us to find answer for this one

29. In the following CSS code, 'h1' is the ___, while 'color' is the ___. h1 { color: red;}

Answer

Correct Answer: Selector; property

Note: This Question is unanswered, help us to find answer for this one

30. A universal selector is specified using a(n) ___.

Answer

Correct Answer: "*" character

Note: This Question is unanswered, help us to find answer for this one

31. Which CSS selector can you use to select all elements on your page associated with the two classes header and clear?

Answer

Correct Answer: .header.clear {}

Note: This Question is unanswered, help us to find answer for this one

32. Which color will look the brightest on your screen, assuming the background is white?

Answer

Correct Answer: Background-color: rgba(170,170,170,0.2);

Note: This Question is unanswered, help us to find answer for this one

33. You can use the ___ pseudo-class to set a different color on a link if it was clicked on.

Answer

Correct Answer: A:visited

Note: This Question is unanswered, help us to find answer for this one

34. Which CSS keyword can you use to override standard source order and specificity rules?

Answer

Correct Answer: !important

Note: This Question is unanswered, help us to find answer for this one

35. Which W3C status code represents a CSS specification that is fully implemented by modern browsers?

Answer

Correct Answer: Recommendation

Note: This Question is unanswered, help us to find answer for this one

36. What is an advantage of using inline CSS?

Answer

Correct Answer: It is easier to add multiple styles through it.

Note: This Question is unanswered, help us to find answer for this one

37. What is the recommended name you should give the folder that holds your project's images?

Answer

Correct Answer: Images

Note: This Question is unanswered, help us to find answer for this one

38. While HTML controls document structure, CSS controls ___.

Answer

Correct Answer: Content appearance

Note: This Question is unanswered, help us to find answer for this one

39. In Chrome's Developer Tools view, where are the default styles listed?

Answer

Correct Answer: Under the User Agent Stylesheet section on the right

Note: This Question is unanswered, help us to find answer for this one

40. You have a large image that needs to fit into a 400 x 200 pixel area. What should you resize the image to if your users are using Retina displays?

Answer

Correct Answer: 800 x 400 pixels

Note: This Question is unanswered, help us to find answer for this one

41. When would you use the @font-face method?

Answer

Correct Answer: To load custom fonts into stylesheet

Note: This Question is unanswered, help us to find answer for this one

42. Which choice is not valid value for the font-style property?

Answer

Correct Answer: None

Note: This Question is unanswered, help us to find answer for this one

43. Which statement is true of the single colon (:) or double colon (::) notations for pseudo-elements-for example, ::before and :before?

Answer

Correct Answer: In CSS3, the double 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.

Note: This Question is unanswered, help us to find answer for this one

44. What is the ::placeholder pseudo-element used for?

Answer

Correct Answer: It is used to format the appearance of placeholder text within a form control.

Note: This Question is unanswered, help us to find answer for this one

45. Which code would you use to absolutely position an element of the logo class?

Answer

Correct Answer: .logo { position: absolute; left: 100px; top: 150px; }

Note: This Question is unanswered, help us to find answer for this one

47. The calc() CSS function is often used for calculating relative values. In the example below, what is the specified margin-left value? .example { margin-left: calc(5% + 5px);}

Answer

Correct Answer: The left margin value is equal to 5% of its parents element's width plus 5px

Note: This Question is unanswered, help us to find answer for this one

48. Which style places an element at a fixed location within its container?

Answer

Correct Answer: Position: absolute;

Note: This Question is unanswered, help us to find answer for this one

49. What is not a valid way of declaring a padding value of 10 pixels on the top and bottom, and 0 pixels on the left and right?

Answer

Correct Answer: Padding: 10px 10px 0px 0px;

Note: This Question is unanswered, help us to find answer for this one

50. What is the difference between the margin and padding properties?

Answer

Correct Answer: Margin adds space around an element; padding adds space inside of an element.

Note: This Question is unanswered, help us to find answer for this one

51. What is not true about class selectors?

Answer

Correct Answer: Only one class value can be assigned to an element.

Note: This Question is unanswered, help us to find answer for this one

52. Which selector would select only internal links within the current page?

Answer

Correct Answer: a[href^="#"]

Note: This Question is unanswered, help us to find answer for this one

53. If the width of the container is 500 pixels, what would the width of the three columns be in this layout? .grid { display: grid; grid-template-columns: 50px 1fr 2fr; }

Answer

Correct Answer: 50px, 150px, 300px

Note: This Question is unanswered, help us to find answer for this one

54. The values for the font-weight property can be keywords or numbers. For each numbered value below, what is the associated keyword? font-weight: 400; font-weight: 700;

Answer

Correct Answer: Normal; bold

Note: This Question is unanswered, help us to find answer for this one

55. Which statement regarding icon fonts is true?

Answer

Correct Answer: Icon fonts can be styled with typography-related properties such as font-size and color.

Note: This Question is unanswered, help us to find answer for this one

56. What is the difference between display:none and visibility:hidden?

Answer

Correct Answer: Display:none hides the element from view and removes it from the normal flow of the document. visibility:hidden will hide the element but maintains the space it previously occupied.

Note: This Question is unanswered, help us to find answer for this one

57. There are many advantages to using icon fonts. What is one of those advantages?

Answer

Correct Answer: Icon fonts can be styled with typography related properties such as font-size and color.

Note: This Question is unanswered, help us to find answer for this one

58. Which type of declaration will take precedence?

Answer

Correct Answer: Important declarations in user stylesheets

Note: This Question is unanswered, help us to find answer for this one

59. When using the Flexbox method, what property and value is used to display flex items in a column?

Answer

Correct Answer: Flex-flow: column; or flex-direction: column

Note: This Question is unanswered, help us to find answer for this one

60. What is the vertical gap between the two elements below?
Div 1
Div 2

Answer

Correct Answer: 2rem

Note: This Question is unanswered, help us to find answer for this one

61. CSS transform properties are used to change the shape and position of the selected objects. The transform-origin property specifies the location of the element's transformation origin. By default, what is the location of the origin?

Answer

Correct Answer: The top left corner of the element

Note: This Question is unanswered, help us to find answer for this one

62. Which choice would give a block element rounded corners?

Answer

Correct Answer: Border-radius: 10px;

Note: This Question is unanswered, help us to find answer for this one

63. What is the rem unit based on?

Answer

Correct Answer: The rem unit is relative to the font-size of the root element of the page.

Note: This Question is unanswered, help us to find answer for this one

64. How would you make the first letter of every paragraph on the page red?

Answer

Correct Answer: P::first-letter { color: red; }

Note: This Question is unanswered, help us to find answer for this one

65. When using media queries, media types are used to target a device category. Which choice lists current valid media types?

Answer

Correct Answer: Print, screen, speech

Note: This Question is unanswered, help us to find answer for this one

66. By default, a background image will repeat _

Answer

Correct Answer: Indefinitely, vertically, and horizontally

Note: This Question is unanswered, help us to find answer for this one

67. When using position: fixed, what will the element always be positioned relative to?

Answer

Correct Answer: The viewport

Note: This Question is unanswered, help us to find answer for this one

68. To change the color of an SVG using CSS, which property is used?

Answer

Correct Answer: Use fill to set the color inside the object and stroke to set the color of the border.

Note: This Question is unanswered, help us to find answer for this one

69. In the example below, when will the color pink be applied to the anchor element? a:active { color: pink;}

Answer

Correct Answer: The color of the link will display as pink while the link is being clicked but before the mouse click is released.

Note: This Question is unanswered, help us to find answer for this one

70. Which of the following is true of the SVG image format? (Alternative: Which statement about the SVG image format is true?)

Answer

Correct Answer: SVGs can be created as a vector graphic or coded using SVG specific elements such as , , and .

Note: This Question is unanswered, help us to find answer for this one

71. What is the difference between the following line-height settings? line-height: 20px; line-height: 2;

Answer

Correct Answer: The value of 20px will set the line-height to 20px. The value of 2 will set the line-height to twice the size of the corresponding font-size value.

Note: This Question is unanswered, help us to find answer for this one

72. When elements overlap, they are ordered on the z-axis (i.e., which element covers another). The z-index property can be used to specify the z-order of overlapping elements. Which set of statements about the z-index property are true?

Answer

Correct Answer: Larger z-index values appear on top of elements with a lower z-index value. Negative and positive numbers can be used. z-index can only be used on positioned elements.

Note: This Question is unanswered, help us to find answer for this one

73. There are many properties that can be used to align elements and create page layouts such as float, position, flexbox and grid. Of these four properties, which one should be used to align a global navigation bar which stays fixed at the top of the page?

Answer

Correct Answer: Position

Note: This Question is unanswered, help us to find answer for this one

74. Three of these choices are true about class selectors. Which is NOT true?

Answer

Correct Answer: Classes can be used multiple times per page but not within the same element.

Note: This Question is unanswered, help us to find answer for this one

75. What is the line-height property primarily used for?

Answer

Correct Answer: To control the height of the space between two lines of content

Note: This Question is unanswered, help us to find answer for this one

76. When adding transparency styles, what is the difference between using the opacity property versus the background property with an rgba() value?

Answer

Correct Answer: Opacity specifies the level of transparency of an element, including its content. Background with an rgba() value applies transparency to the background color only.

Note: This Question is unanswered, help us to find answer for this one

77. CSS grid and flexbox are now becoming a more popular way to create page layouts. However, floats are still commonly used, especially when working with an older code base, or if you need to support older browser version. What are two valid techniques used to clear floats?

Answer

Correct Answer: Use the "clearfix hack" on the parent element or use the overflow property with a value other than "visible."

Note: This Question is unanswered, help us to find answer for this one

79. An embedded style sheet includes the style sheet within the _____ tags of the html document.

Answer

Correct Answer: and

Note: This Question is unanswered, help us to find answer for this one

80. You can specify font-weight using numerical values from ____.

Answer

Correct Answer: 100 to 900

Note: This Question is unanswered, help us to find answer for this one

81. A function prototype is ____

Answer

Correct Answer: A declaration, but not a definition

Note: This Question is unanswered, help us to find answer for this one

82. The _____ separates the padding and the margin of a block element.

Answer

Correct Answer: Border

Note: This Question is unanswered, help us to find answer for this one

83. The number of colors a monitor can display is referred to as ____

Answer

Correct Answer: Color depth

Note: This Question is unanswered, help us to find answer for this one

84. If you enter only one value for border-radius properly, that radius is applied to ____ corner(s).

Answer

Correct Answer: Four

Note: This Question is unanswered, help us to find answer for this one

85. Css lets you specify the exact position of an element on a web page using the ____ property.

Answer

Correct Answer: Position

Note: This Question is unanswered, help us to find answer for this one

86. A valid value for the font-size property is any of the following except ____.

Answer

Correct Answer: Hexadecimal value

Note: This Question is unanswered, help us to find answer for this one

87. A style ____ is a series of rules that defines the style for a web page or an entire web site.

Answer

Correct Answer: Style sheet

Note: This Question is unanswered, help us to find answer for this one

88. A layout for a mobile device is typically based on a _____ grid.

Answer

Correct Answer: 1-column

Note: This Question is unanswered, help us to find answer for this one

89. A _____ is a rule that defines the appearance of an element on a webpage.

Answer

Correct Answer: Styl

Note: This Question is unanswered, help us to find answer for this one

90. A ____ is the fundamental unit in css measurements.

Answer

Correct Answer: CSS pixel

Note: This Question is unanswered, help us to find answer for this one

91. How will you display text as a superscript?


Answer

Correct Answer: vertical-align: super

Note: This Question is unanswered, help us to find answer for this one

92. Paged media differ from continuous media in that the content of the document is divided into one or more pages. When you set the dimensions, which of the following will be applied?



Answer

Correct Answer: The dimensions of the page area are the dimensions of the page box minus the margin area.

Note: This Question is unanswered, help us to find answer for this one

93. Which of the following values are correct for font-style?


Answer

Correct Answer: normal, italic, oblique

Note: This Question is unanswered, help us to find answer for this one

94. The font-family property is used to specify a:


Answer

Correct Answer: family name and/or generic family<br>

Note: This Question is unanswered, help us to find answer for this one

95. You want to define the same media style for both print and screen media. Which of the following is the correct structure for the style?


Answer

Correct Answer: @media screen, print {&nbsp;&nbsp;span.med{font-weight:bold}&nbsp;&nbsp;}

Note: This Question is unanswered, help us to find answer for this one

96. Read the following code:

BODY {
background: white url("bar.gif");
background-repeat: repeat-y;
background-position: center;
}

What will be the output of this code?


Answer

Correct Answer: Image bar.gif will be tiled vertically in the background in the center of the page.

Note: This Question is unanswered, help us to find answer for this one

97. The font "Times New Roman" has an aspect value of 0.46. What do you understand from this?


Answer

Correct Answer: When font size is set to 100pt, the height of the letter 'x' will be 46pt

Note: This Question is unanswered, help us to find answer for this one

98. Which of the following is not a correct keyword value for the display property?


Answer

Correct Answer: expanded

Note: This Question is unanswered, help us to find answer for this one

99. which of the following properties specifies the minimum number of lines of a paragraph that must be left at the bottom of a page?



Answer

Correct Answer: orphans

Note: This Question is unanswered, help us to find answer for this one

100. Read the following statements:

Statement 1:Vertical margins between a floated box and any other box do not collapse.
Statement 2:Margins of absolutely and relatively positioned boxes collapse.

Which of the following is correct?



Answer

Correct Answer: Statement 1 is correct but statement 2 is incorrect

Note: This Question is unanswered, help us to find answer for this one

101.

How is it possible to simplify these styles?

font-family: Georgia;

line-height: 1.4;

font-weight: normal;

font-stretch: normal;

font-variant: small-caps;

font-size: 16px;


Answer

Correct Answer:

font: normal small-caps normal 16px/1.4 Georgia;


Note: This Question is unanswered, help us to find answer for this one

102. Which of the following are valid media features supported in media query? Check all that apply.

Answer

Correct Answer: color-index
aspect-ratio
orientation
color

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

103. Which of the following is not a property prefix?

Answer

Correct Answer: -opera-

Note: This Question is unanswered, help us to find answer for this one

104. Which of the following statements are true? (Check all that apply)

Answer

Correct Answer: Padding is the space between content and the border of element.
Margin is the space outside of border.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

105.

In CSS tables, the possible values for the caption-side property can have the following values.

Answer

Correct Answer: A. top, bottom, left or right

Note: This Question is unanswered, help us to find answer for this one

106.

What is the correct way to select every 4th paragraph?

Answer

Correct Answer: p:nth-of-type(4n)

Note: This Question is unanswered, help us to find answer for this one

107.

Which of the following are multi-column properties? (choose all that apply)

Answer

Correct Answer: column-rule

Note: This Question is unanswered, help us to find answer for this one

108.

How can you define custom fonts?

Answer

Correct Answer: @font-face { font-family: Custom-Form; src: url(custom_font.woff); }

Note: This Question is unanswered, help us to find answer for this one

109.

How can you resize a background image using CSS3?

Answer

Correct Answer: background-size: 80px 60px;

Note: This Question is unanswered, help us to find answer for this one

110.

The ......................... property allows you to specify the distance between the list and the text relating to the list.

Answer

Correct Answer: C. marker-offset

Note: This Question is unanswered, help us to find answer for this one

111.

You can set a border-box for all Elements using the following code?

Answer

Correct Answer: * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }

Note: This Question is unanswered, help us to find answer for this one

112.

The following Style is applied to - div.wrapper h2 { font-size: 18px; margin-top: 0; }

Answer

Correct Answer: Type 2 Heading inside Element div of class wrapper.

Note: This Question is unanswered, help us to find answer for this one

113.

Which of the following is correct CSS syntex for using font property?

Answer

Correct Answer: B. <p style="font-style: italic font-weight: bold font-size: 15px;"> ................... </p>

Note: This Question is unanswered, help us to find answer for this one

114.

Using the following code how can you remove the bottom margin from .float-wrapper?

Answer

Correct Answer: .float-wrapper { margin-bottom:0; }

Note: This Question is unanswered, help us to find answer for this one

115.

Which of these selectors are right for this paragraph? Hello!

Answer

Correct Answer: p[class^=“styled”]

Note: This Question is unanswered, help us to find answer for this one

116.

How to set a grid element in CSS3?

Answer

Correct Answer: display: grid;

Note: This Question is unanswered, help us to find answer for this one

117.

State whether the statement is/are True. i) font-family property is used to change the face of a font. ii) font-variant property is used to create small-caps effects.

Answer

Correct Answer: C. i-True, ii-True

Note: This Question is unanswered, help us to find answer for this one

118.

Which of these values are not valid for position property?

Answer

Correct Answer: All of these values are valid

Note: This Question is unanswered, help us to find answer for this one

119.

Which of the following is NOT correct?

Answer

Correct Answer: The a in RBGa stands for alpha.

Note: This Question is unanswered, help us to find answer for this one

120.

How do you set opacity of background-color to 50%?

Answer

Correct Answer: background-color: rgba(0, 191, 255, 0.5);

Note: This Question is unanswered, help us to find answer for this one

121.

Which property specifies the stack order of an element?

Answer

Correct Answer: z-index

Note: This Question is unanswered, help us to find answer for this one

122.

Which of the following are valid media types for media query? Check all that apply.

Answer

Correct Answer: all
print
screen

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

123.

What does the background-origin property specifies?

Answer

Correct Answer: allows you to add multiple background images for an element.

Note: This Question is unanswered, help us to find answer for this one

124.

What does the CSS3 style grid-column-start: 2; does?

Answer

Correct Answer: Starts grid item from second column

Note: This Question is unanswered, help us to find answer for this one

125.

Which of the following is NOT a valid font descriptor?

Answer

Correct Answer: Unicode

Note: This Question is unanswered, help us to find answer for this one

126.

Which of the following is NOT a valid media feature supported in media query?

Answer

Correct Answer: Background-color

Note: This Question is unanswered, help us to find answer for this one

127.

Which of the following is the correct way to use border property?

Answer

Correct Answer: border: 5px solid red;

Note: This Question is unanswered, help us to find answer for this one

128.

Which of the following is valid for grid-column-start: 3 ?

Answer

Correct Answer: Starts grid item from third column

Note: This Question is unanswered, help us to find answer for this one

129.

What are the Full-length Properties?

Answer

Correct Answer: border-top-width: thin; border-right-height: medium; border-bottom-height: thin; border-left width: medium;

Note: This Question is unanswered, help us to find answer for this one

130.

Which of the given css code satisfies the following? Selects all elements that are placed immediately after a element.

Answer

Correct Answer: div + p

Note: This Question is unanswered, help us to find answer for this one

131.

What does a pseudo-class represents?

Answer

Correct Answer: Dynamic Events

Note: This Question is unanswered, help us to find answer for this one

132.

Which of the following selector is used to specify a style for a single, unique element?

Answer

Correct Answer: Id

Note: This Question is unanswered, help us to find answer for this one

133.

What is right way to transform text to uppercase?

Answer

Correct Answer: text-transform: uppercase;

Note: This Question is unanswered, help us to find answer for this one

134.

Which property can be used to increase or decrease the space between words?

Answer

Correct Answer: Word-spacing

Note: This Question is unanswered, help us to find answer for this one

135.

Which of the following are correct about Web fonts? Check all that apply.

Answer

Correct Answer: Both of the above

Note: This Question is unanswered, help us to find answer for this one

136.

Which of the following css property will specify the gap between the columns?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

137.

How do you make each word in a text start with a capital letter?

Answer

Correct Answer: text-transform:capitalize

Note: This Question is unanswered, help us to find answer for this one

138.

Which of the following is the correct way to add multiple background images to an element?

Answer

Correct Answer: Both 2 and 3

Note: This Question is unanswered, help us to find answer for this one

139.

In descendant selector, style is applied to element based on ____ .

Answer

Correct Answer: whether element have sub element or not.

Note: This Question is unanswered, help us to find answer for this one

140.

Which of the following is NOT a valid 3D transform method?

Answer

Correct Answer: perspective3d()

Note: This Question is unanswered, help us to find answer for this one

141.

The box model in CSS is made up of :

Answer

Correct Answer: Margin, border, padding, content

Note: This Question is unanswered, help us to find answer for this one

142.

Which of the following properties can be used to add shadow to elements?

Answer

Correct Answer: Both 1 and 2

Note: This Question is unanswered, help us to find answer for this one

143.

Which of the following is NOT a valid 2D transformation method?

Answer

Correct Answer: rotateX()

Note: This Question is unanswered, help us to find answer for this one

144.

Which of the following are true about Flexible Box? Check all that apply.

Answer

Correct Answer: Flexbox consists of flex containers and flex items.
Inside a flex container there is one or more flex items.
The align-items property vertically aligns the flexible container's items when the items do not use all available space on the cross-axis.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

145.

Which of the following code is invalid for Font Size?

Answer

Correct Answer: p { font-size: 1 ex; }

Note: This Question is unanswered, help us to find answer for this one

146.

Which of the following are valid selectors? Check all that apply.

Answer

Correct Answer: p:empty
p:last-of-type

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

147.

Which of the following statements is correct of Floating Elements?

Answer

Correct Answer: 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

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

148.

What is the right way to skew text horizontal in left direction on 30 degrees?

Answer

Correct Answer: transform: skewX(30deg);

Note: This Question is unanswered, help us to find answer for this one

149.

Which of these values are not valid for display property?

Answer

Correct Answer: inline-list-item

Note: This Question is unanswered, help us to find answer for this one

150.

Which of these color definition is wrong?

Answer

Correct Answer: None of these

Note: This Question is unanswered, help us to find answer for this one

151.

What does the following css code indicate? columns: 2 auto;

Answer

Correct Answer: Both of the above

Note: This Question is unanswered, help us to find answer for this one

152.

Which of the following is True about responsive design of Media Queries?

Answer

Correct Answer: @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; } }

Note: This Question is unanswered, help us to find answer for this one

153.

How to select which placed immediately after ?

Answer

Correct Answer: div > p

Note: This Question is unanswered, help us to find answer for this one

154.

Using the following code you will empty-cells of table?

Answer

Correct Answer: empty-cells : show | hide

Note: This Question is unanswered, help us to find answer for this one

155.

Which of these selectors has the largest “weight”?

Answer

Correct Answer: #your div#awesome

Note: This Question is unanswered, help us to find answer for this one

156.

Which of the following is correct about the difference between "rem" and "px" for font sizes?

Answer

Correct Answer: "rem" depends on the body's font size.

Note: This Question is unanswered, help us to find answer for this one

157.

Which of the following statement is right?

Answer

Correct Answer: Both of the above

Note: This Question is unanswered, help us to find answer for this one

158.

Pseudo-classes can be used to

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

159.

Which of the following selector matches a particular element only when it lies inside a particular element?

Answer

Correct Answer: The Descendant Selector

Note: This Question is unanswered, help us to find answer for this one

160.

Which of the following are the newly introduced background properties in CSS3?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

161.

The ..................... specifies whether a border should be solid, dashed line, doted line, double line, groove etc.

Answer

Correct Answer: C. border-style

Note: This Question is unanswered, help us to find answer for this one

162.

Which of the following are valid properties for flex-container? Check all that apply.

Answer

Correct Answer: flex-wrap
flex-flow
align-items

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

163.

Internet Explorer uses ....................... property to create transparent images.

Answer

Correct Answer: B. filter: alpha(opacity=x)

Note: This Question is unanswered, help us to find answer for this one

164.

The ...................... property allows to specify how much space appear between the content of an element and it's border.

Answer

Correct Answer: C. Padding

Note: This Question is unanswered, help us to find answer for this one

165.

A CSS pseudo-class is a keyword added to selectors that specifies a special state of the element to be?

Answer

Correct Answer: selected

Note: This Question is unanswered, help us to find answer for this one

166.

Screen Resolution refers to the number of dots a screen shows per?

Answer

Correct Answer: Inch

Note: This Question is unanswered, help us to find answer for this one

167.

The ................... property indicates whether a cell without any content should have a border displayed.

Answer

Correct Answer: B. empty-cells

Note: This Question is unanswered, help us to find answer for this one

168.

Liquid _____ designs stretch and contract as the user increases or decreases the size of their browser window?

Answer

Correct Answer: layout

Note: This Question is unanswered, help us to find answer for this one

169.

How can we use Multiple backgrounds using the following code?

Answer

Correct Answer: background-image: url(bg1.png), url(bg2.png); background-repeat: no-repeat, repeat-y; background-attachment: fixed, fixed; background-position: right bottom, top left;

Note: This Question is unanswered, help us to find answer for this one

170.

Which of these values are not valid for background-repeat property?

Answer

Correct Answer: repeat-xy

Note: This Question is unanswered, help us to find answer for this one

171.

Pixels are relative to the resolution of the screen, so the same type size will look larger when a screen has a resolution of __ than it would when it is 1280x800?

Answer

Correct Answer: 800x600

Note: This Question is unanswered, help us to find answer for this one

172.

The text-indent property allows you to indent the first ____ of text within an element?

Answer

Correct Answer: Line

Note: This Question is unanswered, help us to find answer for this one

173.

Which of the following code is correct about Inset Border?

Answer

Correct Answer: .border:hover { box-shadow: inset 0 0 0 25px #53a7ea; }

Note: This Question is unanswered, help us to find answer for this one

174.

How can you create rounded corners using CSS3?

Answer

Correct Answer: border-radius: 30px;

Note: This Question is unanswered, help us to find answer for this one

175.

What is right way to set padding top 25px and padding left 15px?

Answer

Correct Answer: padding: 25px 0 0 15px;

Note: This Question is unanswered, help us to find answer for this one

176.

Which of these property prefix doesn’t exists?

Answer

Correct Answer: -opera-

Note: This Question is unanswered, help us to find answer for this one

177.

Which of the following css will divide the text in the div element into 3 columns?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

178.

Which of the following CSS works for “the gradient to start at the bottom left corner and go to the top right corner”

Answer

Correct Answer: .gradient { background-image: linear-gradient( to top right, red, #f06d06 ); }

Note: This Question is unanswered, help us to find answer for this one

179.

Which of these statements are true?

Answer

Correct Answer: 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.

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

180.

The different ways to associate styles with a HTML document is/are

Answer

Correct Answer: D. All of the above

Note: This Question is unanswered, help us to find answer for this one

181.

Fixed width layout designs do not change size as the user increases or decreases the size of their _____ window?

Answer

Correct Answer: browser

Note: This Question is unanswered, help us to find answer for this one

182.

Which of the following is NOT a valid pseudo-class?

Answer

Correct Answer: :text

Note: This Question is unanswered, help us to find answer for this one

183.

Element that Currently has the user’s mouse pointer hovering over it represents one of the following Pseudo Class.

Answer

Correct Answer: A. :hover

Note: This Question is unanswered, help us to find answer for this one

184.

The following syntax to set margin around a paragraph will make- p{margin:10px 2%}

Answer

Correct Answer: A. Top and bottom margin will be 10px and left and right margin will be 2% of the total width.

Note: This Question is unanswered, help us to find answer for this one

185.

Following Style is applied to - .wrapper h2#sub { font-size: 18px; margin-top: 0; }

Answer

Correct Answer: A. Div Element with class wrapper and Type 2 Heading inside it with ID sub.

Note: This Question is unanswered, help us to find answer for this one

186.

State True of False for the CSS table properties. i) The border-spacing specifies the width that should appear between table rows. ii) The empty-cells specifies whether the border should be shown if a cell is empty.

Answer

Correct Answer: B. i-False, ii-True

Note: This Question is unanswered, help us to find answer for this one

187.

Which of the following is used to represent unvisited hyperlink.

Answer

Correct Answer: A. :link

Note: This Question is unanswered, help us to find answer for this one

188.

Fonts such as Times New Roman which have spaces in between must be wrapped inside __ .

Answer

Correct Answer: A. Quotation Mark

Note: This Question is unanswered, help us to find answer for this one

189.

We write single __ before the pseudo-class property.

Answer

Correct Answer: A. Colon

Note: This Question is unanswered, help us to find answer for this one

190.

How many type faces inside property "font-family" ?

Answer

Correct Answer: C. No Limit

Note: This Question is unanswered, help us to find answer for this one

191.

The CSS links properties are

Answer

Correct Answer: A. :link, :visited, :hover, :active

Note: This Question is unanswered, help us to find answer for this one

192.

The ............... rule is used to make sure that the property always be applied whether another property appears in CSS.

Answer

Correct Answer: C. !important

Note: This Question is unanswered, help us to find answer for this one

193.

Which of the following is/are the valid syntax for CSS pseudo classes.

Answer

Correct Answer: C. Both A and B

Note: This Question is unanswered, help us to find answer for this one

194.

What does the A stand for in RGBA?

Answer

Correct Answer: Alpha

Note: This Question is unanswered, help us to find answer for this one

195.

How do you add shadow to elements in CSS3?

Answer

Correct Answer: box-shadow: 10px 10px 5px grey;

Note: This Question is unanswered, help us to find answer for this one

196.

Which of the following code is incorrect about Gradients Syntax?

Answer

Correct Answer: None of the above

Note: This Question is unanswered, help us to find answer for this one

197.

A block-level element can be placed into inline elements.

Answer

Correct Answer: column-rule

Note: This Question is unanswered, help us to find answer for this one

198.

CSS3's border-radius property and border-collapse:collapse do not mix. How can border-radius be used to create a collapsed table with rounded corners?

Answer

Correct Answer: By using border-collapse: collapse
By using border-collapse: collapse
By removing border-collapse:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

199.

Why is it not possible to unite webkit-border-radius and -moz-border-radius?

Answer

Correct Answer: -webkit- and -moz- are vendor-specific prefixes and are not standard CSS3 properties.

Note: This Question is unanswered, help us to find answer for this one

200.

What should be the output of following code? input[type="radio"]:checked + label { background-color:#000; }

Answer

Correct Answer: Black background color apply on checked label only

Note: This Question is unanswered, help us to find answer for this one

201.

What will happen if the cursor property value is set to none?

Answer

Correct Answer: No cursor will be displayed.

Note: This Question is unanswered, help us to find answer for this one

202.

Consider the following code snippet: <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> Which of the following code snippets when inserted into CSS will change the A and B div’s color from red to blue?

Answer

Correct Answer: In style rule add this code “#sectors > div:not(.C):not(.D):not(.E) {background-color: blue;}”

Note: This Question is unanswered, help us to find answer for this one

203.

Which of the following is not a valid syntax for the <link> element in HTML5?

Answer

Correct Answer: <link rev="stylesheet" href="abc.css" type="text/css" target="_parent">

Note: This Question is unanswered, help us to find answer for this one

204.

If the nav-index property of textbox1 is set to 10, textbox2 to 5, and textbox3 to 8, what will be the navigation order?

Answer

Correct Answer: textbox2, textbox3 ,textbox1

Note: This Question is unanswered, help us to find answer for this one

205.

Consider the following HTML/CSS3 code:

HTML:

<div id="nav"><a href="#">Test</a></div>

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?

Answer

Correct Answer: The link background will fade in and change his color to #AD310B.

Note: This Question is unanswered, help us to find answer for this one

206.

Consider the following HTML/CSS3 code:

HTML:

<div id="nav"><a href="#">Test</a></div>

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?

Answer

Correct Answer: Yes, but only headings.

Note: This Question is unanswered, help us to find answer for this one

207.

What is the default value of the transitions property?

Answer

Correct Answer: all 0

Note: This Question is unanswered, help us to find answer for this one

208.

Suppose there are 16 <div> elements and a style needs to applied only on every 4th element. Which of the following is correct?

Answer

Correct Answer: div:nth-child(4), div:nth-child(8), div:nth-child(12), div:nth-child(16) { }

Note: This Question is unanswered, help us to find answer for this one

209.

What is the best method to select all elements except for the last one in an unordered list?

Answer

Correct Answer: Using li:not(:last-child) css selector

Note: This Question is unanswered, help us to find answer for this one

210.

What will be the output of the following code?

<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>

Answer

Correct Answer: The border of div element will be colored black-red.

Note: This Question is unanswered, help us to find answer for this one

211.

Which statement is correct given the following? box-shadow:30px 20px 10px 5px black;

Answer

Correct Answer: 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.

Note: This Question is unanswered, help us to find answer for this one

212.

Which of the following styles is valid?

Answer

Correct Answer: order: none;

Note: This Question is unanswered, help us to find answer for this one

213.

Which of the following is the best way to center a div element?

Answer

Correct Answer: Apply 'margin:0 auto' to the element you want to center.

Note: This Question is unanswered, help us to find answer for this one

214.

Which of the following code is appropriate to flip any background image?

Answer

Correct Answer: 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; background: url(http://www.gravatar.com/avatar/5cce99e9bf6154703d8ecdf474a750bd?s=32&d=identicon&r=PG) no-repeat; }

Note: This Question is unanswered, help us to find answer for this one

215.

Which of the following is not a valid page break?

Answer

Correct Answer: page-break-outside

Note: This Question is unanswered, help us to find answer for this one

216.

Is it possible to use transition animations with a gradient background?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

217.

Which of the following is not a valid value for the font-smooth property?

Answer

Correct Answer: normal

Note: This Question is unanswered, help us to find answer for this one

218.

Which of the following requirements must be met in order to add noise to the background using CSS3?

Answer

Correct Answer: It not possible to add noise to a background using CSS3.

Note: This Question is unanswered, help us to find answer for this one

219.

Can a percentage value be given in a ruby-align property?

Answer

Correct Answer: No

Note: This Question is unanswered, help us to find answer for this one

220.

Is it possible to format numbers with CSS?

Answer

Correct Answer: No, CSS cannot be used for that purpose.

Note: This Question is unanswered, help us to find answer for this one

221.

The min-width property cannot be applied to the following element:

Answer

Correct Answer: table row

Note: This Question is unanswered, help us to find answer for this one

222.

What is true about the background-clip property?

Answer

Correct Answer: All are correct.

Note: This Question is unanswered, help us to find answer for this one

223.

What is the initial value of the marquee-speed property?

Answer

Correct Answer: normal

Note: This Question is unanswered, help us to find answer for this one

224.

Consider the following font definition: font-weight:normal What is the other way of getting the same result?

Answer

Correct Answer: font-weight:400

Note: This Question is unanswered, help us to find answer for this one

225.

Using height on transitions is not possible with:

Answer

Correct Answer: height:100%

Note: This Question is unanswered, help us to find answer for this one

226.

While rendering the following code, what is the role of "src" propery? @font-face { font-family: "calibriforh1"; src: local("calibri"), url(calibri.woff); } h1 { font-family: "calibriforh1", arial, sans-serif; }

Answer

Correct Answer: 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.

Note: This Question is unanswered, help us to find answer for this one

227.

Which of the given options is/are equivalent to the following rule? DIV { line-height: 1.2; font-size: 10pt }

Answer

Correct Answer: DIV { line-height: 1.2em; font-size: 10pt }

Note: This Question is unanswered, help us to find answer for this one

228.

To make childdiv vertically center of given code, what should the "display" property of parentdiv and childdiv be? #parentdiv { width: 200px; height: 400px; vertical-align: middle; } #childdiv { width: 100px; height: 50px; }
Vertical Center

Answer

Correct Answer: display:table-cell; for parentdiv and display:inline-block; for childdiv

Note: This Question is unanswered, help us to find answer for this one

229.

What is the initial value of the hyphens property?

Answer

Correct Answer: manual

Note: This Question is unanswered, help us to find answer for this one

230.

What is the initial value of the opacity property?

Answer

Correct Answer: 1

Note: This Question is unanswered, help us to find answer for this one

231.

Read the following: @page rotated {size: landscape} TABLE {page: rotated; page-break-before: right} What will this code do?

Answer

Correct Answer: It will put all tables on a right-hand side landscape page.

Note: This Question is unanswered, help us to find answer for this one

232.

Suppose that a <tr> tag has 10 <td> tags. In this case which statement is correct given the following?
td:nth-child(3n+0){
background-color: orange;
}

Answer

Correct Answer: The background color of every third td will be orange.

Note: This Question is unanswered, help us to find answer for this one

233.

What is the range of values (in decimal notation) that can be specified in the RGB color model?

Answer

Correct Answer: 0 to 255

Note: This Question is unanswered, help us to find answer for this one

234.

What is the difference between float:left; vs display:inline-block; ?

Answer

Correct Answer: There is no difference, both of them have the same results.

Note: This Question is unanswered, help us to find answer for this one

235.

Which one of the following is appropriate to mirror/flip text by using CSS3?

Answer

Correct Answer: .mirror_text{ -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: "FlipH"; }

Note: This Question is unanswered, help us to find answer for this one

236.

Is it possible to combine a background image and CSS3 gradients?

Answer

Correct Answer: It is possible only when "background-image" is used.

Note: This Question is unanswered, help us to find answer for this one

237.

Which of the following properties allow percentages in their value fields?

Answer

Correct Answer: font-size

Note: This Question is unanswered, help us to find answer for this one

238.

Problem to solve: 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?

Answer

Correct Answer: a[href$='.pdf'] { /*css*/ }

Note: This Question is unanswered, help us to find answer for this one

239.

What is the default value of the transform-style property?

Answer

Correct Answer: flat

Note: This Question is unanswered, help us to find answer for this one

240.

What is the maximum value that can be given to the voice-volume property?

Answer

Correct Answer: 100

Note: This Question is unanswered, help us to find answer for this one

241.

Which of the following statements is true with regard to CSS3 transitions?

Answer

Correct Answer: None of these.

Note: This Question is unanswered, help us to find answer for this one

242.

Which of the following are not valid values for the target-new property?

Answer

Correct Answer: parent

Note: This Question is unanswered, help us to find answer for this one

243.

What is the initial value of the font-size property?

Answer

Correct Answer: medium

Note: This Question is unanswered, help us to find answer for this one

244.

There are various types of input fields in a HTML page. Choose the appropriate CSS3 code which will have an effect on all inputs, except checkbox and radio.

Answer

Correct Answer: input:not([type="radio & checkbox"]) { }

Note: This Question is unanswered, help us to find answer for this one

245.

Consider the following problem: 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?

Answer

Correct Answer: input[type="radio"]:checked+label{ font-weight: bold; }

Note: This Question is unanswered, help us to find answer for this one

246.

Which of the following will create a triangle effect using pure CSS3 on a white background, without making use of background images?

Answer

Correct Answer: border-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;

Note: This Question is unanswered, help us to find answer for this one

247.

Which of the following styles is not valid for an image?

Answer

Correct Answer: img { float: left here }

Note: This Question is unanswered, help us to find answer for this one

248.

Consider the following code: 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

Answer

Correct Answer: andy lives behind cafe

Note: This Question is unanswered, help us to find answer for this one

249.

What is the default value of the animation-direction property?

Answer

Correct Answer: normal

Note: This Question is unanswered, help us to find answer for this one

250.

Which of the following properties specifies the minimum number of lines of a paragraph that must be left at the bottom of a page?

Answer

Correct Answer: orphans

Note: This Question is unanswered, help us to find answer for this one

251.

Which of the following will apply a black inner glow with 25% opacity to a page element?

Answer

Correct Answer: box-shadow: inset 0 0 8px rgba(0,0,0, 0.25);

Note: This Question is unanswered, help us to find answer for this one

252.

Consider the following code: 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?

Answer

Correct Answer: border: 1px solid rgba(255, 0, 0, 0.7);

Note: This Question is unanswered, help us to find answer for this one

253.

Which of the following is the initial value for the column-fill property?

Answer

Correct Answer: balance

Note: This Question is unanswered, help us to find answer for this one

254.

Which of the following can be used to add a shadow around the div element below?
<div>Lorem ipsum</div>

Answer

Correct Answer: box-shadow: 0 0 8px 2px #888;

Note: This Question is unanswered, help us to find answer for this one

255.

What will happen if the pause property is used as follows? h2 { pause: 40s 60s }

Answer

Correct Answer: pause-before will be set to 40 seconds and pause-after will be set to 60 seconds.

Note: This Question is unanswered, help us to find answer for this one

256.

Which of the following will decrease 50px from a DIV element whose width is 100%?

Answer

Correct Answer: width: calc(100% - 50px);

Note: This Question is unanswered, help us to find answer for this one

257.

Which of the following is not a valid value for the font-stretch property?

Answer

Correct Answer: semi-narrower

Note: This Question is unanswered, help us to find answer for this one

258.

To apply style on every input element except text, which of the following selectors should be used?

Answer

Correct Answer: input:not([type="text"])

Note: This Question is unanswered, help us to find answer for this one

259.

State whether the following statement is true or false. If a parent element display property is set to none, its children too will not be rendered.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

260.

For the clear property, which of the following values is not valid?

Answer

Correct Answer: top

Note: This Question is unanswered, help us to find answer for this one

261.

Given the following problem:

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?

Answer

Correct Answer: -webkit-box-shadow: 0 4px 4px -2px #000000; -moz-box-shadow: 0 4px 4px -2px #000000; box-shadow: 0 4px 4px -2px #000000;

Note: This Question is unanswered, help us to find answer for this one

262.

Consider the following code:

div[class^="stronger"] { }

{em

...

}

Which of the following statements is true?

Answer

Correct Answer: It applies the rule only on divs who belong to a class that begins with "stronger".

Note: This Question is unanswered, help us to find answer for this one

263.

Which of the following will apply a gradient transition to #DemoGradient using CSS3?

Answer

Correct Answer: #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; }

Note: This Question is unanswered, help us to find answer for this one

264.

What is true about Not Equal (! =) selector in CSS3 ?

Answer

Correct Answer: It’s not possible in css3.

Note: This Question is unanswered, help us to find answer for this one

265.

The color in three digit RGB notation is #fb0. What will be its equivalent six digit color code?

Answer

Correct Answer: #ffbb00

Note: This Question is unanswered, help us to find answer for this one

266.

Which of the following is the best implementation of a continously rotating animated image in CSS3?

Answer

Correct Answer: @-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; -webkit-transition-timing-function: linear; -webkit-animation-timing-function: linear; -moz-animation-timing-function: linear; }

Note: This Question is unanswered, help us to find answer for this one

267.

Which of the following will add a border to a div element, without adding to its size in pixels?

Answer

Correct Answer: 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; }

Note: This Question is unanswered, help us to find answer for this one

268.

The sans-serif generic font-family is characterized by:

Answer

Correct Answer: Stroke endings that are plain without any flaring, cross stroke, or other ornamentation.

Note: This Question is unanswered, help us to find answer for this one

269.

Which of the following is the best implementation of a continuously rotating animated image in CSS3?

Answer

Correct Answer: @-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; }

Note: This Question is unanswered, help us to find answer for this one

270.

What will the following code produce?

@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-bold0bliqu.ttf”);

Font-weight: bold;

Font-style: italic, oblique;

}

Answer

Correct Answer: Multiple @font-face rules added.

Note: This Question is unanswered, help us to find answer for this one

271.

Which of the following filters does SVG support?

Answer

Correct Answer: SVG supports only CSS filters.

Note: This Question is unanswered, help us to find answer for this one

272. What do you need to change in order to visually modify a button on mouseover?

Answer

Correct Answer: Hover state

Note: This Question is unanswered, help us to find answer for this one

273. What is the correct way to write short hand to this statement below background-color: blue; background-image: url("http://example.com/img.png"); background-repeat: no-repeat;

Answer

Correct Answer: background: blue url(http://example.com/img.png) no-repeat;

Note: This Question is unanswered, help us to find answer for this one

274. which code is in correct format?

Answer

Correct Answer: div { background: url(img_flwr.gif); background-size: 80px 60px; background-repeat: no-repeat; }

Note: This Question is unanswered, help us to find answer for this one

275. Which property would you use to change the color of the text?

Answer

Correct Answer: color

Note: This Question is unanswered, help us to find answer for this one

276. what is the default value of z-index?

Answer

Correct Answer: 0

Note: This Question is unanswered, help us to find answer for this one

277. Which property represents a line that acts as a boundary?

Answer

Correct Answer: Border

Note: This Question is unanswered, help us to find answer for this one

278. Which of the following is an example of a pseudo class?

Answer

Correct Answer: p:first-child

Note: This Question is unanswered, help us to find answer for this one

279. Which property can be used to increase or decrease the space between words?

Answer

Correct Answer: word-spacing

Note: This Question is unanswered, help us to find answer for this one

280. Consider the following font definition: font-weight:normal What is the other way of getting the same result?

Answer

Correct Answer: font-weight:100

Note: This Question is unanswered, help us to find answer for this one

281. Which of these tags is correct for a CSS Child Selector?

Answer

Correct Answer: div > p

Note: This Question is unanswered, help us to find answer for this one

282. You are new in the Company and your boss wants you to order a specific item that he often uses. You have no idea who is the supplier and do not dare asking. What do you do?

Answer

Correct Answer: You go through the company's past invoices looking for information on that specific item

Note: This Question is unanswered, help us to find answer for this one

283. What does the outline-offset property do??

Answer

Correct Answer: Both of the other answers are correct.

Note: This Question is unanswered, help us to find answer for this one

284. Which property can help you to create a more layered webpage layout?

Answer

Correct Answer: z-index

Note: This Question is unanswered, help us to find answer for this one

285. Which can you use to move one element above another?

Answer

Correct Answer: z-index

Note: This Question is unanswered, help us to find answer for this one

286. What does the greater than sign ( > ) indicate in CSS?

Answer

Correct Answer: Select the child of the element it follows

Note: This Question is unanswered, help us to find answer for this one

287. Which property is mostly used to remove underlines from links?

Answer

Correct Answer: text-decoration

Note: This Question is unanswered, help us to find answer for this one

288. Which rule is used to import an external style sheet in a manner similar to the <link> element?

Answer

Correct Answer: @import

Note: This Question is unanswered, help us to find answer for this one

289. Which defines the color of text ?

Answer

Correct Answer: color

Note: This Question is unanswered, help us to find answer for this one

290. Which property specifies whether a border should be solid, dashed line, doted line, double line, groove etc.?

Answer

Correct Answer: border-style

Note: This Question is unanswered, help us to find answer for this one

291. Which of the following position/number-based pseudo class selectors selects the first element within a parent

Answer

Correct Answer: :first-child

Note: This Question is unanswered, help us to find answer for this one

292. Which attribute defines inline style?

Answer

Correct Answer: style

Note: This Question is unanswered, help us to find answer for this one

293. how do you make a class?

Answer

Correct Answer: .

Note: This Question is unanswered, help us to find answer for this one

294. The correct inline CSS to remove underlines from links is <style="text-decoration: none">

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

295. What are CSS frameworks?

Answer

Correct Answer: It is a pre-planned libraries, which allows easier and more standards-compliant webpage styling, using CSS language.

Note: This Question is unanswered, help us to find answer for this one

296. How to put a background image?

Answer

Correct Answer: background-image : ;

Note: This Question is unanswered, help us to find answer for this one

297. CSS is a web standard that describes style for?

Answer

Correct Answer: XML/HTML documents

Note: This Question is unanswered, help us to find answer for this one

298. Which defines the size of text?

Answer

Correct Answer: font-size :

Note: This Question is unanswered, help us to find answer for this one

299. Hex values are written as three double digit numbers starting with which character?

Answer

Correct Answer: # sign

Note: This Question is unanswered, help us to find answer for this one

300. For what purpose we use text-indent property?

Answer

Correct Answer: to specify the indentation of the first line of a text

Note: This Question is unanswered, help us to find answer for this one

301. Which type of doesn't use a selector?

Answer

Correct Answer: Inline

Note: This Question is unanswered, help us to find answer for this one

302. If i set font-size to 1em, what's the default size in pixels?

Answer

Correct Answer: 16px

Note: This Question is unanswered, help us to find answer for this one

303. div is a block level element?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

304. Can a percentage value be given in a ruby-align property?

Answer

Correct Answer: No

Note: This Question is unanswered, help us to find answer for this one

305. What is one way to override inline css rules on an html div from within a stylesheet?

Answer

Correct Answer: div[style]{}

Note: This Question is unanswered, help us to find answer for this one

306. How do you center content horizontally in a page's body element?

Answer

Correct Answer: body { width: 90%; margin: 0 auto; }

Note: This Question is unanswered, help us to find answer for this one

307. How can you center a block with a certain width?

Answer

Correct Answer: margin: 0 auto;

Note: This Question is unanswered, help us to find answer for this one

308. What effect does setting position: static; have on an element with no other style rules applied have?

Answer

Correct Answer: No effect

Note: This Question is unanswered, help us to find answer for this one

309. Which CSS position property would you use for effecting within parent's attributes?

Answer

Correct Answer: Relative

Note: This Question is unanswered, help us to find answer for this one

310. what is the right syntax of media query?

Answer

Correct Answer: media="(width: 480px)"

Note: This Question is unanswered, help us to find answer for this one

311. Does a class selector and pseudo class selector have the same specificity weight?

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

312. Which of the following styles is valid?

Answer

Correct Answer: border: none;

Note: This Question is unanswered, help us to find answer for this one

313. What is the proper syntax inline styling a floated element to the left?

Answer

Correct Answer: style="float:left;"

Note: This Question is unanswered, help us to find answer for this one

314. How do you make an ID?

Answer

Correct Answer: #

Note: This Question is unanswered, help us to find answer for this one

315. how to support media queries in IE 8 and older versions?

Answer

Correct Answer: using respond.js

Note: This Question is unanswered, help us to find answer for this one

316. You want to float an image to the top of the next-page. Which of the following styles will help you to achieve the desired result?

Answer

Correct Answer: img { float: top-corner next-page; }

Note: This Question is unanswered, help us to find answer for this one

317. The sans-serif generic font-family is characterized by:

Answer

Correct Answer: stroke endings that are plain without any flaring, cross stroke, or other ornamentation.

Note: This Question is unanswered, help us to find answer for this one

318. In which position will it be calculated from the upper left corner of the parent layer?

Answer

Correct Answer: position: absolute

Note: This Question is unanswered, help us to find answer for this one

319. What is the purpose of cue-before property?

Answer

Correct Answer: Specifies a sound to be played before speaking an element's content

Note: This Question is unanswered, help us to find answer for this one

320. Select the correct CSS syntax.

Answer

Correct Answer: .main div {background: black;}

Note: This Question is unanswered, help us to find answer for this one

321. What is the correct tag to define an internal style sheet?

Answer

Correct Answer: <style>

Note: This Question is unanswered, help us to find answer for this one

322. what happens when you add padding to object?

Answer

Correct Answer: it increases the distance between it and its container.

Note: This Question is unanswered, help us to find answer for this one

323. How do you add padding in css

Answer

Correct Answer: padding:3px;

Note: This Question is unanswered, help us to find answer for this one

324. What is the proper syntax for selecting an element by class?

Answer

Correct Answer: .className (period followed by the class name)

Note: This Question is unanswered, help us to find answer for this one

325. How do you change the font of an element?

Answer

Correct Answer: font-family:

Note: This Question is unanswered, help us to find answer for this one

326. Which of the following is used to represent a Visited hyperlink

Answer

Correct Answer: :visited

Note: This Question is unanswered, help us to find answer for this one

327. How can you position an absolutely positioned HTML element?

Answer

Correct Answer: top, right, left, bottom

Note: This Question is unanswered, help us to find answer for this one

328. h1, h2, h3, h4, h5, h6 { font-weight: 500; } Which elements apply?

Answer

Correct Answer: h1 h2 h3 h4 h5 h6

Note: This Question is unanswered, help us to find answer for this one

329. How is a class represented in CSS

Answer

Correct Answer: .className { ... }

Note: This Question is unanswered, help us to find answer for this one

330. Which one of the following would be considered as valid?

Answer

Correct Answer: border-right: 1px solid currentColor;

Note: This Question is unanswered, help us to find answer for this one

331. To specify table borders in CSS, __________ property is used

Answer

Correct Answer: border

Note: This Question is unanswered, help us to find answer for this one

332. On which side will there be a 30px padding given the following declaration: padding: 10px 15px 20px 30px;

Answer

Correct Answer: left

Note: This Question is unanswered, help us to find answer for this one

333. ___________ property can be used increase or decrease the space between words

Answer

Correct Answer: word-spacing

Note: This Question is unanswered, help us to find answer for this one

334. On which side will there be a 15px padding given the following declaration: padding: 10px 15px 20px 30px;

Answer

Correct Answer: right

Note: This Question is unanswered, help us to find answer for this one

335. what does the `azimuth` property set?

Answer

Correct Answer: Sets the direction where the sound should come from

Note: This Question is unanswered, help us to find answer for this one

336. Specifies a rotation in the right or clockwise direction that a user agent applies to an image

Answer

Correct Answer: image-orientation

Note: This Question is unanswered, help us to find answer for this one

337. When can a semicolon be omitted?

Answer

Correct Answer: Inline style setting in an HTML tag

Note: This Question is unanswered, help us to find answer for this one

338. Which is not a valid pseudo class?

Answer

Correct Answer: :nth

Note: This Question is unanswered, help us to find answer for this one

339. Which of the following is not a pseudo class?

Answer

Correct Answer: first

Note: This Question is unanswered, help us to find answer for this one

340. The color names are defined in the HTML and CSS color specification (___ standard colors plus ____ more).

Answer

Correct Answer: 17,124

Note: This Question is unanswered, help us to find answer for this one

341. Which of the following is a required box-shadow property?

Answer

Correct Answer: h-shadow

Note: This Question is unanswered, help us to find answer for this one

342. In css border radius is not supported by Internet explorer version under

Answer

Correct Answer: 7

Note: This Question is unanswered, help us to find answer for this one

343. What page media property gives a hint for how to scale a replaced element if neither its width nor its height property is auto?

Answer

Correct Answer: fit

Note: This Question is unanswered, help us to find answer for this one

344. A final property is the visibility property that will allow you to create

Answer

Correct Answer: invisible layers

Note: This Question is unanswered, help us to find answer for this one

345. Which of the following properties can be used to create multiple columns for laying out text - like in newspapers?

Answer

Correct Answer: column-count

Note: This Question is unanswered, help us to find answer for this one

346. What is the recommended order for styling an <a> tag?

Answer

Correct Answer: a:link { } , a:visited { } , a:hover { } , a:active { }

Note: This Question is unanswered, help us to find answer for this one

347. What is the total width for this div : div { width: 100px; margin: 5px; padding: 10px 5px 15px 5px; border: 5px solid #000; }

Answer

Correct Answer: 130px

Note: This Question is unanswered, help us to find answer for this one

348. Which of the following text-decoration styles is not correct?

Answer

Correct Answer: text-decoration: strike-through

Note: This Question is unanswered, help us to find answer for this one

349. The css property border-style:dotted solid; would have the following effect:

Answer

Correct Answer: Would specify different borders for different sides

Note: This Question is unanswered, help us to find answer for this one

350. To use inline styles you use the style attribute in the ............... tag

Answer

Correct Answer: relevant tag

Note: This Question is unanswered, help us to find answer for this one

351. Which of the following is NOT valid.

Answer

Correct Answer: visibility: none

Note: This Question is unanswered, help us to find answer for this one

352. Which of the following declarations is incorrect?

Answer

Correct Answer: table { display: table-column-grouped; }

Note: This Question is unanswered, help us to find answer for this one

353. How do you select all the first <p> elements that immediately follow a <h2> element?

Answer

Correct Answer: h2 + p { }

Note: This Question is unanswered, help us to find answer for this one

354. With regards to the cascade effect of CSS, when does the order of css style rules matter most?

Answer

Correct Answer: When the rules are equal in specificity.

Note: This Question is unanswered, help us to find answer for this one

355. Which of the following selectors is the MOST efficient?

Answer

Correct Answer: #menu .text { ... }

Note: This Question is unanswered, help us to find answer for this one

356. Which of the following is true about this style? border-width: thin medium thick 3px;

Answer

Correct Answer: The left border will have a thickness of 3px.

Note: This Question is unanswered, help us to find answer for this one

357. Describes how the speed during a transition will be calculated. Default "ease"

Answer

Correct Answer: transition-timing-function

Note: This Question is unanswered, help us to find answer for this one

358. How can you keep the parent element from collapsing when all elements inside are being floated?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

359. The ______________ property describes how the intermediate values used during a transition will be calculated

Answer

Correct Answer: transition-timing-function

Note: This Question is unanswered, help us to find answer for this one

360. What does the CSS speak-header property do?

Answer

Correct Answer: Specifies whether table headers are spoken before every cell

Note: This Question is unanswered, help us to find answer for this one

361. Which part of the following selector does the browser parse first? ul > li a[title="home"]

Answer

Correct Answer: a[title="home"]

Note: This Question is unanswered, help us to find answer for this one

362. Which of the following specifies the number of times an animation should be played?

Answer

Correct Answer: animation-iteration-count

Note: This Question is unanswered, help us to find answer for this one

363. What is the specificity calculation for an ID in CSS?

Answer

Correct Answer: 100

Note: This Question is unanswered, help us to find answer for this one

364. What does the CSS cue property do?

Answer

Correct Answer: Specifies a sound to be played before and after the selected element

Note: This Question is unanswered, help us to find answer for this one

365. The value of letter-spacing property is

Answer

Correct Answer: either normal or of length type

Note: This Question is unanswered, help us to find answer for this one

366. To style a link that ends in .html differently than a link that ends with another file extension you would use which code?

Answer

Correct Answer: a[href$='.html']{color: purple;}

Note: This Question is unanswered, help us to find answer for this one

367. what does the following css do? p { counter-increment: myIndex; } p:before { content : counter(myIndex); }

Answer

Correct Answer: places an incremented value before each paragraph.

Note: This Question is unanswered, help us to find answer for this one

368. Which aspect of CSS has some direct resemblance with the common regular expression syntax?

Answer

Correct Answer: Attribute selectors

Note: This Question is unanswered, help us to find answer for this one

369. How can you blur text?

Answer

Correct Answer: .blur { color: transparent; text-shadow: 0 0 5px rgba(0,0,0,0.5); }

Note: This Question is unanswered, help us to find answer for this one

370. Which value of display property is NOT valid?

Answer

Correct Answer: display: inline-caption;

Note: This Question is unanswered, help us to find answer for this one

371. If the link to the external css is placed after the embedded css in the <head>...

Answer

Correct Answer: the external styles will override the embedded styles.

Note: This Question is unanswered, help us to find answer for this one

372. In which position will be calculated from that exact spot in the middle of your page where it was added?

Answer

Correct Answer: position:relative

Note: This Question is unanswered, help us to find answer for this one

373. Which vertical-align value is not correct?

Answer

Correct Answer: vertical-align: text-base

Note: This Question is unanswered, help us to find answer for this one

374. What is the default value of position: ?

Answer

Correct Answer: static

Note: This Question is unanswered, help us to find answer for this one

375. What is the adjacent sibling selector?

Answer

Correct Answer: +

Note: This Question is unanswered, help us to find answer for this one

376. What is the effect of using a negative number in a padding declaration? Example: p {padding-top: -10px;}

Answer

Correct Answer: Same as padding-top: 0px;

Note: This Question is unanswered, help us to find answer for this one

377. When using the font-family property which of the following is typically NOT the last font listed?

Answer

Correct Answer: comic sans

Note: This Question is unanswered, help us to find answer for this one

378. Which of the following is correct for specifying the print media type?

Answer

Correct Answer: @media print { p.test { ... } }

Note: This Question is unanswered, help us to find answer for this one

379. Which CSS code is used to wrap a long unbroken text to prevent it from expanding outside the parent container?

Answer

Correct Answer: .selector{word-wrap: break-word;}

Note: This Question is unanswered, help us to find answer for this one

380. Which of these is not a valid generic font-family?

Answer

Correct Answer: handwriting

Note: This Question is unanswered, help us to find answer for this one

381. Which properties allow specifying the formatting rules for the textual content on a Web page?

Answer

Correct Answer: CSS text

Note: This Question is unanswered, help us to find answer for this one

382. If an element appears before a floated element that element will...

Answer

Correct Answer: not be affected.

Note: This Question is unanswered, help us to find answer for this one

383. Which one is not a correct value of clear property?

Answer

Correct Answer: clear:all;

Note: This Question is unanswered, help us to find answer for this one

384. True or False: The :first-line pseudo-element applies special styles to the contents of all but the first formatted line of a paragraph.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

385. Which of the following is correct for the word-wrap Property?

Answer

Correct Answer: p.test {word-wrap:break-word;}

Note: This Question is unanswered, help us to find answer for this one

386. In which position it will be calculated from the upper left corner of the parent layer?

Answer

Correct Answer: position:absolute

Note: This Question is unanswered, help us to find answer for this one

387. What is the default align for <tfoot>?

Answer

Correct Answer: left

Note: This Question is unanswered, help us to find answer for this one

388. What would the following do? tr:nth-child(2n){background-color: red; }

Answer

Correct Answer: Changes the background color of every even number table row to red

Note: This Question is unanswered, help us to find answer for this one

389. What is the cascading order (from lowest to highest priority) when there are multiple styles specified for an HTML element?

Answer

Correct Answer: 1) browser default, 2) external style sheet, 3) internal style sheet (in the head section), 4) inline style (inside an HTML element)

Note: This Question is unanswered, help us to find answer for this one

390. What property defines whether background images scroll along with the element when the document is scrolled?

Answer

Correct Answer: background-attachment

Note: This Question is unanswered, help us to find answer for this one

391. What has the greatest specificity?

Answer

Correct Answer: #footer {background: white;}

Note: This Question is unanswered, help us to find answer for this one

392. What does the following mean: ul[id^="name-here"]

Answer

Correct Answer: target any <ul> with an ID that starts with 'name-here'

Note: This Question is unanswered, help us to find answer for this one

393. Which list-style-type property renders a filled circle?

Answer

Correct Answer: disc

Note: This Question is unanswered, help us to find answer for this one

394. Which of the following is invalid ?

Answer

Correct Answer: .selector { background-image: content("image.png"); }

Note: This Question is unanswered, help us to find answer for this one

395. Does using or not using a doctype (in HTML) affect how CSS styles HTML? (also known as standards mode vs quirks mode)

Answer

Correct Answer: yes, it affects HTML rendering and CSS styling

Note: This Question is unanswered, help us to find answer for this one

396. Which property allows you to increase or decrease the white space between words?

Answer

Correct Answer: word-spacing

Note: This Question is unanswered, help us to find answer for this one

397. What character is used before the pseudo-class property?

Answer

Correct Answer: colon

Note: This Question is unanswered, help us to find answer for this one

398. A CSS ________ is a keyword added to selectors that specifies a special state of the element to be selected.

Answer

Correct Answer: pseudo-class

Note: This Question is unanswered, help us to find answer for this one

399. The transition-duration property is in fact the only property required

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

400. Which of the following best describes the effect that a floated element has on surrounding elements?

Answer

Correct Answer: The elements after the floating element will flow around it.

Note: This Question is unanswered, help us to find answer for this one

401. Which of the following is NOT a common browser layout engine that determines CSS default styles?

Answer

Correct Answer: Commando

Note: This Question is unanswered, help us to find answer for this one

402. All monospace characters have the same...

Answer

Correct Answer: width

Note: This Question is unanswered, help us to find answer for this one

403. What is the order of precedence (highest to lowest) when applying styles?

Answer

Correct Answer: inline > embedded > external

Note: This Question is unanswered, help us to find answer for this one

404. What does the background-attachment property do?

Answer

Correct Answer: It sets whether a background image should scroll with the content, or be fixed.

Note: This Question is unanswered, help us to find answer for this one

405. Which selector specifies that a list uses squares?

Answer

Correct Answer: list-style-type: square;

Note: This Question is unanswered, help us to find answer for this one

406. What is the border-spacing property?

Answer

Correct Answer: It sets the distance between the borders of adjacent cells (only for the "separated borders" model).

Note: This Question is unanswered, help us to find answer for this one

407. Which of the following code samples could be used to style a link whose URL begins with "https://sales."?

Answer

Correct Answer: a[href^='https://sales.'] { color: pink; }

Note: This Question is unanswered, help us to find answer for this one

408. What CSS syntax can be used to hide an image without affecting the documents layout?

Answer

Correct Answer: visibility: hidden

Note: This Question is unanswered, help us to find answer for this one

409. Which of the following is true about the overflow property?

Answer

Correct Answer: It specifies what happens if content overflows an element's box.

Note: This Question is unanswered, help us to find answer for this one

410. What is NOT an advantage of using CSS files?

Answer

Correct Answer: Ability to hide the CSS code from the user.

Note: This Question is unanswered, help us to find answer for this one

411. In the following declaration which part represents the property? table { color: blue; }

Answer

Correct Answer: color

Note: This Question is unanswered, help us to find answer for this one

412. What is the name for a property that clears an area outside the border and is completely transparent?

Answer

Correct Answer: margin

Note: This Question is unanswered, help us to find answer for this one

413. Which version of CSS supports this tag :nth-child ?

Answer

Correct Answer: CSS 3

Note: This Question is unanswered, help us to find answer for this one

414. A user can only view the border after specifying the

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

415. The Text spacing properties are

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

416. The transition-duration property's initial value is 0, meaning that the transition is

Answer

Correct Answer: instantaneous

Note: This Question is unanswered, help us to find answer for this one

417. Which at-rule allows you to define custom fonts?

Answer

Correct Answer: @font-face { }

Note: This Question is unanswered, help us to find answer for this one

418. What property is used with the :before and :after pseudo-elements to insert generated content?

Answer

Correct Answer: content

Note: This Question is unanswered, help us to find answer for this one

419. Write the css selector for the 3rd list item within an ordered list.

Answer

Correct Answer: li:nth-child(3) { // do something }

Note: This Question is unanswered, help us to find answer for this one

420. Which value will continue to display the text on the same line,until the BR element is specified?

Answer

Correct Answer: nowrap

Note: This Question is unanswered, help us to find answer for this one

421. Identify the value in the following rule: a:hover { text-decoration: none; }

Answer

Correct Answer: none

Note: This Question is unanswered, help us to find answer for this one

422. To ensure consistent behavior when the user resizes text, font-size should be declared in units of:

Answer

Correct Answer: em

Note: This Question is unanswered, help us to find answer for this one

423. What does "Cascading" in CSS refer to?

Answer

Correct Answer: The hierarchy of rules which determines how element properties are inherited

Note: This Question is unanswered, help us to find answer for this one

424. The box model consists of which of the following:

Answer

Correct Answer: margins,borders, padding, and the actual content

Note: This Question is unanswered, help us to find answer for this one

425. Where will a block level element appear in relations to the previous element in the document (by default)?

Answer

Correct Answer: Below the previous element

Note: This Question is unanswered, help us to find answer for this one

426. The following is an example of which type of CSS selector? E > F

Answer

Correct Answer: Child selector

Note: This Question is unanswered, help us to find answer for this one

427. What does the following declaration accomplish? div{background-color: rgba(255,255,255,0.8); }

Answer

Correct Answer: It sets a white background with a transparency of 80% to the div element.

Note: This Question is unanswered, help us to find answer for this one

428. how to set multiple images in background through css

Answer

Correct Answer: background-image: url(xyz.png), url(a2z.png);

Note: This Question is unanswered, help us to find answer for this one

429. Which of the following tells the browser where you want to apply the rule?

Answer

Correct Answer: Selector

Note: This Question is unanswered, help us to find answer for this one

430. Which would you use to write shorthand css to affect the outline properties?

Answer

Correct Answer: outline

Note: This Question is unanswered, help us to find answer for this one

431. Which of these is NOT a CSS pseudo-class?

Answer

Correct Answer: a:blur

Note: This Question is unanswered, help us to find answer for this one

432. Select the correct value to set the background to silver for even rows.

Answer

Correct Answer: tr:nth-child(2n) {background: silver;}

Note: This Question is unanswered, help us to find answer for this one

433. The First step of transition is

Answer

Correct Answer: transition-property

Note: This Question is unanswered, help us to find answer for this one

434. What does the outline-offset property do?

Answer

Correct Answer: Both of the other answers are correct.

Note: This Question is unanswered, help us to find answer for this one

435. Which of the following elements will be matched by this CSS selector: div[class|="foo"] ?

Answer

Correct Answer: All of these elements will be matched.

Note: This Question is unanswered, help us to find answer for this one

436. Which value of the border style property can look as though it were embedded in the canvas?

Answer

Correct Answer: inset

Note: This Question is unanswered, help us to find answer for this one

437. Which of the following color values is invalid?

Answer

Correct Answer: They're all valid.

Note: This Question is unanswered, help us to find answer for this one

438. The pseudo selector ":nth-child(2n)" can also be written as:

Answer

Correct Answer: :nth-child(even)

Note: This Question is unanswered, help us to find answer for this one

439. Which of the following elements will be matched by the CSS selector: div[class*="foo"] ?

Answer

Correct Answer: All of these elements will be matched.

Note: This Question is unanswered, help us to find answer for this one

440. When determining hexadecimal colors, which value is the highest?

Answer

Correct Answer: ff

Note: This Question is unanswered, help us to find answer for this one

441. What is the purpose of line-height?

Answer

Correct Answer: Set the height for each line of text in an html element.

Note: This Question is unanswered, help us to find answer for this one

442. Which element is a block element?

Answer

Correct Answer: All

Note: This Question is unanswered, help us to find answer for this one

443. What are the correct values for "float" property?

Answer

Correct Answer: left, right, none

Note: This Question is unanswered, help us to find answer for this one

444. Which values can be used to set text direction?

Answer

Correct Answer: ltr and rtl

Note: This Question is unanswered, help us to find answer for this one

445. The elements after the floating element will...

Answer

Correct Answer: flow around it

Note: This Question is unanswered, help us to find answer for this one

446. Fonts such as Times New Roman which have spaces in between must be wrapped inside ______

Answer

Correct Answer: Quotation Mark

Note: This Question is unanswered, help us to find answer for this one

447. What is the CSS shorthand to set a borders top to 10, bottom to 5, left to 20 and right to 1 pixel?

Answer

Correct Answer: border: 10px 1px 5px 20px;

Note: This Question is unanswered, help us to find answer for this one

448. What does the following selector do: element[foo]

Answer

Correct Answer: Matches any element with the foo attribute set.

Note: This Question is unanswered, help us to find answer for this one

449. State whether True or False. i) Any inline style sheet takes highest priority. ii) Any rule defined in <style> ...........................</style> tag will override rules defined in any external style sheet file.

Answer

Correct Answer: i-True, ii-True

Note: This Question is unanswered, help us to find answer for this one

450. What is the effect of the following css rule? [title]{color:blue;}

Answer

Correct Answer: All elements with a title attribute will be blue

Note: This Question is unanswered, help us to find answer for this one

451. Which of the following is used to select one paticular tag, rather than a group of tags?

Answer

Correct Answer: Id selector

Note: This Question is unanswered, help us to find answer for this one

452. Is a # required before colors in CSS?

Answer

Correct Answer: No, only when specifying colors as hexadecimal values.

Note: This Question is unanswered, help us to find answer for this one

453. Which of the following specifies the type of list-item marker?

Answer

Correct Answer: list-style-type

Note: This Question is unanswered, help us to find answer for this one

454. What is true about image sprites?

Answer

Correct Answer: Both of these

Note: This Question is unanswered, help us to find answer for this one

455. What is text-align set to each line when text is stretched so that every line has equal width, and the left and right margins are straight?

Answer

Correct Answer: justify

Note: This Question is unanswered, help us to find answer for this one

456. ____________ properties provide several options to place the content on the web page.

Answer

Correct Answer: Positioning

Note: This Question is unanswered, help us to find answer for this one

457. On which position value does the z-index property work?

Answer

Correct Answer: all of the answers

Note: This Question is unanswered, help us to find answer for this one

458. An ____ style loses many of the advantages of style sheets by mixing content with presentation.

Answer

Correct Answer: Inline

Note: This Question is unanswered, help us to find answer for this one

459. p.outset {border-style: outset; } In the code snippet above, which part represents the property?

Answer

Correct Answer: border-style

Note: This Question is unanswered, help us to find answer for this one

460. Which two properties are the defaults when positioning a layer?

Answer

Correct Answer: top, left

Note: This Question is unanswered, help us to find answer for this one

461. What are the three methods for implementing a stylesheet?

Answer

Correct Answer: Inline, Embedded, and External

Note: This Question is unanswered, help us to find answer for this one

462. In CSS3, which property is used to make sure a given element has a width of at least a set value?

Answer

Correct Answer: min-width

Note: This Question is unanswered, help us to find answer for this one

463. You have three blocks of markup that share property values. Which of the following ways is the most efficient?

Answer

Correct Answer: .one, .two, .three { property: value; }

Note: This Question is unanswered, help us to find answer for this one

464. What is an image sprite?

Answer

Correct Answer: It is a collection of images put into a single image.

Note: This Question is unanswered, help us to find answer for this one

465. In this CSS code, what element is the property? table {color: red;}

Answer

Correct Answer: color

Note: This Question is unanswered, help us to find answer for this one

466. How do you target the submit button for the <form id="example">?

Answer

Correct Answer: #example input[type="submit"]

Note: This Question is unanswered, help us to find answer for this one

467. What CSS selector selects all elements with a target attribute?

Answer

Correct Answer: [target]

Note: This Question is unanswered, help us to find answer for this one

468. With what characters are CSS declarations separated?

Answer

Correct Answer: semicolon ( ; )

Note: This Question is unanswered, help us to find answer for this one

469. What css selector selects all <div> elements and all <p> elements?

Answer

Correct Answer: div,p

Note: This Question is unanswered, help us to find answer for this one

470. What is the transform: translate() method used for?

Answer

Correct Answer: to move elements from their current position by an offset depending on the X and Y parameters

Note: This Question is unanswered, help us to find answer for this one

471. What is NOT a correct value of background-position property?

Answer

Correct Answer: middle

Note: This Question is unanswered, help us to find answer for this one

472. Which declaration can be used to have a block element always displays scrollbars?

Answer

Correct Answer: {overflow:scroll}

Note: This Question is unanswered, help us to find answer for this one

473. Which of the following is the correct syntax in CSS?

Answer

Correct Answer: Selector {Property: Value;}

Note: This Question is unanswered, help us to find answer for this one

474. What does minifying CSS do?

Answer

Correct Answer: compresses the code by removing whitespace, which is not needed

Note: This Question is unanswered, help us to find answer for this one

475. What HTML tag can you use to import a style sheet into a document?

Answer

Correct Answer: Use the HTML <link /> tag, like this: <link rel='stylesheet' type='text/css' href='styles.css' /> .

Note: This Question is unanswered, help us to find answer for this one

476. Which declaration removes bullets from a navigation list?

Answer

Correct Answer: list-style-type:none

Note: This Question is unanswered, help us to find answer for this one

477. When adjusting a CSS sprite, which property do you use?

Answer

Correct Answer: background-position

Note: This Question is unanswered, help us to find answer for this one

478. Which style will cause all links to "http://www.smarterer.com" to be blue?

Answer

Correct Answer: a[href="http://www.smarterer.com"] { color: blue; }

Note: This Question is unanswered, help us to find answer for this one

479. A definition list has two types of items: the term and the description. Which of the following is NOT a valid definition-related tag set?

Answer

Correct Answer: <do></do>

Note: This Question is unanswered, help us to find answer for this one

480. What css selector selects every element that is not a <p> element?

Answer

Correct Answer: :not(p)

Note: This Question is unanswered, help us to find answer for this one

481. Which pseudo class is used in conjunction with an ID when the pound symbol in the current URL matches that ID. For example, if you are at URL www.yoursite.com/#home

Answer

Correct Answer: #home:target

Note: This Question is unanswered, help us to find answer for this one

482. Which declaration will make each word in an element start with a uppercase letter?

Answer

Correct Answer: text-transform: capitalize;

Note: This Question is unanswered, help us to find answer for this one

483. Which measurement can't be used to size text in CSS?

Answer

Correct Answer: huge

Note: This Question is unanswered, help us to find answer for this one

484. Which type of border attribute can be used to have a unique look for each side of the border?

Answer

Correct Answer: border-(direction)

Note: This Question is unanswered, help us to find answer for this one

485. Which property specifies spacing behavior between text characters?

Answer

Correct Answer: letter-spacing

Note: This Question is unanswered, help us to find answer for this one

486. If the name of a font family is more than one word, it must be in quotation marks.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

487. Which of the following properties can be used to add space outside an element's box?

Answer

Correct Answer: margin

Note: This Question is unanswered, help us to find answer for this one

488. If an image is floated to the right, the following text flows around it...

Answer

Correct Answer: to the left

Note: This Question is unanswered, help us to find answer for this one

489. What is the correct order if you want a div with left margin of 10, right margin of 2, top margin of 5, and bottom margin of 0?

Answer

Correct Answer: div {margin: 5px 2px 0 10px;}

Note: This Question is unanswered, help us to find answer for this one

490. What is the CSS syntax for changing the default cursor to a pointing finger?

Answer

Correct Answer: cursor: pointer;

Note: This Question is unanswered, help us to find answer for this one

491. Which of the following will remove the default underline under the link with an id of "content"?

Answer

Correct Answer: a#content {text-decoration:none;}

Note: This Question is unanswered, help us to find answer for this one

492. Which of the following produces a black border that is 1-pixel thick and dashed?

Answer

Correct Answer: border: 1px dashed #000

Note: This Question is unanswered, help us to find answer for this one

493. The possible values of white-space are

Answer

Correct Answer: <p style="white-space:normal"> Use of normal white-space. </p>

Note: This Question is unanswered, help us to find answer for this one

494. Where is the margin property located in the CSS box model?

Answer

Correct Answer: Outside the box

Note: This Question is unanswered, help us to find answer for this one

495. In this CSS code, what element is the selector? table {color: red;}

Answer

Correct Answer: table

Note: This Question is unanswered, help us to find answer for this one

496. Given .class { padding: 20px 10px; }, in what order do padding values apply?

Answer

Correct Answer: top & bottom, left & right

Note: This Question is unanswered, help us to find answer for this one

497. Which properties specifying whether to write the text from left to right or from right to left?

Answer

Correct Answer: direction

Note: This Question is unanswered, help us to find answer for this one

498. What is the syntax for a customized cursor?

Answer

Correct Answer: Selector {cursor:value}

Note: This Question is unanswered, help us to find answer for this one

499. Which property is used to set whether table borders are collapsed into a single border or detached as in standard HTML?

Answer

Correct Answer: border-collapse

Note: This Question is unanswered, help us to find answer for this one

500. When using "position: absolute;" the reference point is the browser window UNLESS one of the parent elements contain one of the following...

Answer

Correct Answer: position: relative;

Note: This Question is unanswered, help us to find answer for this one

501. When using the background-color property with rgba(255, 0, 255, 0.5) what does the "a" refer to?

Answer

Correct Answer: Opacity (Alpha channel)

Note: This Question is unanswered, help us to find answer for this one

502. What are the two components of every CSS style definition?

Answer

Correct Answer: selector, properties

Note: This Question is unanswered, help us to find answer for this one

503. Which of the following selects all unvisited links?

Answer

Correct Answer: :link

Note: This Question is unanswered, help us to find answer for this one

504. To specify the style for a list, use the _________ property.

Answer

Correct Answer: list-style

Note: This Question is unanswered, help us to find answer for this one

505. Which of the following is NOT a valid image opacity rule?

Answer

Correct Answer: opacity: 2.0;

Note: This Question is unanswered, help us to find answer for this one

506. Which style does the following rule apply to? div.wrapper h2 { font-size: 18px; margin-top: 0px; }

Answer

Correct Answer: h2 heading inside element div of class wrapper

Note: This Question is unanswered, help us to find answer for this one

507. How do you apply multiple classes to an element?

Answer

Correct Answer: <div class="class1 class2" ></div>

Note: This Question is unanswered, help us to find answer for this one

508. What does the property text-align:center; do?

Answer

Correct Answer: Aligns text in horizontal center of the containing element

Note: This Question is unanswered, help us to find answer for this one

509. If table {color: red;} is specified in a stylesheet, what happens to the table?

Answer

Correct Answer: Text within it is red

Note: This Question is unanswered, help us to find answer for this one

510. Which of the following is true about border styles?

Answer

Correct Answer: None of these

Note: This Question is unanswered, help us to find answer for this one

511. What does a 'position: fixed;' declaration accomplish?

Answer

Correct Answer: Fixes the element relative to the browser's viewport

Note: This Question is unanswered, help us to find answer for this one

512. What are the differences between "display:none" and "visibility:hidden" code?

Answer

Correct Answer: "display:none" hides the element and remove it's placeholder, "visibility:hidden" hides the element but keeps it's place blank.

Note: This Question is unanswered, help us to find answer for this one

513. Which of the following sets all the border properties in one declaration?

Answer

Correct Answer: border

Note: This Question is unanswered, help us to find answer for this one

514. What css selector selects the input element which has focus?

Answer

Correct Answer: input:focus

Note: This Question is unanswered, help us to find answer for this one

515. Which syntax does older versions of Internet Explorer use for transparency?

Answer

Correct Answer: filter:alpha(opacity=x).

Note: This Question is unanswered, help us to find answer for this one

516. How can you override css cascade priority and force a particular css rule to apply?

Answer

Correct Answer: p { color:red !important; }

Note: This Question is unanswered, help us to find answer for this one

517. To create a border of 3-pixel width, which css declaration would you use?

Answer

Correct Answer: border-width: 3px;

Note: This Question is unanswered, help us to find answer for this one

518. The id selector is used to specify a style for

Answer

Correct Answer: single, unique element

Note: This Question is unanswered, help us to find answer for this one

519. Which property controls the additional space between the selected element(s) border and its content?

Answer

Correct Answer: padding

Note: This Question is unanswered, help us to find answer for this one

520. By which of the following is a declaration terminated?

Answer

Correct Answer: ;

Note: This Question is unanswered, help us to find answer for this one

521. Block elements can be aligned to center by setting the left and right...

Answer

Correct Answer: margins to auto

Note: This Question is unanswered, help us to find answer for this one

522. How do you set a paragraph to have a border of 5px in red color?

Answer

Correct Answer: p { border:5px solid red; }

Note: This Question is unanswered, help us to find answer for this one

523. Which side of the element with ID 'element' will have a 10px margin? #element { margin: 0px 5px 10px 20px;}

Answer

Correct Answer: bottom

Note: This Question is unanswered, help us to find answer for this one

524. Pseudo classes may be applied to any element but are most commonly used with the __ element.

Answer

Correct Answer: 'a'

Note: This Question is unanswered, help us to find answer for this one

525. Which line changes the background color of a link when a visitor hovers it?

Answer

Correct Answer: a:hover { background-color: #FF704D; }

Note: This Question is unanswered, help us to find answer for this one

526. When using z-index which other property is required?

Answer

Correct Answer: position

Note: This Question is unanswered, help us to find answer for this one

527. Which of the following declarations would display a list without bullets?

Answer

Correct Answer: list-style-type: none

Note: This Question is unanswered, help us to find answer for this one

528. Identify the selector in the following rule: h1 { color: blue; }

Answer

Correct Answer: h1

Note: This Question is unanswered, help us to find answer for this one

529. What does the child selector (">") do?

Answer

Correct Answer: Matches elements that are a direct child of the parent match

Note: This Question is unanswered, help us to find answer for this one

530. An outline is always placed __________ of the box

Answer

Correct Answer: Outline

Note: This Question is unanswered, help us to find answer for this one

531. Normally, elements after a 'floated' element will flow around it. Which property can be used to avoid this?

Answer

Correct Answer: the clear property

Note: This Question is unanswered, help us to find answer for this one

532. What is the child selector in css?

Answer

Correct Answer: >

Note: This Question is unanswered, help us to find answer for this one

533. The correct example of class selector is .

Answer

Correct Answer: h2.type1 {color: #000000;}

Note: This Question is unanswered, help us to find answer for this one

534. Which is the correct syntax for referring to a pseudo-class?

Answer

Correct Answer: :hover

Note: This Question is unanswered, help us to find answer for this one

535. Which part of the box, where text and images appear?

Answer

Correct Answer: Content

Note: This Question is unanswered, help us to find answer for this one

536. What property can be used to turn everything into uppercase or lowercase letters, or capitalize the first letter of each word?

Answer

Correct Answer: text-transform

Note: This Question is unanswered, help us to find answer for this one

537. True or False : CSS class name starting with a number is supported by all browsers.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

538. Which concept uses the CSS from which implies that every HTML element is a box?

Answer

Correct Answer: box model

Note: This Question is unanswered, help us to find answer for this one

539. What is the correct pseudo-class for modifying only the first element of a selector?

Answer

Correct Answer: :first-child

Note: This Question is unanswered, help us to find answer for this one

540. Which of the following css declarations would style hyperlinks using sans-serif fonts?

Answer

Correct Answer: a:link {font-family: "lucida sans unicode", sans-serif;}

Note: This Question is unanswered, help us to find answer for this one

541. Which of the following characters is used to begin a css declaration block?

Answer

Correct Answer: {

Note: This Question is unanswered, help us to find answer for this one

542. In CSS, the term "box model" is used when talking about?

Answer

Correct Answer: design and layout

Note: This Question is unanswered, help us to find answer for this one

543. What attribute is NOT required when using the <link> tag?

Answer

Correct Answer: head

Note: This Question is unanswered, help us to find answer for this one

544. Which property is used to horizontally align the text in the table?

Answer

Correct Answer: text-align

Note: This Question is unanswered, help us to find answer for this one

545. What are the three methods for using style sheets with a web page?

Answer

Correct Answer: Inline, embedded or document level and external

Note: This Question is unanswered, help us to find answer for this one

546. What css selector selects all <p> elements that are contained inside of an element with an ID of 'content'?

Answer

Correct Answer: #content p

Note: This Question is unanswered, help us to find answer for this one

547. Setting the left and right margins to auto specifies that they should split the available margin equally, resulting in...

Answer

Correct Answer: a centered element

Note: This Question is unanswered, help us to find answer for this one

548. What do the Greater Than sign > indicate in CSS

Answer

Correct Answer: Select the child of the element it follows

Note: This Question is unanswered, help us to find answer for this one

549. What property is used to specify the indentation of the first line of a text?

Answer

Correct Answer: text-indent

Note: This Question is unanswered, help us to find answer for this one

550. On which side will there be a 20px padding given the following declaration: padding: 30px 15px 20px 10px;

Answer

Correct Answer: bottom

Note: This Question is unanswered, help us to find answer for this one

551. What css selctor Selects every <p> element that is the last child of its parent?

Answer

Correct Answer: p:last-child

Note: This Question is unanswered, help us to find answer for this one

552. CSS comments are inserted inside .

Answer

Correct Answer: /*..................*/

Note: This Question is unanswered, help us to find answer for this one

553. Which HTML tag is used to define an embedded style sheet?

Answer

Correct Answer: <style>

Note: This Question is unanswered, help us to find answer for this one

554. What does the pseudo class last-child do?

Answer

Correct Answer: selects the last element in a targeted parent element.

Note: This Question is unanswered, help us to find answer for this one

555. Which of the following defines the boundary within the element box against which background-image positioning is calculated?

Answer

Correct Answer: background-origin

Note: This Question is unanswered, help us to find answer for this one

556. How do you hide an element and remove it from the document flow?

Answer

Correct Answer: Add "display: none" to your style sheet rule.

Note: This Question is unanswered, help us to find answer for this one

557. p { width:220px; padding:10px; border:5px solid gray; margin:0px; } The total width of an element is calculated like this:

Answer

Correct Answer: Total element width = width + left padding + right padding + left border + right border + left margin + right margin

Note: This Question is unanswered, help us to find answer for this one

558. Which are the two main parts of a CSS rule?

Answer

Correct Answer: Selector and Declaration

Note: This Question is unanswered, help us to find answer for this one

559. How will this display: margin: 10px 5px;

Answer

Correct Answer: Top: 10px, right: 5px, bottom:10px, left:5px

Note: This Question is unanswered, help us to find answer for this one

560. What is the correct shorthand syntax for a border?

Answer

Correct Answer: border: 1px solid #777;

Note: This Question is unanswered, help us to find answer for this one

561. How do you specify 30% opacity in CSS (ignoring IE)?

Answer

Correct Answer: opacity: 0.3

Note: This Question is unanswered, help us to find answer for this one

562. Which is the correct syntax of the CSS?

Answer

Correct Answer: <p style="font-size:14pt"> Welcome to teds-india.</p>

Note: This Question is unanswered, help us to find answer for this one

563. Which attribute creates space between content and its container?

Answer

Correct Answer: padding

Note: This Question is unanswered, help us to find answer for this one

564. To create a layer all you need to do is assign the _______ attribute to your style

Answer

Correct Answer: position

Note: This Question is unanswered, help us to find answer for this one

565. Which of the following elements takes up the full width available, and has a line break before and after it?

Answer

Correct Answer: Block element

Note: This Question is unanswered, help us to find answer for this one

566. An attribute selector allows you to select an element with a specific attribute. To select a <input type="submit"> you would use:

Answer

Correct Answer: input[type=submit] { }

Note: This Question is unanswered, help us to find answer for this one

567. What selector is used to select all elements?

Answer

Correct Answer: *

Note: This Question is unanswered, help us to find answer for this one

568. How do you remove browser default margin and padding settings?

Answer

Correct Answer: Set margin and padding to 0

Note: This Question is unanswered, help us to find answer for this one

569. Which of the following is the correct syntax for using z-index?

Answer

Correct Answer: img {z-index:-1;}

Note: This Question is unanswered, help us to find answer for this one

570. How much space does an element take up within the document (on modern browsers) if it has "display: none" styling applied?

Answer

Correct Answer: It will not take up any space.

Note: This Question is unanswered, help us to find answer for this one

571. If a block element might not have enough space to display all of its content, which property might you use to enable scrollbars if they're needed?

Answer

Correct Answer: overflow: auto

Note: This Question is unanswered, help us to find answer for this one

572. #container {margin: 20px 30px 10px 50px} The margin-right value will be...

Answer

Correct Answer: 30px

Note: This Question is unanswered, help us to find answer for this one

573. Which of the following is the correct syntax for importing one style sheet into another?

Answer

Correct Answer: @import url("other.css");

Note: This Question is unanswered, help us to find answer for this one

574. How can you create responsive websites through css?

Answer

Correct Answer: Use an @media query.

Note: This Question is unanswered, help us to find answer for this one

575. Which of these has the highest priority?

Answer

Correct Answer: inline style

Note: This Question is unanswered, help us to find answer for this one

576. How would you hide an element using the display property?

Answer

Correct Answer: display: none;

Note: This Question is unanswered, help us to find answer for this one

577. Which statement is correct?

Answer

Correct Answer: All

Note: This Question is unanswered, help us to find answer for this one

578. The CSS3 property for transparency is...

Answer

Correct Answer: opacity

Note: This Question is unanswered, help us to find answer for this one

579. Which of the following will set h1 to 16 pixels, bold, and underline?

Answer

Correct Answer: h1 {font-size: 16px; font-weight: bold; text-decoration: underline;}

Note: This Question is unanswered, help us to find answer for this one

580. With what characters are multiple fonts separated with?

Answer

Correct Answer: commas

Note: This Question is unanswered, help us to find answer for this one

581. True or False: The universal selector, written "*", matches the name of any element type. It matches any single element in the document tree.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

582. Which Represents a line that acts as a boundary?

Answer

Correct Answer: Border

Note: This Question is unanswered, help us to find answer for this one

583. Which property increments or decrements the space between characters?

Answer

Correct Answer: letter-spacing

Note: This Question is unanswered, help us to find answer for this one

584. What css selector selects the document’s root element

Answer

Correct Answer: :root

Note: This Question is unanswered, help us to find answer for this one

585. How do you set the text color in a css rule?

Answer

Correct Answer: color:

Note: This Question is unanswered, help us to find answer for this one

586. Which of these examples of using the clear property are correct?

Answer

Correct Answer: .text_line { clear:both; }

Note: This Question is unanswered, help us to find answer for this one

587. With what character does a declaration block start and end with?

Answer

Correct Answer: starts with { and ends with }

Note: This Question is unanswered, help us to find answer for this one

588. The completion of a CSS Transition generates a corresponding

Answer

Correct Answer: DOM Event

Note: This Question is unanswered, help us to find answer for this one

589. Which of the following applies a 2D or 3D transformation to an element?

Answer

Correct Answer: transform

Note: This Question is unanswered, help us to find answer for this one

590. What does the property font-family do?

Answer

Correct Answer: Specifies which font to use

Note: This Question is unanswered, help us to find answer for this one

591. Which of the following will create a box with a 2 pixel border on the top, 1 pixel border on the bottom, and no other borders?

Answer

Correct Answer: #box {border: 2px, 0px, 1px, 0px;}

Note: This Question is unanswered, help us to find answer for this one

592. Hex values are written as 3 double digit numbers, starting with a

Answer

Correct Answer: # sign

Note: This Question is unanswered, help us to find answer for this one

593. Which statement is true about the following markup? <img src="klematis.jpg" width="150" height="113" alt="klematis" style="opacity:0.4;filter:alpha(opacity=40)" />

Answer

Correct Answer: This image will be partially transparent.

Note: This Question is unanswered, help us to find answer for this one

594. Which property can be used to decorate links by specifying no underline with the text?

Answer

Correct Answer: text-decoration: none;

Note: This Question is unanswered, help us to find answer for this one

595. The ________________ specifies whether a border should be solid, dashed line, doted line, double line, groove etc.

Answer

Correct Answer: border-style

Note: This Question is unanswered, help us to find answer for this one

596. How can you assign a higher specificity to a property value?

Answer

Correct Answer: body { background: blue !important; }

Note: This Question is unanswered, help us to find answer for this one

597. True or False? With CSS, it's possible to customize the numbers that appear next to list items within <ol> elements.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

598. Which of the following statements is true given the following css and markup? a.red:visited {color:#FF0000;} <a class="red" href="css_syntax.asp">CSS Syntax</a>

Answer

Correct Answer: If the link in the example has been visited, it will be displayed in red

Note: This Question is unanswered, help us to find answer for this one

599. What is one way to center a fixed-width element (relative to its container)?

Answer

Correct Answer: margin: 0 auto;

Note: This Question is unanswered, help us to find answer for this one

600. In margin: 10px 20px 40px 30px; what will be the bottom margin?

Answer

Correct Answer: 40px

Note: This Question is unanswered, help us to find answer for this one

601. Which property can be used to specify all the list properties into a single expression?

Answer

Correct Answer: list-style

Note: This Question is unanswered, help us to find answer for this one

602. How would you define class 'myclass' that sets the width of an element to 640px and the height to 480px ?

Answer

Correct Answer: .myclass {width: 640px; height: 480px;}

Note: This Question is unanswered, help us to find answer for this one

603. Which of the following css declarations will create bold text?

Answer

Correct Answer: {font-weight: bold;}

Note: This Question is unanswered, help us to find answer for this one

604. What hyperlink property is typically used to specify whether destination links should open in a new window or in a new tab of an existing window?

Answer

Correct Answer: target="_blank"

Note: This Question is unanswered, help us to find answer for this one

605. What rule is generally used, for responsive web design, to target devices with different widths?

Answer

Correct Answer: @media

Note: This Question is unanswered, help us to find answer for this one

606. The <link> tag is placed inside which section of HTML code?

Answer

Correct Answer: head section

Note: This Question is unanswered, help us to find answer for this one

607. Which of the following is NOT a CSS font property?

Answer

Correct Answer: font-invariant

Note: This Question is unanswered, help us to find answer for this one

608. Which properties is used to change the case of the text?

Answer

Correct Answer: text-transform:

Note: This Question is unanswered, help us to find answer for this one

609. Which CSS property contains the following attributes: normal, italic, oblique

Answer

Correct Answer: font-style

Note: This Question is unanswered, help us to find answer for this one

610. Which of the following sets the stack order of a positioned element?

Answer

Correct Answer: z-index

Note: This Question is unanswered, help us to find answer for this one

611. Which tag is used to specify that the browser is to fetch and use an external stylesheet file?

Answer

Correct Answer: <link>

Note: This Question is unanswered, help us to find answer for this one

612. Which css rule will make an element with an id of "box" invisible?

Answer

Correct Answer: #box {visibility:hidden}

Note: This Question is unanswered, help us to find answer for this one

613. Which of the following is correct to transform text into uppercase?

Answer

Correct Answer: h1 {text-transform:uppercase;}

Note: This Question is unanswered, help us to find answer for this one

614. Which of the following units of measurement can be used when creating a margin?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

615. Can web fonts be imported with .css files directly

Answer

Correct Answer: Yes, by using @import url("fontname");

Note: This Question is unanswered, help us to find answer for this one

616. Which of the following is NOT a valid technique for applying styles to a document?

Answer

Correct Answer: exceptional styles

Note: This Question is unanswered, help us to find answer for this one

617. Which of the following selects the active link?

Answer

Correct Answer: :active

Note: This Question is unanswered, help us to find answer for this one

618. The ___________ property allows to specify how much space appear between the content of an element and it's border.

Answer

Correct Answer: padding

Note: This Question is unanswered, help us to find answer for this one

619. How can you add a comment to a stylesheet?

Answer

Correct Answer: Enclose comment between opening and closing comment markers as follows: /* and */

Note: This Question is unanswered, help us to find answer for this one

620. Which of the following defines the tiling pattern for one or more background images?

Answer

Correct Answer: background-repeat

Note: This Question is unanswered, help us to find answer for this one

621. Which of the following sets how a background image will be repeated?

Answer

Correct Answer: background-repeat

Note: This Question is unanswered, help us to find answer for this one

622. Which of the following is an example of using group selectors?

Answer

Correct Answer: h1, h2, p { color:green;}

Note: This Question is unanswered, help us to find answer for this one

623. Selects all elements with class="intro"

Answer

Correct Answer: .intro

Note: This Question is unanswered, help us to find answer for this one

624. What is the main difference between styling a <span> and a <div> element?

Answer

Correct Answer: <span> is an inline element by default, while <div> is a block element.

Note: This Question is unanswered, help us to find answer for this one

625. ...................... is used to import an external style sheet in a manner similar to the <link> element.

Answer

Correct Answer: @import

Note: This Question is unanswered, help us to find answer for this one

626. Which of these is not a vendor prefix?

Answer

Correct Answer: They are all vendor prefixes.

Note: This Question is unanswered, help us to find answer for this one

627. Which property specifies the spacing between lines?

Answer

Correct Answer: line-height

Note: This Question is unanswered, help us to find answer for this one

628. What is the best way to insert CSS styles across multiple HTML files?

Answer

Correct Answer: External CSS

Note: This Question is unanswered, help us to find answer for this one

629. What is CSS valid syntax for setting the margin value to 0?

Answer

Correct Answer: margin: 0;

Note: This Question is unanswered, help us to find answer for this one

630. Which are the Starting and Ending tag in CSS?

Answer

Correct Answer: <Style></Style>

Note: This Question is unanswered, help us to find answer for this one

631. Which of the following pseudo-elements are invalid?

Answer

Correct Answer: ;last-paragraph

Note: This Question is unanswered, help us to find answer for this one

632. Which answer is equivalent to this: h1 { font-family: sans-serif; } h2 { font-family: sans-serif; } h3 { font-family: sans-serif; }

Answer

Correct Answer: h1, h2, h3 { font-family: sans-serif; }

Note: This Question is unanswered, help us to find answer for this one

633. With these specifications, how will the paddings appear in browser? padding: 6px 3px 0px 3px;

Answer

Correct Answer: top: 6px, right: 3px, bottom: 0px, left: 3px,

Note: This Question is unanswered, help us to find answer for this one

634. What color does this hexadecimal code represent: #000?

Answer

Correct Answer: black

Note: This Question is unanswered, help us to find answer for this one

635. You can apply a style to a selector within a selector without affecting the same selector outside the parent selector.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

636. What does the border-radius property do?

Answer

Correct Answer: Creates rounded corners

Note: This Question is unanswered, help us to find answer for this one

637. Which is the correct syntax of css border?

Answer

Correct Answer: .two { border: solid 6px #fff; position: relative; z-index: 1; }

Note: This Question is unanswered, help us to find answer for this one

638. What does the scale() method do?

Answer

Correct Answer: It increases or decreases the size of element

Note: This Question is unanswered, help us to find answer for this one

639. To set the bottom border width...

Answer

Correct Answer: border-bottom-width:15px;

Note: This Question is unanswered, help us to find answer for this one

640. Which answer best describes the following statement? <div style="text-align:center; font-size: 14px;"></div>

Answer

Correct Answer: Inline CSS

Note: This Question is unanswered, help us to find answer for this one

641. What is the correct method of changing text color?

Answer

Correct Answer: {color:#000000;}

Note: This Question is unanswered, help us to find answer for this one

642. Which of the following code elements will ensure that all images have no border?

Answer

Correct Answer: img { border: none; }

Note: This Question is unanswered, help us to find answer for this one

643. Which of the following is correct to transform text to lowercase?

Answer

Correct Answer: p {text-transform:lowercase;}

Note: This Question is unanswered, help us to find answer for this one

644. The default value of the font-variant property is

Answer

Correct Answer: normal

Note: This Question is unanswered, help us to find answer for this one

645. The background image for a page can be set like this:

Answer

Correct Answer: body {background-image:url('sand.gif');}

Note: This Question is unanswered, help us to find answer for this one

646. What is the difference between ID and Class?

Answer

Correct Answer: You can use multiple classes on the same element, but you can't do that with ID's

Note: This Question is unanswered, help us to find answer for this one

647. What is the use of margin?

Answer

Correct Answer: To set space around element.

Note: This Question is unanswered, help us to find answer for this one

648. Which of the following will set Verdana as the entire page's font type?

Answer

Correct Answer: body {font-family: Verdana;}

Note: This Question is unanswered, help us to find answer for this one

649. Negative values for transition-duration are treated as

Answer

Correct Answer: 0

Note: This Question is unanswered, help us to find answer for this one

650. Block elements can be centered by setting the left and right margins to:

Answer

Correct Answer: auto

Note: This Question is unanswered, help us to find answer for this one

651. Which of these can be used to apply style rules to elements in a document?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

652. What css selector Insert content before every <p> element

Answer

Correct Answer: p:before

Note: This Question is unanswered, help us to find answer for this one

653. Which css property can be used to display text with all uppercase, all lowercase, or with forced first-letter capitalization?

Answer

Correct Answer: text-transform

Note: This Question is unanswered, help us to find answer for this one

654. Which of the following removes the bullet from an unordered list?

Answer

Correct Answer: list-style-type: none;

Note: This Question is unanswered, help us to find answer for this one

655. A class is prefaced by what symbol?

Answer

Correct Answer: .

Note: This Question is unanswered, help us to find answer for this one

656. How do you display hyperlinks without an underline?

Answer

Correct Answer: a {text-decoration:none}

Note: This Question is unanswered, help us to find answer for this one

657. Which of the following will set the entire page background color?

Answer

Correct Answer: body {background-color:#FFFFFF;}

Note: This Question is unanswered, help us to find answer for this one

658. What property changes the text color of an element?

Answer

Correct Answer: color

Note: This Question is unanswered, help us to find answer for this one

659. Which HTML attribute is used to define inline styles?

Answer

Correct Answer: style

Note: This Question is unanswered, help us to find answer for this one

660. What is the correct way to set the color of hover links?

Answer

Correct Answer: <style type="text/css"> a:hover {color:#000000} </style>

Note: This Question is unanswered, help us to find answer for this one

661. Which of the following is true for setting font type?

Answer

Correct Answer: p { font-family:"Times New Roman",Georgia,Serif; }

Note: This Question is unanswered, help us to find answer for this one

662. What property is used to a set maximum height for an element?

Answer

Correct Answer: max-height

Note: This Question is unanswered, help us to find answer for this one

663. Which of the following sets all the properties for a list in one declaration?

Answer

Correct Answer: list-style

Note: This Question is unanswered, help us to find answer for this one

664. What is the correct selector format for ID elements in CSS, where id_name is unique ID name to be formatted?

Answer

Correct Answer: #id_name { }

Note: This Question is unanswered, help us to find answer for this one

665. What property is used to a set minimum height for an element?

Answer

Correct Answer: min-height

Note: This Question is unanswered, help us to find answer for this one

666. Which of the following always refers to text color?

Answer

Correct Answer: color

Note: This Question is unanswered, help us to find answer for this one

667. Colors in CSS can be specified by the following methods:

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

668. How do you designate an inline style?

Answer

Correct Answer: style = " "

Note: This Question is unanswered, help us to find answer for this one

669. What does the float property do?

Answer

Correct Answer: Aligns HTML elements to the right or left while allowing content to flow around it

Note: This Question is unanswered, help us to find answer for this one

670. Which styles of border can be look in dotted?

Answer

Correct Answer: border-style: dotted;

Note: This Question is unanswered, help us to find answer for this one

671. What's the name of the layout technique that relies on CSS3 media queries to apply different styles based on the width of the browser window?

Answer

Correct Answer: Responsive

Note: This Question is unanswered, help us to find answer for this one

672. What does background-origin property do?

Answer

Correct Answer: It specifies the positioning area of the background images.

Note: This Question is unanswered, help us to find answer for this one

673. Which states whether the text is underlined or not?

Answer

Correct Answer: text-decoration:

Note: This Question is unanswered, help us to find answer for this one

674. How to apply the text-shadow around the text?

Answer

Correct Answer: <p style="text-shadow:6px 6px 10px #FF0000 "> Text-shadow is of red color. </p>

Note: This Question is unanswered, help us to find answer for this one

675. Which is the correct syntax for centering the text in the header?

Answer

Correct Answer: h1 {text-align: center;}

Note: This Question is unanswered, help us to find answer for this one

676. Which value is used to define a dashed border?

Answer

Correct Answer: dashed

Note: This Question is unanswered, help us to find answer for this one

677. Which of the following places one or more images in the background of the element?

Answer

Correct Answer: background-image

Note: This Question is unanswered, help us to find answer for this one

678. Hex colors are based off of what other web based color mode?

Answer

Correct Answer: RGB

Note: This Question is unanswered, help us to find answer for this one

679. __________ property is mostly used to remove underlines from links:

Answer

Correct Answer: text-decoration

Note: This Question is unanswered, help us to find answer for this one

680. Which answer best describes the following css rule? a {text-decoration:none;}

Answer

Correct Answer: Links will be styled with no underlines

Note: This Question is unanswered, help us to find answer for this one

681. The id selector uses the id attribute of the HTML element, and is defined with a...

Answer

Correct Answer: "#"

Note: This Question is unanswered, help us to find answer for this one

682. In reality layers are often used in more dynamic ways:

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

683. Which of the following CSS declarations would change the border style?

Answer

Correct Answer: border-style: solid;

Note: This Question is unanswered, help us to find answer for this one

684. Which of the following characters is used to end a css declaration block?

Answer

Correct Answer: }

Note: This Question is unanswered, help us to find answer for this one

685. Which of the following CSS3 properties is used to round the corners of elements?

Answer

Correct Answer: border-radius

Note: This Question is unanswered, help us to find answer for this one

686. In which example below will all HTML elements with class="master" will be center-aligned?

Answer

Correct Answer: .master {text-align:center;}

Note: This Question is unanswered, help us to find answer for this one

687. True or False: Hexadecimal color values are supported in all major browsers.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

688. In CSS, it is possible to specify different padding for different sides?

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

689. How do you add a background color?

Answer

Correct Answer: div {background-color : red}

Note: This Question is unanswered, help us to find answer for this one

690. Which property can be used to control the flow and formatting of text?

Answer

Correct Answer: white-space

Note: This Question is unanswered, help us to find answer for this one

691. Which syntax displays hyperlinks with an underline?

Answer

Correct Answer: a {text-decoration: underline}

Note: This Question is unanswered, help us to find answer for this one

692. What is the default file extension for a CSS style sheet?

Answer

Correct Answer: .css

Note: This Question is unanswered, help us to find answer for this one

693. What do the height and width CSS dimension properties allow you to control?

Answer

Correct Answer: the height and width of an element

Note: This Question is unanswered, help us to find answer for this one

694. How do you make the text bold?

Answer

Correct Answer: font-weight: bold;

Note: This Question is unanswered, help us to find answer for this one

695. What does CSS define in HTML?

Answer

Correct Answer: How to display HTML elements

Note: This Question is unanswered, help us to find answer for this one

696. Which CSS property can provide an effect when changing from one style to another, without using Flash animations or JavaScript?

Answer

Correct Answer: transition

Note: This Question is unanswered, help us to find answer for this one

697. The CSS list properties allow you to:

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

698. Which of these is the correct format for specifying a color?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

699. What symbol do you use in CSS to call out to an ID?

Answer

Correct Answer: #

Note: This Question is unanswered, help us to find answer for this one

700. A ___________ property can help you to create more complex webpage layouts

Answer

Correct Answer: z-index

Note: This Question is unanswered, help us to find answer for this one

701. How do you add a background color for all "<h1>" elements?

Answer

Correct Answer: h1 { background-color: #FFFFFF; }

Note: This Question is unanswered, help us to find answer for this one

702. Which tag is used to link External Style Sheets?

Answer

Correct Answer: <link>

Note: This Question is unanswered, help us to find answer for this one

703. When does aligning a block element have no effect?

Answer

Correct Answer: when it's width is set to 100%

Note: This Question is unanswered, help us to find answer for this one

704. What are the possible values of the property background-attachment?

Answer

Correct Answer: Both scroll and fixed

Note: This Question is unanswered, help us to find answer for this one

705. .center {text-align:center;} is an example of

Answer

Correct Answer: the class Selector

Note: This Question is unanswered, help us to find answer for this one

706. What pseudo-class need to be used to style a link which has the mouse over it?

Answer

Correct Answer: a:hover

Note: This Question is unanswered, help us to find answer for this one

707. Which is the correct syntax for applying background color to links?

Answer

Correct Answer: a:link {background-color:#B2FF99;}

Note: This Question is unanswered, help us to find answer for this one

708. CSS colors are defined using a _________ notation for the combination of red, green and blue (rgb) color values.

Answer

Correct Answer: hexadecimal

Note: This Question is unanswered, help us to find answer for this one

709. They must be define a border-style for the border to show up. Available terms:

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

710. Which property is used to specify the kind of border to display?

Answer

Correct Answer: border-style

Note: This Question is unanswered, help us to find answer for this one

711. Which of the following is NOT a web-safe font?

Answer

Correct Answer: Zapfino

Note: This Question is unanswered, help us to find answer for this one

712. Which of these is the correct way to specify color?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

713. The class selector is used to specify a style for:

Answer

Correct Answer: a group of elements

Note: This Question is unanswered, help us to find answer for this one

714. What property alters an elements background color?

Answer

Correct Answer: background-color

Note: This Question is unanswered, help us to find answer for this one

715. Which of the following is correct CSS syntax?

Answer

Correct Answer: body {color: black;}

Note: This Question is unanswered, help us to find answer for this one

716. Which property can be used, along with a position property, to create an effect of layers?

Answer

Correct Answer: z-index

Note: This Question is unanswered, help us to find answer for this one

717. Which of the following properties is used to set a minimum width on an element?

Answer

Correct Answer: min-width

Note: This Question is unanswered, help us to find answer for this one

718. What does the background-color property do?

Answer

Correct Answer: Specifies the background color of an element

Note: This Question is unanswered, help us to find answer for this one

719. Which property can be used to set the color of a text?

Answer

Correct Answer: color

Note: This Question is unanswered, help us to find answer for this one

720. Pseudo-elements can be combined with CSS classes.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

721. Is this a proper statement? body { font-family: Arial, Helvetica, sans-serif; color: #000; background-color: #FFF; }

Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

722. Which is the correct way to write a comment in CSS?

Answer

Correct Answer: /*This is a comment*/

Note: This Question is unanswered, help us to find answer for this one

723. What css selector selects all elements?

Answer

Correct Answer: *

Note: This Question is unanswered, help us to find answer for this one

724. The id selector uses the id attribute of the HTML element, and is defined with a

Answer

Correct Answer: "#"

Note: This Question is unanswered, help us to find answer for this one

725. Dimension properties allow you to control:

Answer

Correct Answer: the height and width of an element

Note: This Question is unanswered, help us to find answer for this one

726. Which answer best describes the purpose of the following markup? <link rel="stylesheet" href="style.css" type="text/css" />

Answer

Correct Answer: To call an external stylesheet

Note: This Question is unanswered, help us to find answer for this one

727. How do you add a background color for all <h1> elements?

Answer

Correct Answer: h1 {background-color:#FFFFFF;}

Note: This Question is unanswered, help us to find answer for this one

728. Which tag is used to define an Internal Style Sheet?

Answer

Correct Answer: <style>

Note: This Question is unanswered, help us to find answer for this one

729. In an HTML document, where is the correct place to refer to an external CSS file?

Answer

Correct Answer: In the <head> section

Note: This Question is unanswered, help us to find answer for this one

730. Which of the following determines whether the text should be displayed as italics or regular text?

Answer

Correct Answer: font-style

Note: This Question is unanswered, help us to find answer for this one

731. CSS stands for

Answer

Correct Answer: Cascading Style Sheets

Note: This Question is unanswered, help us to find answer for this one

732. Which configuration of the web elements in the page markup gives you great flexibility in the design of your site?

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

733. What is the extension for an external style sheet?

Answer

Correct Answer: .css

Note: This Question is unanswered, help us to find answer for this one

734. An ID is prefaced by what symbol?

Answer

Correct Answer: #

Note: This Question is unanswered, help us to find answer for this one

735. Which of these is the correct CSS syntax for specifying the left margin of an element?

Answer

Correct Answer: p {margin-left:20px;}

Note: This Question is unanswered, help us to find answer for this one

736. Which HTML tag is used to define an internal style sheet?

Answer

Correct Answer: <style>

Note: This Question is unanswered, help us to find answer for this one

737. Where in an HTML document is the correct place to refer to an external style sheet?

Answer

Correct Answer: In the <head> section

Note: This Question is unanswered, help us to find answer for this one

738. What should CSS be used for?

Answer

Correct Answer: styling

Note: This Question is unanswered, help us to find answer for this one

739. Which symbol is used to define an ID?

Answer

Correct Answer: # (pound sign)

Note: This Question is unanswered, help us to find answer for this one

740. Which character, followed by the selector's name, is used for defining ID selectors?

Answer

Correct Answer: #

Note: This Question is unanswered, help us to find answer for this one

741. What does CSS stand for?

Answer

Correct Answer: Cascading Style Sheets

Note: This Question is unanswered, help us to find answer for this one

742. Which contemporary web browser(s) support CSS?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

743. .css files may be created using what software?

Answer

Correct Answer: All of these, any text editor will do.

Note: This Question is unanswered, help us to find answer for this one

744. The background color can be specified by:

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

745. Which properties can be applied to first-line pseudo-element?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

746. Which element/pseudo-element pair can be used to create a mouseover effect on all links?

Answer

Correct Answer: a:hover

Note: This Question is unanswered, help us to find answer for this one

747. Which of the following increases or decreases the horizontal space between characters?

Answer

Correct Answer: letter-spacing

Note: This Question is unanswered, help us to find answer for this one

748. The _________ means an element that has the user's mouse pointer hovering over it.

Answer

Correct Answer: a:hover

Note: This Question is unanswered, help us to find answer for this one

749. Which property is used to control the space between the border and content in a table?

Answer

Correct Answer: padding

Note: This Question is unanswered, help us to find answer for this one

750. Internet Explorer supports the fixed value only if...

Answer

Correct Answer: !DOCTYPE is specified.

Note: This Question is unanswered, help us to find answer for this one

751. Which of the following is true about vertical-align property?

Answer

Correct Answer: It sets the vertical alignment of an element.

Note: This Question is unanswered, help us to find answer for this one

752. In the CSS box model, where is the margin located?

Answer

Correct Answer: Immediately outside the box border

Note: This Question is unanswered, help us to find answer for this one

753. The_____________ property indicates whether a cell without any content should have a border displayed.

Answer

Correct Answer: empty-cells

Note: This Question is unanswered, help us to find answer for this one

754. Which property is used to specify table borders in CSS?

Answer

Correct Answer: border

Note: This Question is unanswered, help us to find answer for this one