HTML - Block

In HTML two types of tag inline and block type tag like a div tag is block type tag and span is inline tag the follow both example.

<div>

The div tag is block type HTML tag the folowing example of div tag.

Syntax


<div>
-
-
	<!-- HTML Code Here..-->
-
-
</div>
							

Example


<div>
<h1>This is Heading</h1>
<p>
	This is some dummy content for understanding..
</p>
</div>							
							
Share Share on Facebook Share on Twitter Share on Google+ Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit