HTML Block and Inline Elements
In HTML, elements are categorized as either block-level elements or inline elements. These categories describe how elements behave in terms of layout and how they interact with other elements on the page.
Block-level elements:
Definition:
- Block-level elements typically start on a new line and stretch across the full width of their containing element, creating a "block" of content
- They create a structural division in the HTML document.