LinkedIn CSS Skill Quiz Answers 2021

  1. In the following example, which selector has the highest specificity ranking for selecting the anchor link element?
  2. Using an attribute selector, how would you select an <a> element with a “title” attribute?
  3. 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 it you need to support older browser version. What are two valid techniques used to clear floats?
  4. What element(s) do the following selectors match to?
  5. When adding transparency styles, what is the difference between using the opacity property versus the background property with an rgba() value?
  6. What is true of block and inline elements? (Alternative: Which statement about block and inline elements is true?)
  7. CSS grid introduced a new length unit, fr, to create flexible grid tracks. Referring to the code sample below, what will the widths of the three columns be?
  8. What is the line-height property primarily used for?
  9. Three of these choices are true about class selectors. Which is NOT true?
  10. 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?
  11. In the shorthand example below, which individual background properties are represented?
  12. In the following example, according to cascading and specificity rules, what color will the link be?
  13. 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?
  14. What is the difference between the following line-height settings?
  15. In the following example, what color will paragraph one and paragraph two be? (Alternative: In this example, what color will paragraphs one and two be?)
  16. What are three valid ways of adding CSS to an HTML page?
  17. Which of the following is true of the SVG image format? (Alternative: Which statement about the SVG image format is true?)
  18. In the example below, when will the color pink be applied to the anchor element?
  19. To change the color of an SVG using CSS, which property is used?
  20. When using position: fixed, what will the element always be positioned relative to?
  21. By default, a background image will repeat \_\_\_
  22. When using media queries, media types are used to target a device category. Which choice lists current valid media types?
  23. How would you make the first letter of every paragraph on the page red?
  24. In this example, what is the selector, property, and value?
  25. What is the rem unit based on?
  26. Which of these would give a block element rounded corners?
  27. In the following media query example, what conditions are being targeted?
  28. 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?
  29. Which of the following is not a valid color value?
  30. What is the vertical gap between the two elements below?
  31. When using the Flexbox method, what property and value is used to display flex items in a column?
  32. Which type of declaration will take precedence?
  33. The flex-direction property is used to specify the direction that flex items are displayed. What are the values used to specify the direction of the items in the following examples?
  34. There are two sibling combinators that can be used to select elements contained within the same parent element; the general sibling combinator (~) and the adjacent sibling combinator (+). Referring to example below, which elements will the styles be applied to?
  35. When using flexbox, the “justify-content” property can be used to distribute the space between the flex items along the main axis. Which value should be used to evenly distribute the flex items within the container shown below?
  36. There are many advantages to using icon fonts. What is one of those advantages?
  37. What is the difference between display:none and visibility:hidden?
  38. What selector and property would you use to scale an element to be 50% smaller on hover?
  39. Which statement regarding icon fonts is true?
  40. The values for the font-weight property can be keywords or numbers. For each numbered value below, what is the associated keyword?
  41. If the width of the container is 500 pixels, what would the width of the three columns be in this layout?
  42. Using the :nth-child pseudo class, what would be the most efficient way to style every third item in a list, no matter how many items are present, starting with item 2?
  43. Which selector would select only internal links within the current page?
  44. What is not true about class selectors?
  45. What is the difference between the margin and padding properties?
  46. 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?
  47. Is there an error in this code? If so, find the best description of the problem
  48. Which style places an element at a fixed location within its container?
  49. The calc() CSS function is often used for calculating relative values. In the example below, what is the specified margin-left value?
  50. What is the CSS selector for an <a> tag containing the title attribute?
  51. Which code would you use to absolutely position an element of the logo class?
  52. In this example, what color will Paragraph 1 be?
  53. What is the ::placeholder pseudo-element used for?
  54. Which statement is true of the single colon (:) or double colon (::) notations for pseudo-elements-for example, ::before and :before?
  55. Which choice is not valid value for the font-style property?
  56. When would you use the @font-face method?
  57. When elements within a container overlap, the z-index property can be used to indicate how those items are stacked on top of each other. Which set of statements is true?
  58. 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?
  59. In Chrome’s Developer Tools view, where are the default styles listed?
  60. While HTML controls document structure, CSS controls _.
  61. What is the recommended name you should give the folder that holds your project’s images?
  62. What is an advantage of using inline CSS?
  63. Which W3C status code represents a CSS specification that is fully implemented by modern browsers?
  64. Are any of the following declarations invalid?
  65. Which CSS will cause your links to have a solid blue background that changes to semitransparent on hover?
  66. Which CSS rule takes precedence over the others listed?
  67. The body of your page includes some HTML sections. How will it look with the following CSS applied?
  68. Which CSS keyword can you use to override standard source order and specificity rules?
  69. You can use the _ pseudo-class to set a different color on a link if it was clicked on.
  70. Which color will look the brightest on your screen, assuming the background is white?
  71. Which CSS selector can you use to select all elements on your page associated with the two classes header and clear?
  72. A universal selector is specified using a(n) _.
  73. In the following CSS code, ‘h1’ is the _, while ‘color’ is the _.
  74. What is an alternate way to define the following CSS rule?
  75. 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?
  76. What is one disadvantage of using a web font service?
  77. How do you add Google fonts to your project?
  78. Which choice is not a valid color?
  79. Using the following HTML and CSS example, what will equivalent pixel value be for .em and .rem elements?
  80. In this example, according to cascading and specificity rules, what color will the link be?
  81. What property is used to adjust the space between text characters?
  82. What is the correct syntax for changing the curse from an arrow to a pointing hand when it interacts with a named element?
  83. What is the effect of this style?
  84. How will the grid items display?
  85. Which style rule would make the image 50% smaller during a hover?
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend