Block and Inline Elements
blockelemente such as < div >,< p >,< sction >and < li > etc. expand to fill the horizontal space of the window.Inline Elements thake up only the horzontal space that is required.
Blockelemets:
- Always expand to the width of the parent element but will only expand verticlly to accumulate their content
- Force newline before and after
- Accect width, height, margin, padding, and border
Inline elements:
- Wrap tightly around their content both hrizontaly and vertically
- Flow like text
- can exxist within block elements
- Accept left and right marginds but not top or bottom
- Accept any border or padding
- ignore set widths or heights