
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
Intro to Comp Sci: U2L1
Quiz
•
8th - 12th Grade
10 questions
Tarkie Seminar for Disers
Quiz
•
9th - 12th Grade
14 questions
TRENDS IN ICT
Quiz
•
12th Grade
10 questions
TMK TAHUN 6
Quiz
•
12th Grade
15 questions
Photoshop Keyboard Shortcuts & Tools
Quiz
•
8th - 12th Grade
13 questions
AI-1
Quiz
•
KG - University
10 questions
Working around Adobe Photoshop
Quiz
•
12th Grade
12 questions
Intro to Scratch 2
Quiz
•
KG - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade