This is a mirror of official site: http://jasper-net.blogspot.com/

[HTML] Difference between Div and Span

| Wednesday, August 10, 2011
Hello Friends,

Are you beginner in building HTML pages ? If yes than you must be aware with the difference between Div and Span HTML elements. While HTML slicing, you may use table structure or table-less structure depending upon the customer’s requirements. If you use table-less structure than div based HTML will be developed. Div is block level element so if you write Div element than it will take 100% width while Span is not a block level element so if you write span element than it will take only required width depending upon the string length in span element.

:: Div Element ::

- Block Level Element.

- Default style for display property is Block.

- Contain 100% width means line-break before and after the element.

- Mostly used for creating CSS based layout.

:: Span Element ::

- In-line Element.

- Default style for display property is in-line.

- Contain required width only.

- Mostly used for in-line text styling.

Read more: Freelance designer
QR: https://chart.googleapis.com/chart?chs=80x80&cht=qr&choe=UTF-8&chl=http://www.freelancedesignerindia.com/html-difference-between-div-and-span/

Posted via email from Jasper-net

0 comments: