Show List
Quiz - CSS - 2
Select the right answer for below questions:
How do you define a class in CSS?
#class-name
class-name
@class-name
.class-name
.class-name
How do you define an ID in CSS?
.id-name
#id-name
id-name
@id-name
#id-name
How do you specify multiple CSS styles for a single HTML element?
Use multiple CSS classes
Use multiple CSS IDs
Use multiple inline styles
Use multiple style tags
Use multiple CSS classes
How do you specify the background color of an element in CSS?
background: color;
bg-color: color;
color: background;
background-color: color;
background-color: color;
How do you specify the text color of an element in CSS?
text-color: color;
color: text;
text: color;
color: color;
color: color;
How do you specify the font-size of an element in CSS?
font: size;
font-size: size;
size: font;
size-font: size;
font-size: size;
How do you specify the font-family of an element in CSS?
font-type: family;
font-family: family;
family: font;
family-font: family;
font-family: family;
How do you specify the width of an element in CSS?
width: value;
w: value;
value: width;
width-value: value;
width: value;
How do you specify the height of an element in CSS?
height: value;
h: value;
value: height;
height-value: value;
height: value;
How do you specify the padding of an element in CSS?
padding: value;
p: value;
value: padding;
padding-value: value;
padding: value;
Submit
Retry
{"qz1-372309":".class-name","qz1-372310":"#id-name","qz1-372311":"Use multiple CSS classes","qz1-372312":"background-color: color;","qz1-372313":"color: color;","qz1-372314":"font-size: size;","qz1-372315":"font-family: family;","qz1-372316":"width: value;","qz1-372317":"height: value;","qz1-372318":"padding: value;"}
Leave a Comment