Describe the difference between inline and block-level elements in HTML.

  • Block-level elements do not start on a new line and only take up as much width as necessary.
  • Block-level elements start on a new line and take up the full width available.
  • Inline elements always start on a new line and take up the full width of their parent container.
  • Inline elements do not start on a new line and only take up as much width as necessary.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *