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:
QR:
0 comments:
Post a Comment