A. 20 Câu hỏi :
1. CSS là viết tắt của?
Creative Style Sheets
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
2. Muốn liên kết xHTML với 1 file định nghĩa CSS ta dùng dòng nào sau đây?
<style src=”mystyle.css”>
<stylesheet>mystyle.css</stylesheet>
<link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
3. đặt dòng liên kết với file CSS ở vùng nào trong file xHTML?
In the <body> section
In the <head> section
At the top of the document
At the end of the document
4. tag nào định nghĩa CSS ở ngay trong file xHTML?
<css>
<script>
<style>
5. thuộc tính nào định nghĩa CSS ngay trong 1 tag?
font
class
style
styles
6. dòng nào tuân theo đúng cú pháp của CSS?
body {color: black}
{body;color:black}
body:color=black
{body:color=black(body}
7. dòng nào thể hiện đúng một comment (lời chú thích) trong CSS?
/* this is a comment */
// this is a comment //
‘ this is a comment
// this is a comment
8. dòng nào dùng để thay đổi màu nền?
color:
bgcolor:
background-color:
9. làm thế nào thêm màu nền cho tất cả các phần tử <h1> ?
h1.all {background-color:#FFFFFF}
h1 {background-color:#FFFFFF}
all.h1 {background-color:#FFFFFF}
10. làm thế nào thay màu nền của chữ (text)?
text-color=
fgcolor:
color:
text-color:
11. thuộc tính nào thay đổi kích cỡ chữ?
font-style
font-size
text-style
text-size
12. thuộc tính nào làm chữ trong tag p trở thành chữ đậm?
p {text-size:bold}
<p style=”font-size:bold”>
<p style=”text-size:bold”>
p {font-weight:bold}
13. làm sao để hiển thị liên kết mà ko có gạch chân bên dưới?
a {decoration:no underline}
a {text-decoration:no underline}
a {underline:none}
a {text-decoration:none}
14. làm sao để mỗi từ trong 1 dòng đều viết hoa ở đầu từ?
text-transform:capitalize
text-transform:uppercase
You can’t do that with CSS
15. làm sao để thay đổi font của mỗi phần tử?
font=
f:
font-family:
16. làm sao để tạo chữ đậm?
font-weight:bold
style:bold
font:b
17. làm thế nào để hiển thị viền 1 phần tử với kích thước đường viền như sau:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
border-width:5px 20px 10px 1px
border-width:10px 5px 20px 1px
border-width:10px 1px 5px 20px
border-width:10px 20px 5px 1px
18. làm sao để thay đổi lề trái của một phần tử?
margin-left:
text-indent:
margin:
indent:
19. để định nghĩa khoảng trống giữa các cạnh (viền) của phần tử và nội dung, bạn sử dụng thuộc tính padding, có thể gán giá trị âm cho thuộc tính này không?
Yes
No
20. làm thế nào để hình ở đầu mỗi dòng của 1 list (danh sách) có hình vuông?
type: 2
type: square
list-type: square
list-style-type: square
B. Đáp án :
1.Cascading Style Sheets
2.<link rel=”stylesheet” type=”text/css” href=”mystyle.css”>
3.In the <head> section
4.<style>
5.style
6.body {color: black}
7./* this is a comment */
8.background-color:
9.h1 {background-color:#FFFFFF}
10.color.
11.font-size
12.p {font-weight:bold}
13.a {text-decoration:none}
14.text-transform:capitalize
15.font-family
16.font-weight:bold
17.border-width:10px 1px 5px 20px(top-right-bottom-left)
18.margin
19.No
20.list-style-type: square