What is the reasoning behind the Don’t Repeat Yourself principle?
Part 1 Advance HTML and CSS

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Sarhonda Wilkes
Used 67+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
It helps you stay under the HTML file character limit
HTML files with repeated code will take a very long time to load
Repeated code makes it harder to read and edit
It makes a more clean and organized website for the user
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are some ways to cut down on repetitive code in your website?
Group together multiple selectors with commas
Strategically plan ahead to make sure the site is coded concisely
Use a div to style multiple elements
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following selects all p tags with the class alert and makes them red?
p.alert {
color: red;
}
p {
.alert {
color:red;
}
.alert p{
color: red;
}
p alert{
color: red;
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can I select all h1 tags that are immediate children of div tags?
div h1 {
...
}
div > h1 {
...
}
div {
h1 {
...
}
}
.h1 div {
...
}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between <span> and <div>?
<span> is better for styling text, while <div> is better for styling images
<span> is for styling multiple elements, while <div> is for styling single elements at a time
<span> is used to group and style inline elements, while <div> creates a line break
<span> is used to style elements, while <div> is used to embed parts of other websites
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of the div tag?
To define a section of an HTML page
To group a block of elements together to format them with CSS
To efficiently apply the same style to several different elements
All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly uses div to style multiple elements the same way?
<div class="intro">
<h2>Welcome</h2>
<p>Hi, welcome to my page.</p>
</div>
<div>
<h2 class="intro">Welcome</h2>
<p class="intro">Hi, welcome to my page.</p>
</div>
<div>
.intro{
font-size: 16px;
font-style: italic;
}
<h2>Welcome</h2>
<p>Hi, welcome to my page.</p>
</div>
<h2 div class="intro">Welcome</h2>
<p div class="intro">Hi, welcome to my page.</p>
Create a free account and access millions of resources
Similar Resources on Quizizz
24 questions
HTML & CSS Review

Quiz
•
7th - 10th Grade
15 questions
1ο Κριτήριο - Εφαρμογές Πληροφορικής Α4

Quiz
•
9th - 12th Grade
15 questions
Web Design

Quiz
•
10th - 12th Grade
15 questions
Dreamweaver HTML Basic

Quiz
•
5th - 9th Grade
17 questions
Intro to Web Design

Quiz
•
9th - 12th Grade
17 questions
HTML

Quiz
•
7th - 9th Grade
17 questions
HTML

Quiz
•
7th - 12th Grade
20 questions
Criação de Páginas Web (HTML/Wordpress)

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University