block level element

 



What are Block-level Elements?

  • Block-level elements are those that start on a new line and take up the entire width of their container by default. 
  • They essentially claim all the horizontal space for themselves, pushing any content that comes after them to a new line.

Characteristics of Block-level Elements:

  • Always start on a new line.

  • Take up the full width available.

  • Width and height can be controlled via CSS.

  • Can contain other block-level as well as inline elements.

Common Block-level Elements:

  • <h1>,<h2>,<h3>,<h4>,<h5>,<h6> - Headings
  • <p> - Paragraphs
  • <hr> - Horizontal rule
  • <address> - Address information
  • <article> - Article content
  • <aside> - Sidebar content
  • <blockquote> - Block quotations
  • <canvas> - Drawing area
  • <dd> - Description in a description list
  • <div> - Generic container
  • <dl> - Description list
  • <dt> - Term in a description list
  • <fieldset> - Group of related form elements
  • <figcaption> - Caption for a figure
  • <figure> - Image or media with a caption
  • <footer> - Footer of a section or page
  • <form> - HTML form
  • <header> - Header of a section or page
  • <li> - List item
  • <main> - Main content of a document
  • <nav> - Navigation links
  • <noscript> - Alternate content when JavaScript is not enabled
  • <ol> - Ordered list
  • <ul> - Unordered list
  • <pre> - Preformatted text
  • <section> - Standalone section in a document
  • <table> - Table
  • <video> - Video content

Related Posts:

  • HTML Elements What is an HTML Element?An HTML element is a complete set that consists of a start tag (or opening tag), content, and an end tag (or closing tag… Read More
  • HTML Text Formatting HTML formatting involves enhancing the visual presentation of text. It enables text manipulation for improved aesthetics, eliminating the n… Read More
  • PICTURE TAG The <picture> element in HTML is used to provide multiple sources of an image, allowing the   browser to choose the most appropr… Read More
  • HTML Id & Classes IDs and Classes in HTMLWhat is an ID?An ID is an attribute, a unique identifier assigned to only one HTML element within a page.It is often used… Read More
  • HTML Tags What is an HTML Tag?HTML Tags are the basic building block of elements in HTML. tags start with open (< ) and closing  ( … Read More

0 Comments:

Post a Comment

Do leave your comments