The pseudo-class :nth-of-type(2) in CSS targets the ________ of its type.

  • any element
  • first element
  • last element
  • second element
The pseudo-class :nth-of-type(2) in CSS targets the second element of its type. It allows you to select and style the second occurrence of an element type within its parent container. This is useful for creating specific styles for the second element, such as the second paragraph or the second list item.

What does the text-transform property do in CSS?

  • Adjusts the text's spacing
  • Alters the text's font size
  • Changes the text's color
  • Transforms the text into uppercase
The text-transform property in CSS is used to control the capitalization of text. Setting it to "uppercase" transforms the text to all uppercase letters, while "lowercase" makes it all lowercase.

Using media queries, you can apply styles conditionally based on the ______ of the device or browser window.

  • color
  • sound
  • temperature
  • width
Media queries in CSS allow you to conditionally apply styles based on the width (or dimensions) of the device or browser window. By specifying different rules for various screen sizes, you can create responsive designs that adapt to different viewing environments.

You've noticed that your web fonts are causing a delay in page rendering. Which property can you adjust to control how these fonts are displayed during the load process?

  • font-display
  • font-family
  • font-rendering
  • font-weight
To control how web fonts are displayed during the load process, you can adjust the font-display property in CSS. This property allows you to specify how the browser should handle font loading and rendering, with options like auto, swap, block, fallback, and optional. It helps you optimize the user experience when web fonts are slow to load or unavailable.

To apply an ease-in-out timing function to a transition, you'd set transition-timing-function to ________.

  • ease-in
  • ease-in-out
  • ease-out
  • linear
In CSS transitions, the transition-timing-function property controls the timing function for the transition. The ease-in-out option creates a smooth transition that starts slowly, accelerates in the middle, and slows down at the end. This is a common choice for animations that feel natural and pleasing to the eye.

Which CSS property allows you to control the speed curve of an animation?

  • animation-ease
  • animation-speed-curve
  • animation-timing-function
  • animation-transition
The animation-timing-function property is used to control the speed curve of an animation. It allows you to specify how the animation progresses through time, giving you control over the easing and acceleration of the animation.

The CSS unit vh represents a percentage of the ________.

  • Font Size
  • Height
  • Viewport
  • Width
The CSS unit 'vh' represents a percentage of the viewport's height. This means that 1vh is equal to 1% of the height of the viewport in which the web page is displayed. It's a relative unit often used for responsive design.

The @font-face rule allows web designers to use fonts that are not ________ on the user's machine.

  • available
  • compatible
  • installed
  • recognized
The @font-face rule in CSS allows web designers to use fonts that are not installed on the user's machine. This is useful for ensuring consistent typography across different devices.

With PostCSS, developers can write plugins to create custom ________ for their projects.

  • Compilers
  • Frameworks
  • Templates
  • Transformations
PostCSS is a versatile tool that allows developers to create custom transformations or plugins for their projects. These transformations can be used to modify or extend the functionality of CSS, making it a powerful and flexible tool for developers.

Which CSS property allows you to set a graphical element to be used as a mask against an element?

  • element-mask
  • mask-clip
  • mask-image
  • mask-layer
The CSS property that allows you to set a graphical element to be used as a mask against another element is mask-image. This property lets you specify an image or SVG as a mask, which defines the transparency of an element based on the mask's alpha channel. It's often used for creating complex visual effects and overlays.