Block-level Elements [1/23]
Elements of an HTML page are usually classified into block-level elements and inline elements.
Block-level elements are represented as rectangular boxes on the page. They have the following features:
- There is a line break before and after a block-level element.
- You can set width, height, paddings and margins for them.
- They occupy all the horizontal space available to them.
Block-level elements are such tags as:
<div> is another important block-level tag. It is plainly a "block" or "rectangular container". This tag is most commonly used to create page layouts.
There are also more sophisticated elements and we are going to learn in the second part of the course.
- Add two
divelements to the page.