What CSS will automatically align the
ITS HTML CSS 1

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
div {
margin: auto;
}
2.
FLASHCARD QUESTION
Front
What is the correct method for writing a selector and declaration? Options: h1 { color: blue;
font-size: 12px; }, <h1> { color: blue;
font-size: 12px; }, h1 /* color: blue;
font-size: 12px; */, h1 { color; blue:
font-size: 12px: }
Back
h1 { color: blue;
font-size: 12px; }
3.
FLASHCARD QUESTION
Front
Which of these elements usually deal with media or code snippets?
Back
4.
FLASHCARD QUESTION
Front
What color is the web page text:
* { font: Arial; background-color: blue; color: green;}
h1, h2, p, li {background-color: yellow; color: orange}
Back
orange
Answer explanation
The universal selector is being applied to the entire document, however the document text has more specific rules for heading 1 and 2, as well as paragraph text and list items.
5.
FLASHCARD QUESTION
Front
Which of these is a class selector? Options: .selector { }, #selector { }, selector { }, ;Selector { }
Back
.selector { }
Answer explanation
The selector has to have a ( . ) in front of the word to be a class. The hashtag in front of the word makes that an ID.
6.
FLASHCARD QUESTION
Front
Which of these has the correct syntax for an ID?
#selector-id, #SelectorId, #4selectorid, #selector id
Back
#selector-id
Answer explanation
Id’s have to have a hashtag in front of the word. IDs cannot have a capital letter space or number at the beginning. Also, spaces should be replaced with a dash.
7.
FLASHCARD QUESTION
Front
Which of these is a comment for CSS? Options: , /* comment */, #comment, // comment
Back
/* comment */
Answer explanation
<!-- comment --> does not work in css only in HTML, #comment is for python, and //comment is for Javascript. Although you can use Javascript or python comments in the CSS code it has to be contained within /* */
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
HTML/CSS

Flashcard
•
9th - 12th Grade
15 questions
HTML - Flashcard 3

Flashcard
•
9th - 12th Grade
20 questions
HTML/CSS Flashcard

Flashcard
•
9th - 12th Grade
15 questions
IST Web Dev Unit

Flashcard
•
9th - 12th Grade
16 questions
Easy

Flashcard
•
KG
16 questions
Easy

Flashcard
•
KG
9 questions
Unit 4 Review

Flashcard
•
8th Grade - University
15 questions
CSS ID vs. Class

Flashcard
•
9th - 12th 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