What are inline and block elements in HTML
Jan 24, 2023 · 2 min read · Block elements are elements that take up the full width of their parent container and create a new line after them. Examples of block elements include div, h1-h6, p, and form. Block elements can contain other block and inline elements. <div>: a cont...
Join discussion
