CSS Quiz: Test Your Knowledge of Cascading Style Sheets, Exams of Advanced Education

A series of multiple-choice questions designed to assess understanding of fundamental css concepts. It covers topics such as css syntax, selectors, properties, and basic styling techniques. The quiz is suitable for beginners learning css and can be used as a self-assessment tool to gauge progress.

Typology: Exams

2024/2025

Available from 02/12/2025

Prof-Morrison
Prof-Morrison šŸ‡ŗšŸ‡ø

1

(2)

11K documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
w3schools CSS Quiz @ 2025
1. What does CSS stand for? - ANSWER Cascading Style Sheets
2. What is the correct HTML for referring to an external style sheet? - ANSWER <link
rel="stylesheet" type="text/css" href="mystyle.css">
3. Where in an HTML document is the correct place to refer to an external style sheet? -
ANSWER In the <head> section
4. Which HTML tag is used to define an internal style sheet? - ANSWER <style>
5. What HTML attribute is used to specify inline styles? - ANSWER style
6. What is the correct CSS syntax? - ANSWER body {color: black;}
7. How would you add a comment to your CSS file? - ANSWER /* this is a comment */
8. Which property is used to change the background color? - ANSWER
background-color
9. How do you add a background color for all <h1> elements? - ANSWER h1
{background-color:#FFFFFF;}
10. Which CSS property is used to change the text color of an element? - ANSWER
color
11. Which CSS property controls the text size? - ANSWER font-size
pf3

Partial preview of the text

Download CSS Quiz: Test Your Knowledge of Cascading Style Sheets and more Exams Advanced Education in PDF only on Docsity!

w3schools CSS Quiz @ 2025

  1. What does CSS stand for? - ANSWER Cascading Style Sheets
  2. What is the correct HTML for referring to an external style sheet? -rel="stylesheet" type="text/css" href="mystyle.css"> ANSWER section
  3. Which HTML tag is used to define an internal style sheet? - ANSWER
  4. What is the correct CSS syntax for making all the

    elements bold? -{font-weight:bold;} ANSWER p

  5. How to provide hyperlinks without an underline? -{text-decoration:none;} ANSWER a
  6. How would you cause the first letter of each word in text to start with a capital? -ANSWER text-transform:capitalize
  7. Which properties could you use to alter the font for an element? -font-family and font can be used ANSWER Both
  8. How do you give the text in bold? - ANSWER font-weight:bold;
  9. How would you make a border like this? Top border = 10 pixelsBottom border = 5 pixels Left border = 20 pixelsRight border = 1pixel? - ANSWER border-width:10px 1px 5px 20px;
  10. Which property do you use to modify the left margin of an element? - ANSWERmargin-left
  11. The property Padding, does allow you to make negative values within it? - ANSWERNo
  12. How do you make a list that lists its items with squares? -square; ANSWER list-style-type: