What is the difference between inline and block elements in HTML?

In HTML, Inline elements placed in the same line and they take only required width. For example, link using <a> tag is displayed on the same line.

HTML block-level element always starts with a new line. These elements occupy the full width available on the screen. For example, paragraph inside <p> always start with a line break.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.