T

Tina Singh • 10.85K Points
Tutor II

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: 192
  • Filed under category HTML

Explanation by: Tina Singh
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.


Question analytics