Kiến thức cơ bản về CSS

Kiến thức cơ bản về CSS

12th Grade

10 Qs

quiz-placeholder

Similar activities

Fun with Paint and Storage

Fun with Paint and Storage

1st Grade - University

10 Qs

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

Desarrollo de Aplicaciones Modernas y Herramientas.

Desarrollo de Aplicaciones Modernas y Herramientas.

1st Grade - Professional Development

15 Qs

CSS (background-position-list)

CSS (background-position-list)

1st Grade - University

10 Qs

MACAM-MACAM IKON PAINT

MACAM-MACAM IKON PAINT

5th - 12th Grade

10 Qs

ITGS - IT Systems (Hardware)

ITGS - IT Systems (Hardware)

10th - 12th Grade

14 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Test Your Knowledge Part 2

Test Your Knowledge Part 2

1st - 12th Grade

10 Qs

Kiến thức cơ bản về CSS

Kiến thức cơ bản về CSS

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Quang Linh Ngô

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?