elibraryportal Logo

HTML Block

⟼. HTML Blocks are grouping items of HTML elements each element has display based on blocks it also have display but can group the other HTML elements also as block.

All block elements are starts in new line. Block level elements can contain other block line elements as nested block line elements. Block level elements can stretch to the browser full width.

List of block level elements

  • p
  • h1, h2, h3, h4, h5, h6
  • ol, ul
  • pre
  • address
  • blockquote
  • dl
  • div
  • fieldset
  • form
  • hr
  • noscript
  • table

1) In HTML block-level elements is given within <body>..</body> tag


2) Block-level elements always start with the new line.


HTML Inline elements

1) In HTML inline elements is also given within <body>..</body> tag


2) Inline elements will not start in a new line.


Next TopicHTML Class