CSS Multiple Choice Questions & Answers on Styling Lists and Navigation Menus for Freshers

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

Explanation:
Syntax: list-style: list-style-type | list-style-position | list-style-image
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
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
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
Answer: d

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

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

Explanation:
Syntax: font-size: length | percentage

Related

Multiple Choice Questions and Answers on Cloud Security of Cloud Computing for Freshers

1. Which of the following service provider provides the least amount of built in security ? a) SaaSb) PaaSc) IaaSd) All of the mentioned Answer: c Explanation: You get the least amount of built i...

Computer Fundamentals Multiple choice Questions and Answers on IEEE 32 and 64 bit for Freshers

1. Binary addition of 1 + 1 gives the result _____________ a) 0b) 1c) 2d) 10 Answer: a Explanation: The result obtained is 0 with a carry of 1. This carry obtained is added to the next higher col...

Computer Fundamentals Multiple choice Questions and Answers on Complements for Freshers

1. What is the 1’s complement of 11010? a) 11010b) 11011c) 00110d) 00101 Answer: d Explanation: The 1’s complement of a number is obtained by converting all the 0 bits to 1 and all 1’s to 0’s. He...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item