Question discussion

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

318898Medium 1 reply 1,062 views
1
Choose the option that correctly specifies the output of the following CSS.span { border: 1px solid red; outline: green dotted thick; }
  • AAll span elements will have a red border and a green dotted outline
  • BAll span elements will have a green thick border and a red outline
  • CAll span elements will have an outer red border and inner green dotted border
  • DAll span elements will have a outer green dotted border and an inner red border
Correct answer: D

Discussion 1

0
CCommunity
All span elements will have a outer green dotted border and an inner red border

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