Which of the following property is used to draw a line around elements outside the borders?

line
padding
outline
border

The correct answer is C. outline.

An outline is a line that is drawn around an element outside of the element’s borders. It is used to provide a visual cue to the user that the element is clickable or otherwise interactive.

The other options are incorrect because:

  • A. line is a property that is used to draw a line inside of an element.
  • B. padding is a property that is used to add space between the element’s content and the element’s border.
  • D. border is a property that is used to draw a line around an element. However, the border is drawn inside of the element’s padding, so it is not considered to be outside of the element’s borders.