In HTML, block-level elements refer to elements whose display attribute is block. Usually block-level elements are displayed occupying one line in many browsers, and exclude other elements and other elements in the same line. In browsers, the block element appears in the shape of a rectangle and contains other elements.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
Block element is also known as block element (block element), and its corresponding is inline element (inline element), which are concepts in the HTML specification. Most HTML elements are defined as block-level elements or inline elements. Block-level elements usually start (and end) with a newline when displayed by the browser.
Block-level elements are relatively domineering. By default, they occupy an entire line each time, and subsequent content must also be displayed on a new line. For example:
,
The above is the detailed content of What are block level elements in html. For more information, please follow other related articles on the PHP Chinese website!