Difference between Block Level elements and inline elements in HTML

Block level will force the user to start and end in new line. For example, <div> <h1> <table> etc.

Inline elements doesn’t force you start a new line. <b>,<i>, <u> etc.

For example if you write <h1>Heading</h1><h2>Heading2</h2>, it will be displayed in two lines.




The HTML is displayed in two lines.

But if you write <h1>This is <b>Bold</b>

The output will be

This is Bold. 

Here the output is only in one line.

Need more from us, Please like pages www.facebook.com/massbaab or www.facebook.com/baabtra or www.facebook.com/baabte

www.baabte.com | www.baabtra.com | www.massbaab.com

Author can be reached at :

Linkedin –> in.linkedin.com/in/harisnp

Twitter  –>https://twitter.com/np_haris

facebook.com –>http://www.facebook.com/haris.np.9


About Haris NP