Explore topic-wise MCQs in Css.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Css knowledge and support exam preparation. Choose a topic below to get started.

1.

Select the output of the following CSS.
div {
border-width:5px;
border-style:dotted solid double dashed;
}

A. Box having dotted bottom outline, solid left outline, double top outline and dashed left outline
B. Box having dotted bottom outline, solid right outline, double top outline and dashed left outline
C. Box having dotted top outline, solid left outline, double bottom outline and dashed right outline
D. Box having dotted top outline, solid right outline, double bottom outline and dashed left outline
E. None of these
Answer» E. None of these
2.

Choose the option that correctly specifies the output of the following CSS.
span {
border: 1px solid red;
outline: green dotted thick;
}

A. All span elements will have a outer green dotted border and an inner red border
B. All span elements will have an outer red border and inner green dotted border
C. All span elements will have a green thick border and a red outline
D. All span elements will have a red border and a green dotted outline
E. None of these
Answer» B. All span elements will have an outer red border and inner green dotted border
3.

Choose the option that correctly specifies the output of the following CSS.

A. All span elements will have a outer green dotted border and an inner red border
B. All span elements will have an outer red border and inner green dotted border
C. All span elements will have a green thick border and a red outline
D. All span elements will have a red border and a green dotted outline
E. None of these
Answer» B. All span elements will have an outer red border and inner green dotted border
4.

Select the output of the following CSS.

A. Box having dotted bottom outline, solid left outline, double top outline and dashed left outline
B. Box having dotted bottom outline, solid right outline, double top outline and dashed left outline
C. Box having dotted top outline, solid left outline, double bottom outline and dashed right outline
D. Box having dotted top outline, solid right outline, double bottom outline and dashed left outline
E. None of these
Answer» E. None of these