Block-level and inline elements and inline Elements
Block-level and inline Elements
"Block-level elements" are translated into block-level elements, and "inline elements" are translated into inline elements.
When a block-level element is displayed in a browser, it usually starts (and ends) with a new line ).
Example:
Inline elements are usually not displayed starting with a new line.
Example: <B>, <td>, <a>,
HTML grouping tags
<Div> define partitions or sections in the document ).
An HTML <div> element is a block-level element. It is a container that can be used to combine other HTML elements.
<Div> another common purpose of an element is document layout. It replaces the old-fashioned method of defining la s using tables. Using the <table> element for document layout is not the correct usage of the table. <Table> an element is used to display tabular data.
<Span> defines span, which is used to combine intra-row elements in a document.
HTML <span> elements are inline elements and can be used as text containers.
The <span> element has no specific meaning.
When used together with CSS, the <span> element can be used to set style attributes for some texts.