
Kiến thức cơ bản về CSS
Authored by Quang Linh Ngô
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp CSS nào sau đây là đúng để định nghĩa một bộ chọn lớp? A. page-detail {color: red; line-height: 1.2em;} B. page-detail {background-color: red; font-weight: bold;} C. #page-detail {color: red; text-align: center;} D. *.page-detail (background-color: red; padding: 5px;}
None of the options are correct.
page-detail {display: flex; justify-content: space-between;}
.page-detail {color: blue; margin: 10px;}
#page-detail {font-size: 16px; border: 1px solid black;}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giải thích nào sau đây là đúng về mã lệnh CSS sau? h1 h2 h3 { border: dashed 3px red;} A. Đây là cú pháp CSS sai vì các thẻ phải cách nhau bởi dấu phẩy. B. Đây là cú pháp CSS sai vì các thuộc tính không được đặt đúng thứ tự. C. Đây là cú pháp CSS sai vì giá trị thuộc tính bị sai. D. Tất cả các nội dung trong thẻ h1, h2, h3 sẽ hiển thị với biên màu đỏ, dày 3px, và nét đứt.
B. Đây là cú pháp CSS sai vì không thể sử dụng nhiều thẻ cùng lúc.
C. Đây là cú pháp CSS sai vì không có giá trị cho thuộc tính border.
A. Đây là cú pháp CSS sai vì các thẻ không thể có cùng thuộc tính.
D. Tất cả các nội dung trong thẻ h1, h2, h3 sẽ hiển thị với biên màu đỏ, dày 3px, và nét đứt.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu muốn tất cả các đoạn văn hiển thị trên trang web được thụt lề 10px và có chữ in nghiêng thì cần viết lệnh CSS như thế nào cho đúng? A. p {text-left: 10px; font-weight: italic;} B. p {text-indent: 10px; font-style: italic;} C. .p {text-indent: 10px; font-style: "italic";} D. p.* {text-left: 10px; font-weight: "italic";}
B
p {padding: 10px; font-italic: true;}
p {margin-left: 10px; font-style: bold;}
p {text-indent: 10px; font-weight: italic;}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp CSS nào sau đây là đúng để định nghĩa màu nền cho một phần tử? A. background-color: blue; B. {background: blue;} C. div {background-color: blue;} D. .background {color: blue;}
{background-color: blue;}
div {background: blue;}
background-color: red;
C
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây là đúng để định nghĩa kích thước chữ? A. font-size: 16px; B. {font-size: 16px;} C. p {size: 16px;} D. .text {font-size: 16;}
font-size: 16;
A. font-size: 16px;
{font-size: 16;}
p {font-size: 16px;}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp CSS nào sau đây là đúng để định nghĩa khoảng cách giữa các đoạn văn? A. p {margin: 10px;} B. p {padding: 10px;} C. p {space: 10px;} D. p {gap: 10px;}
p {margin-top: 10px;}
p {border: 10px;}
A. p {margin: 10px;}
p {padding-bottom: 10px;}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây là đúng để định nghĩa kiểu chữ cho một phần tử? A. font-family: Arial; B. {font-family: Arial;} C. div {font: Arial;} D. .font {font-family: "Arial";}
.font {font-family: "Arial";}
{font: 'Arial';}
font-family: 'Arial';
div {font-family: Arial;}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
HTML Quiz
Quiz
•
11th Grade - University
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
14 questions
Taylor Chess Quiz
Quiz
•
4th - 12th Grade
10 questions
Pengenalan Tampilan MS Word
Quiz
•
12th Grade - University
10 questions
DISEÑANDO CON COREL DRAW
Quiz
•
11th - 12th Grade
10 questions
Intro to Photoshop
Quiz
•
9th - 12th Grade
10 questions
Pemrograman Android KD 3.28/4.28
Quiz
•
1st Grade - Professio...
10 questions
R082 Book Cover Assets planning
Quiz
•
7th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade
10 questions
Valentine's Day Trivia
Quiz
•
9th - 12th Grade