Which of the following is the correct CSS syntax to change the background color of a paragraph?

3RDQTR QUIZ NO.2

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
SANCHA ENAJE
Used 11+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
{background-color: red;}
p {background-color: red;}
p: background-color = red;
p[background-color: red]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you include an external CSS file in an HTML document?
<style src="styles.css">
<css href="styles.css">
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="styles.css">
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to apply a class selector in CSS?
.classname
#classname
classname
classname()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to make all <h1> elements bold using CSS?
h1 {font-weight: bold;}
h1: bold;
h1 {text-style: bold;}
h1 {font-bold: true;}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which property is used to change the text color in CSS?
color
text-color
font-color
text-style
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you select an element with the ID header in CSS?
header
.header
#header
@header
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the * (asterisk) selector do in CSS?
Selects all elements on the page
Selects all child elements of the parent
Selects all elements with a specific class
Selects only the body element
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
INFORMATIKA - X

Quiz
•
10th Grade
25 questions
Introduction to MS - Excel

Quiz
•
9th Grade - University
25 questions
Av1 - Revisão (parte nota 1)sobre HTML e CSS

Quiz
•
2nd Grade - University
25 questions
PTS KELAS 10 HTML Dasar

Quiz
•
10th Grade
25 questions
HTML and CSS Quiz

Quiz
•
9th - 12th Grade
25 questions
Code.org lesson 3 and 4 quiz

Quiz
•
7th Grade - University
30 questions
Y9 Python Review

Quiz
•
9th Grade - University
25 questions
Quizizz SIOTICS #1

Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade