FrontendDeveloper.in

HTML question detail

What is the difference between block and inline elements?

Block elements usually start on a new line and take full available width by default, such as div, p, and section.

Inline elements flow within text content and take only necessary width, such as span, strong, and a.

Back to all HTML questions
Get LinkedIn Premium at Rs 399