Home » CSS » CSS Outline » Question
  1. Choose the option that correctly specifies the output of the following CSS.
    span {
    border: 1px solid red;
    outline: green dotted thick;
    }
    1. All span elements will have a outer green dotted border and an inner red border
    2. All span elements will have an outer red border and inner green dotted border
    3. All span elements will have a green thick border and a red outline
    4. All span elements will have a red border and a green dotted outline
    5. None of these
Correct Option: A

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



Your comments will be displayed only after manual approval.