Pirative
Home Discovery Login

07 - Essential Tags & Elements

May 7, 2047

The HTML Document Body is the main section of an HTML document and contains all of the visible content that appears on a webpage.

Block elements vs inline elements

In HTML, elements are classified as either block-level elements or inline elements. The main difference between these two types of elements is how they are displayed on a webpage.

Block-level elements take up the entire width of their parent container and create a new line after the element.

Inline elements, on the other hand, only take up as much space as necessary and do not create a new line after the element.