Definition of HTML "block tag" and "block element"
(also known as "block-level tags" and "block-level elements")
Definition of block tag
Block tags are the HTML tags that are used to create blocks of text and other visual elements in the direction of flow of paragraphs on a page, which is from top to bottom in many languages. For example, the <div> tag is normally a block tag, in contrast to the <span> tag, which is normally an inline tag. However, styles can be used to override a tag to make it a display: block
tag.
Block tags in an HTML document mark the beginning and end of a block element.
Definition of block element
In the HTML content models, a block element consists of the starting and ending tags for flow content along with the phrasing content between them. Block elements are the HTML elements for blocks of text and other visual elements displayed in the direction of flow of paragraphs on a page, which is from top to bottom in many languages. For example, div element is normally a block element, in contrast to the span element, which is normally an inline element. However, styles can be used to override an element to make it a display: block
element.
The beginning of each block element starts on a new line of the area of the page being filled. The margins before and after block elements can be used to control the spacing between paragraphs and other block elements.