HTML Span attributes

Consider the snippet given below.

<X style="background-color:black;color:white;padding:20px;">
  <p>London is the capital city of England. It is the most populous city in the United Kingdom.</p>

Here, X is used as a container for other HTML elements and has no required attributes. However, style, class and id are common. What could X be in this context?

  1. Span
  2. Div
  3. class
  4. id

Related Posts