WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML Block and Inline Elements


In this part we learn show an incentive for most components is square or inline.


Block-level Elements

A square dimension component begins left to perfectly fine

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:-

Example

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

<h2>India</h2>
<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>

</div>
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:

Example

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


Welookups is optimized for learning.Copy right 2018 - 2019 kumar aditya singh .
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved.

welookups.com