HTML Block and Inline Elements

HTML able to pass <div> with <span>Combining elements

Block-level Elements

Hundreds of online examples are included in the HTML manual, and you can edit and view the results online.

The <h1> component is a square dimension element.

Examples of square dimension elements:

  • <p>
  • <form>
  • <div>
  • <h1> - <h6>

Inline Elements

An inline component does not begin left to right you can put anyplace

This is an inline <span> component inside a paragraph.

some case of inline elemets:

  • <a>
  • <img>
  • <span>

component have

Simple precedent are given:-


<div style="background-color:black; color:white; padding:20px;">

<p> India (IAST: Bhārat), additionally called the Republic of India (IAST: Bhārat Gaṇarājya), is a nation in South Asia. It is the seventh-biggest nation by zone, the second-most crowded nation (with over 1.2 billion individuals), and the most crowded vote based system in the world.</p>

Try it Yourself »

The <span> Element

The <span> component is a inline element that is regularly utilized as a compartment for some text.

<span< component have style and class no required properties

When utilized together with CSS, the <span> component can be utilized to style portions of the text:


<h1>Never <span style="color:green">Be The</span> Same</h1>
Try it Yourself »

Welookups is optimized for learning. © 2018 -
All Right Reserved and you agree to have read and accepted our term and condition.