HTML <div> tag

Usage

Used to define a section of code known as a division. You can then use CSS to apply styling and positioning properties to the div.

Example

Code:

<html>
<body>
<div id="header">
Header text goes here
</div>
<div id="content">
Page content goes here
</div>
</body>
</html>

Required Attributes

  • none

Optional Attributes

  • none

Core Attributes