
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
10 questions
Fundamentals of Computing - Unit 5 Quiz 1 Review
Quiz
•
12th Grade
15 questions
Основные теги THML
Quiz
•
12th Grade
11 questions
LEGO Robotics Elective Level 2 - Diagnostic Test
Quiz
•
9th - 12th Grade
12 questions
Digital Media - Chapter 4
Quiz
•
9th - 12th Grade
10 questions
COREL DRAW BÁSICO
Quiz
•
12th Grade
10 questions
Elements of Programming Test
Quiz
•
12th Grade
10 questions
Anime
Quiz
•
KG - University
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade