Block-level element

Updated: 10/07/2019 by Computer Hope
HTML div tag

In HTML (hypertext markup language) programming, a block-level element is any element that starts a new line (e.g., paragraph) and uses the full width of the page or container. A block-level element can take up one line or multiple lines and has a line break before and after the element.

Examples of a block-level elements

  • <address> - Shows contact information.
  • <applet> - Embed a Java applet.
  • <article> - Contains the article's content.
  • <aside> - Describe a section of content.
  • <blockquote> - Denote a section that is quoted.
  • <canvas> - Draw graphics using JavaScript.
  • <caption> - Add caption to table.
  • <center> - Center text.
  • <details> - Create an interactive widget to hide text.
  • <dir> - Designate a collection of file names.
  • <div> - Creates a document division.
  • <dl> - Contain a list of definitions and their descriptions.
  • <dt> - Designate a term within a description list.
  • <embed> - Designate an area for interactive content.
  • <figure> - Designate an area of self-contained content
  • <form> - Creates an input form to capture data.
  • <frame> - Create a frame window of another page.
  • <h1> to <h6> - Creates a heading.
  • <header> - Create a header section.
  • <hr> - Create a horizontal line.
  • <iframe> - Create a window frame of a page.
  • <li> - Used to denote a list item.
  • <main> - Contains the content specific to a certain page.
  • <marquee> - Create scrolling text.
  • <nav> - Contains a page's navigations links.
  • <noscript> - Contains the content to use in browsers that don't support scripting.
  • <object> - Designate an object embedded into a web page
  • <ol> - Contains an ordered list.
  • <p> - Used to denote a paragraph.
  • <pre> - Contains preformatted text.
  • <section> - Group thematically similar content together.
  • <table> - Contains a table.
  • <ul> - Contains an unordered list.
Tip

Formatting, or styles, for a block-level element can be applied using CSS (cascading style sheets), assigning classes to different styles.

Browser, CSS, Format, Programming terms, Style