CSS Questions & Answers – Styling Lists and Navigation Menus

This set of CSS online quiz focuses on “Styling Lists and Navigation Menus”.

1. Which of the following property sets list-style-type, list-style-position, and liststyle-image?
a) style
b) list-style
c) menu-style
d) img-style
View Answer

Answer: b
Explanation:

Syntax: list-style: list-style-type | list-style-position | list-style-image

advertisement
advertisement

2. Which of the following property assigns a graphic image to a list item?
a) list-image-style
b) list-style-image
c) list-image
d) none of the mentioned
View Answer

Answer: b
Explanation:

Syntax: list-style-image: url(url of image) | none

3. Which of the following property specifies whether the labels for an element’s list items are positioned inside or outside the “box” defined by the listed item?
a) list-style
b) list-position
c) list-style-position
d) list-position-style
View Answer

Answer: c
Explanation:

Syntax: list-style-position: inside | outside | inherit

4. Which of the following property defines labels for a list of items?
a) list-shape
b) list-style
c) list-type
d) list-style-type
View Answer

Answer: d
Explanation:

advertisement
Syntax: list-style-type: disc | circle | square | decimal

5. Which of the following property defines in a shorthand form the width, style, and color for all four sides of an element’s border?
a) border
b) border-style
c) border-color
d) border-all
View Answer

Answer: a
Explanation:

advertisement
Example: div {border: 2px double red;}

6. Which of the following property defines in a shorthand form the width, style, and color for the left border of an element?
a) border
b) border-style
c) border-left
d) none of the mentioned
View Answer

Answer: b
Explanation:

Syntax: border-left: border-width border-style border-color;

7. Which of the following property is used to round border corners?
a) border-corner
b) border-round
c) border-radius
d) none of the mentioned
View Answer

Answer: c
Explanation:

Syntax: border-radius: horizontal-radius vertical-radius

8. Which of the following property influences the horizontal alignment of an element, making it “float” toward the left or right margin of its containing element?
a) float
b) float-left
c) float-right
d) float-align
View Answer

Answer: d
Explanation:

Syntax: float: left | right | none | inherit;

9. Which of the following property sets the font face to be used for text?
a) font
b) font-text
c) font-family
d) none of the mentioned
View Answer

Answer: c
Explanation:

Syntax: font-family: font 1

10. Which of the following property sets the font size of text?
a) font
b) font-text
c) font-size
d) none of the mentioned
View Answer

Answer: c
Explanation:

Syntax: font-size: length | percentage

Sanfoundry Global Education & Learning Series – CSS.

To practice all areas of CSS for online Quizzes, here is complete set of 1000+ Multiple Choice Questions and Answers.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.