welcome to tutorialfamily

html block

HTML have two type block element <div> & <span>.

HTML block is defines in <div> tag.

div tag is block element.

span tag is inline block element.

html image with attributes

example div block



<!DOCTYPE html>
<html>
	<head>
		<title>
			div block demo
		</title>
	</head>
<body>
	<div>
		<p>
			this is my car
		</p>
	</div>
</body>
</html>


example span block



<!DOCTYPE html>
<html>
	<head>
		<title>
			span block demo
		</title>
	</head>
<body>
	<div>
		<span>
			this is my car
		</span>
	</div>
</body>
</html>


Our Content