What CSS will automatically align the <div> horizontally within the browser?
ITS HTML CSS 1

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Neil Thorpe
Used 1+ times
FREE Resource
Student preview

19 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?
Back
h1 { color: blue;
font-size: 12px; }
3.
FLASHCARD QUESTION
Front
Which of these elements usually deal with media or code snippets? <figure>, <summary>, <media>, <image>
Back
<figure>
4.
FLASHCARD QUESTION
Front
What color is the web page text when the following CSS is applied?
- * { 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? .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? Options: #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
How do you link your html page to an external style sheet?
Back
<link rel="stylesheet" href="styles.css">
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
Web Design Advanced HTML CSS

Flashcard
•
9th - 12th Grade
10 questions
CSS Flashcard 2

Flashcard
•
10th Grade - University
15 questions
HTML & CSS Basics

Flashcard
•
9th - 12th Grade
18 questions
Unit C Review

Flashcard
•
10th - 12th Grade
20 questions
CodeHS Unit 5

Flashcard
•
8th - 12th Grade
18 questions
Web Dev Test Review

Flashcard
•
9th - 12th Grade
20 questions
ITS HTML CSS 1

Flashcard
•
9th - 12th Grade
15 questions
Day 24 - HTML / CSS

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade