CSS Questions and Answers Part-6

1. Which of the following is not an Absolute Unit?
a) px
b) em
c) pt
d) mm

Answer: b
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

Answer: c
Explanation: vw

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

Answer: c
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

Answer: a
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

Answer: c
Explanation: check

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>

Answer: a
Explanation: <source>

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

Answer: c
Explanation: file

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

Answer: c
Explanation: <link>

9. Which of the following attribute specifies the URL of the linked resource?
a) src
b) link
c) rel
d) href

Answer: d
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

Answer: c
Explanation: red