Block Level Elements vs Inline Level Elements
Block level elements are always displayed on the next line in the design view of your webpage. Block level elements can contain other block level elements and inline elements. An example of a block level element may be a new paragraph in a webpage. Block elements have margins and padding to set them apart from each other. The two most common block level elements you will probably work with are divs and paragraphs.
Inline elements are incorporated into your text and do not begin on a new line. They do not have any margin or padding to them. An example of an inline element would be bolding a word or italicizing a word.
What does this mean for you while coding?
Simply that when you use any block level element you will have a preset spacing that the broswer automatically puts in. To wipe this away you need to set this to 0. If you want to remove more of the spacing you need to use negative numbers.


Leave a Reply