References

Collection of references for web development.

HTML div tag

Description

The HTML <div> element represents a container for other HTML elements.

Example

<div>
	<h2>Your Heading</h2>
	<p>Your content...</p>
</div>

Example #2

<div style="width:50%;float:left;">
	<p>This content will appear on the left.</p>
</div>
<div style="width:50%;float:right;">
	<p>This content will appear on the right.</p>
</div>