Home » HTML Block and Inline Elements

HTML Block and Inline Elements

There are two display values: block and inline.

Block-level Elements

A block-level element always starts on a new line.

A block-level element always takes up the full width available (stretches out to the left and right as far as it can).

Inline Elements

An inline element does not start on a new line.

An inline element only takes up as much width as necessary.

Leave a Reply

Your email address will not be published.