CSS Basics

The 'CSS Basics' test covers central topics such as selectors, box model, and flexbox. It also includes customization of colors, fonts, and layout techniques.

Sample Questions

  1. Which CSS property is used to display text in bold?

    • font-weight
    • text-style
    • text-decoration
    • font-style
  2. How can you color the background of a webpage black in CSS?

    • color: black;
    • background-color: black;
    • back-color: black;
    • bg-color: black;
  3. Which property is used to set the inner spacing of an element?

    • border
    • spacing
    • padding
    • margin