HTML4 HTML5
Defines a block container/division.
Both opening and closing tags are required.
Attributes:
align="..." - Alignment of inner elements. Deprecated in HTML4, removed in HTML5 (though widely supported). CSS styles should be used instead.
Code:
The browser will interpret this code as follows:
This is content placed inside a div element with background and border.