0% found this document useful (0 votes)
10 views8 pages

Block Vs Inline Elements

Uploaded by

ramp68201
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views8 pages

Block Vs Inline Elements

Uploaded by

ramp68201
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Block vs Inline

Elements
Block Elements :
A block-level element always begins on a new line, and browsers add a margin
(a space) before and after the element by default.

A block-level element always occupies the entire available width (stretches out
to the left and right as far as possible).

<p> and <div> are two often used block components.


Inline Elements :
A line break is not used to begin an inline element.

An inline element only uses the space that is required.

An inline element cannot contain a block-level element


Other inline-elements are :
<div> element
<span> element
THANK YOU

You might also like