ProTechSolution
Home
Courses
Exercises
Quiz
Roadmaps
Experts
Login
Sign Up
Bootstrap 5 UI
Programming Concepts
HTML & CSS Masterclass
HTML
CSS
JavaScript
PHP
MySQL
Bootstrap 5
C#
CSS Certification Quiz
Test your knowledge to earn your official course certificate!
1. How do you group selectors?
Separate each selector with a space
Separate each selector with a comma
Separate each selector with a plus sign
You cannot group selectors
2. What is the correct CSS syntax for making all the <p> elements bold?
p {text-size:bold;}
p {font-weight:bold;}
<p style='text-size:bold;'>
p {font:bold;}
3. How do you make a responsive image?
width: 100%; height: auto;
width: auto; height: 100%;
image: responsive;
size: 100%;
4. What does VH stand for in CSS?
Vertical Height
Visual Height
Viewport Height
Virtual Height
5. Which property is used to change the background color?
bgcolor
background-color
color
bg-color
6. What does 'justify-content' do in Flexbox?
Aligns items vertically
Aligns items horizontally
Changes the width
Wraps the items
7. Which is the correct CSS syntax?
body {color: black;}
{body:color=black;}
body:color=black;
{body;color:black;}
8. What does the 'z-index' property do?
Sets the transparency
Sets the zoom level
Specifies the stack order of an element
Changes the font size
9. Which CSS value allows an element to be sticky based on scroll position?
position: fixed;
position: sticky;
position: absolute;
position: relative;
10. Which property is used for CSS Grid?
display: grid;
layout: grid;
grid: true;
grid-template: on;
11. Which CSS property is used to clear floats?
clear
float-clear
clear-float
stop-float
12. How do you use a CSS variable?
use(--color)
get(--color)
var(--color)
val(--color)
13. What is the default value of the position property?
relative
fixed
absolute
static
14. Which CSS property is used to change the text color of an element?
fgcolor
color
text-color
font-color
15. How do you insert a comment in a CSS file?
/* this is a comment */
// this is a comment
// this is a comment //
' this is a comment
16. How do you display hyperlinks without an underline?
a {text-decoration:none;}
a {text-decoration:no-underline;}
a {underline:none;}
a {decoration:no-underline;}
17. What is the correct CSS syntax to change the font name?
font-name: Arial;
font-family: Arial;
font: Arial;
font-face: Arial;
18. How do you select all p elements inside a div element?
div p
div + p
div ~ p
div > p
19. Which property is used to change the font of an element?
font-weight
font-family
font-style
font
20. Which CSS property controls the text size?
text-size
text-style
font-size
font-style
Submit Quiz (20 Questions)