This set of CSS Multiple Choice Questions & Answers (MCQs) focuses on “Specifying sizes, colors and files”.
1. Which of the following is not an Absolute Unit?
a) px
b) em
c) pt
d) mm
View Answer
Explanation: em is a Relative Unit
2. Which of the following unit represent the viewport’s width?
a) vh
b) vmin
c) vw
d) ch
View Answer
Explanation: Self-explainatory.
3. Which of the following property sets in a shorthand form any or all background properties?
a) color
b) wrap
c) background
d) all of the mentioned
View Answer
Explanation:
Syntax: background: background-color
4. Which of the following Color Format can also be defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them?
a) RGB Color
b) RGBa Color
c) HSL Color
d) HSLa Color
View Answer
Explanation:
Example: p {color:rgb(0%,10%,50%);}
5. Which of the following is not a attribute of the audio element?
a) controls
b) src
c) check
d) loop
View Answer
Explanation: Self-explainatory.
6. Which of the following element is used to specify multiple media resources for media elements like audio and video?
a) <source> b) <link> c) <script> d) <src>
Explanation: Self-explainatory.
7. Which of the following Protocol enables a hyperlink to access a file on the local file system?
a) https
b) ftp
c) file
d) telnet
View Answer
Explanation: Self-explainatory.
8. Which of the following element is used for linking a External Files to the html page?
a) <script> b) <style> c) <link> d) all of the above
Explanation: Self-explainatory.
9. Which of the following attribute specifies the URL of the linked resource?
a) src
b) link
c) rel
d) href
View Answer
Explanation: href attribute specifies the URL of the linked resource. A URL might be absolute or relative.
10. Which of the following color has this value #ff0000?
a) blue
b) green
c) red
d) yellow
View Answer
Explanation: Self-explainatory.
Sanfoundry Global Education & Learning Series – CSS.
To practice all areas of CSS, here is complete set of 1000+ Multiple Choice Questions and Answers.
- Practice HTML MCQ
- Practice Information Science MCQs
- Practice MCA MCQs
- Practice Computer Science MCQs
- Apply for CSS Internship