HTML/CSS MCQs – Multiple Choice Questions and Answers – Part 12
Multiple choice questions and answers (MCQs) on HTML/CSS to prepare for exams, tests, and certifications. These questions are taken from a real written exam and some parts are taken from an interview. So you will find questions on basic techniques such as tags, web standards, CSS selector, objects, and more. This quiz will easily prepare anyone to pass their online test.
1. Which of the following CSS properties defines the various border properties of an element’s four sides in a single declaration?
A border-collapse
B border-width
C padding
D border
2. Which of the following CSS properties defines the font size of the text?
A font-size
B text-size
C text
D size
3. Which of the following CSS properties defines the shadow of a box-type element?
A set-shadow
B box-shadow
C shadow
D canvas-shadow
4. Which of the following values is appropriate for the overflow property?
A scroll
B hidden
C auto
D all of the mentioned
5. Which of the following CSS properties is used to specify table borders in CSS?
A table:border
B table
C border
D None of the mentioned
6. Which of the following properties is used to align text in a table?
A text-align
B align-table
C text-table
D None of these properties
7. Which of the following CSS properties defines the space between table cells?
A border-spacing
B border-style
C border
D None of the mentioned properties
8. Which of the following CSS3 properties can be used to allow line breaks inside words?
A line-break
B line-wrap
C word-wrap
D word-break
9. What is the general syntax of the var() function?
A var(–name, value)
B var(–name)
C var(value)
D None of these answers
10. Which of the following properties allows text to be converted to uppercase or lowercase?
A text-transform
B text-convert
C text-decoration
D text-uppercase