Vti - Education - Test - HTML-CSS-JS
Vti - Education - Test - HTML-CSS-JS
ĐỀ THI CUỐI KỲ
Họ tên: .............................................................................................................................
Mã SV: ………………………………………………………………………………….
Mã lớp: ………………………………………………………………………………….
1. Question: What is the correct HTML tag for the largest heading?
○ Answers:
■ a) <h6>
■ b) <h1>
■ c) <header>
■ d) <head>
2. Question: Which attribute is used to define inline styles in HTML?
○ Answers:
■ a) style
■ b) class
■ c) src
■ d) href
3. Question: What is the correct CSS syntax to select an element with the id
"myElement"?
○ Answers:
■ a) .myElement
■ b) #myElement
■ c) myElement
■ d) $myElement
4. Question: True or False: The <article> tag is used to define a container for
navigation links.
○ Answers:
■ a) True
■ b) False
■ c) Maybe
■ d) I don't know
5. Question: What is the correct CSS property to set the background color of an
element?
○ Answers:
■ a) bgcolor
■ b) color
■ c) background-color
■ d) bg-color
6. Question: True or False: The <aside> tag is used to define content aside
from the main content of the page.
○ Answers:
■ a) True
■ b) False
■ c) Sometimes
■ d) I'm not sure
7. Question: What is the correct CSS property to set the font size of an element?
○ Answers:
■ a) font-size
■ b) size
■ c) text-size
■ d) font-style
8. Question: True or False: The <em> tag is used to emphasize text in HTML.
○ Answers:
■ a) True
■ b) False
■ c) It depends
■ d) Maybe
9. Question: What is the correct HTML tag for inserting a line break?
○ Answers:
■ a) <br>
■ b) <break>
■ c) <lb>
■ d) <line>
10. Question: True or False: The CSS margin property is used to control the
spacing between the content and the border of an element.
○ Answers:
■ a) True
■ b) False
■ c) I'm not sure
■ d) Maybe
11. Question: Which of the following CSS selectors has the highest specificity?
a) Class selector (e.g., .my-class)
b) ID selector (e.g., #my-id)
c) Element selector (e.g., p)
d) Inline style (e.g., style="color: red;")
12. Question: What is the CSS property used to create a responsive design for
mobile devices?
a) float
b) display
c) position
d) media queries
13. Question: Which of the following HTML tags is used for semantic emphasis
and not for styling?
a) <strong>
b) <b>
c) <em>
d) <i>
14. Question: What is the CSS property used to create a sliding animation effect?
a) transition
b) animation
c) transform
d) keyframes
15. Question: Which CSS property is used to create a sticky navigation bar?
a) position: absolute;
b) position: fixed;
c) position: relative;
d) position: static;
16. Question: Which HTML tag is used to group table header content in an HTML
table?
a) <thead>
b) <th>
c) <tr>
d) <table>
17. Question: What is the CSS pseudo-class used to select an element when the
mouse is over it?
a) :hover
b) :active
c) :focus
d) :visited
18. Question: Which HTML tag is used to embed an external web page within the
current HTML document?
a) <iframe>
b) <embed>
c) <object>
d) <link>
19. Question: What is the correct way to include an external JavaScript file in an
HTML document?
a) <script src="script.js"></script>
b) <javascript src="script.js"></javascript>
c) <link href="script.js" rel="javascript">
d) <js src="script.js"></js>
22. Question: In Tailwind CSS, which class is used to create a responsive grid
layout?
a) .flex
b) .container
c) .grid
d) .row
23. Question: Which CSS property is used to control the spacing between lines of
text?
a) text-indent
b) line-height
c) letter-spacing
d) word-spacing
24. Question: In Tailwind CSS, which class is used to apply a margin on all four
sides of an element?
a) .m-auto
b) .m-0
c) .m-4
d) .m-2
25. Question: What is the correct syntax to apply a CSS animation to an element
in Tailwind CSS?
a) animate-spin
b) animate: spin
c) animation: spin
d) animation-spin
26. Question: Which CSS property is used to create a shadow effect behind an
element?
a) box-shadow
b) text-shadow
c) shadow-effect
d) element-shadow
28. Question: What is the correct way to apply a custom color to an element in
Tailwind CSS?
a) .text-red
b) .text-my-color
c) .text-custom
d) .text-color-red
29. Question: Which CSS property is used to control the order of flex items in a
flex container?
a) flex-grow
b) flex-basis
c) flex-wrap
d) order
30. Question: In Tailwind CSS, which class is used to apply a responsive padding
on the top and bottom of an element?
a) .py-4
b) .pb-2
c) .p-6
d) .pt-8
33. Question: In Tailwind CSS, which class is used to apply a background color to
an element?
a) .bg-color
b) .bg
c) .background-color
d) .bg-[color]
34. Question: Which CSS property is used to control the size of an element's
font?
a) font-weight
b) font-size
c) text-size
d) text-weight
35. Question: In HTML, which attribute is used to specify alternate text for an
image?
a) alt
b) src
c) href
d) title
36. Question: In Tailwind CSS, which class is used to apply a responsive margin
on the left side of an element?
a) .ml-auto
b) .ml-0
c) .ml-4
d) .ml-2
37. Question: Which CSS property is used to control the visibility of an element?
a) display
b) visibility
c) opacity
d) position
39. Question: In Tailwind CSS, which class is used to apply a responsive padding
on all four sides of an element?
a) .p-auto
b) .p-0
c) .p-4
d) .p-2
40. Question: Which CSS property is used to control the spacing between
elements in a flex container?
a) flex-grow
b) flex-basis
c) flex-wrap
d) justify-content
41. Question: Which HTML tag is used to embed external content, such as a web
page, within another web page?
a) <iframe>
b) <object>
c) <embed>
d) <include>
42. Question: In CSS, which property is used to create a shadow effect around an
element?
a) box-shadow
b) text-shadow
c) shadow-effect
d) element-shadow
44. Question: In Tailwind CSS, which class is used to make an element take up
the full height of its parent container?
a) .h-auto
b) .h-full
c) .h-fill
d) .h-parent
46. Question: Which HTML tag is used to group and style a set of navigation
links?
a) <nav>
b) <ul>
c) <menu>
d) <link>
47. Question: In CSS, which property is used to change the spacing between
letters in a text?
a) line-height
b) text-spacing
c) font-spacing
d) letter-spacing
49. Question: In Tailwind CSS, which class is used to create a responsive grid
layout?
a) .grid-container
b) .grid-layout
c) .grid-template
d) .grid
50. Question: Which HTML tag is used to define a table cell that is a header for a
column or row?
a) <td>
b) <th>
c) <tr>
d) <thead>