Vidyalelo
CSS · Q29

CSS Text, Borders and Images

Programming · CSS · question 29

Q29

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

Answer: Option D

Solution

Answer: Option D
Solution:
The border property creates the inner border, while the outline sets the outer border.