Examveda
Examveda

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 red border and a green dotted outline

B. All span elements will have a green thick border and a red outline

C. All span elements will have an outer red border and inner green dotted border

D. All span elements will have a outer green dotted border and an inner red border

Answer: Option D

Solution(By Examveda Team)

The border property creates the inner border, while the outline sets the outer border.

Join The Discussion

Related Questions on CSS Text, Borders and Images