HomeReferencesHTML Tags

HTML Tag: div

Division. Defines a block of HTML. Commonly used to apply CSS to a chunk of a page.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Required Attributes

  • None.

Optional Attributes

Example


<body>
	<div id="navigation">
		[stuff]
	</div>
	<div id="content">
		[stuff]
	</div>
</body>