What does CSS stand for?
A) Cascading Style Sheets
B) Creative Style System
C) Computer Style Syntax
D) Colorful Style Sheets
A
What is the main purpose of CSS?
A) Structuring content
B) Styling and layout of web pages
C) Managing databases
D) Handling server logic
B
What is a CSS rule composed of?
A) Only properties
B) Only selectors
C) Selector and declaration block
D) Tags and attributes
C
What does a selector do in CSS?
A) Defines colors
B) Adds animations
C) Controls layout
D) Targets HTML elements to style
D
Which is an example of an element selector?
A) p
B) .class
C) #id
D) *
A
Which selector uses a dot (.)?
A) ID selector
B) Class selector
C) Universal selector
D) Element selector
B
Which selector uses a hash (#)?
A) Class selector
B) Universal selector
C) ID selector
D) Group selector
C
What does the universal selector (*) do?
A) Targets one element
B) Targets classes only
C) Targets IDs only
D) Targets all elements
D
Which type of CSS is applied inside the <style> tag?
A) Internal CSS
B) External CSS
C) Inline CSS
D) Global CSS</style>
A
Which type of CSS is written directly inside an HTML element?
A) External CSS
B) Inline CSS
C) Internal CSS
D) Embedded CSS
B
Which type of CSS is stored in a separate .css file?
A) Inline CSS
B) Internal CSS
C) External CSS
D) Local CSS
C
What is the benefit of external CSS?
A) Applies to one element only
B) Harder to manage
C) Slower performance
D) Controls multiple pages from one file
D
Which property sets the background color?
A) background-color
B) color
C) bg-color
D) background-style
A
Which property is used to set text color?
A) background-color
B) color
C) font-color
D) text-style
B
Which property sets an image as a background?
A) background-color
B) background-style
C) background-image
D) image-bg
C
What does background-repeat control?
A) Image size
B) Image position
C) Image attachment
D) Image repetition behavior
D
Which property defines border style?
A) border-style
B) border-width
C) border-color
D) border-radius
A
Which property controls the thickness of a border?
A) border-color
B) border-width
C) border-style
D) border-type
B
Which property adds rounded corners?
A) border-style
B) border-width
C) border-radius
D) border-color
C
What is the shorthand border property used for?
A) Styling text
B) Creating layouts
C) Adding margins
D) Combining border properties in one line
D
What is visual hierarchy?
A) Styling technique only
B) Coding structure
C) Arrangement of elements to guide attention
D) Database design method
C
Which principle uses larger elements to attract attention?
A) Alignment
B) Contrast
C) Size
D) Repetition
C
Which principle uses spacing to group related items?
A) Color
B) Proximity
C) Typography
D) Balance
B
What is the purpose of white space in design?
A) Add color
B) Increase text size
C) Reduce layout
D) Improve readability and focus
D