A

Admin • 833.24K Points
Coach

Q. Which element has very similar properties to the DIV element?

  • (A) strong
  • (B) span
  • (C) table
  • (D) All the answers are true
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category HTML
  • Hashtags:

Explanation by: Admin

The difference between span and div is that the span element is usually used for a small piece of code in a line, while the div element is a block and used to group together large pieces of code. Example:
<div id = "myDiv">
<p> Lorem <span class = "paper"> ipsum </span> </p>
</div>

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.