Which of these are valid CSS properties?
color
font-size
background-color
text-align
align-text
Which HTML attribute is used to define inline styles?
style
class
styles
font
Which of the following are valid CSS selectors?
.classname
#idname
elementname
 
:hover
What is the purpose of the declaration?
It defines the document type and version of HTML.
It links the HTML document to a CSS file.
It comments out sections of HTML code.
It specifies the character encoding for the document.
Which property is used in CSS to change the text color of an element?
color
font-color
text-color
background-color
What does CSS stand for?
Cascading Style Sheets
Computer Style Sheets
Creative Style Sheets
Colorful Style Sheets
Which CSS property controls the size of an element's font?
font-size
text-size
size
font-weight
How do you add a comment in a CSS file?
/* This is a comment */
// This is a comment
# This is a comment
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
alt
title
src
href
Which CSS property is used to create space between the element's border and its content?
padding
margin
border-spacing
spacing
Which of the following are valid CSS units?
px
em
pt
cm
dp
Which of the following are valid CSS display values?
block
inline
grid
show
visible
What does the z-index property in CSS control?
Stacking order of elements
Element's transparency
Element's position
Element's size
Which HTML attribute is used to define the character encoding for a web page?
charset
encoding
lang
type
Which of these CSS properties can be used to create rounded corners?
border-radius
corner-round
border-corner
radius-border
Which of the following are valid CSS pseudo-classes?
:hover
:focus
:active
:clicked
:selected
What is the purpose of the CSS float property?
To allow text and inline elements to wrap around it
To center an element horizontally
To fix an element at the bottom of the page
To make an element transparent
Which of the following are valid CSS length units?
px
em
rem
pt
inch
Which CSS property is used to change the background color of an element?
background-color
color
bgcolor
background-image
What does the CSS 'float' property do?
Positions an element to the left or right of its container
Centers an element horizontally
Changes the transparency of an element
Fixes an element at the top of the page
Which HTML attribute is used to specify a unique identifier for an element?
id
class
name
style
Which CSS property is used to control the spacing between lines of text?
line-height
letter-spacing
text-indent
word-spacing
Which CSS property is used to create rounded corners?
border-radius
corner-radius
round-corners
border-round
Which CSS property is used to change the font of an element?
font-family
font-style
font-weight
font-size
Which of the following are valid HTML5 input types?
email
color
date
range
blink
0
{"name":"Which of these are valid CSS properties?", "url":"https://www.quiz-maker.com/Q8NCKFHBL","txt":"Which of these are valid CSS properties?, Which HTML attribute is used to define inline styles?, Which of the following are valid CSS selectors?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}