← All languages
HTML tag of the day
Random

<div>

A generic container for grouping content with no inherent semantic meaning.

Description

The `<div>` tag is an HTML element used in web documents. It can be combined with attributes to control semantics, behavior, and presentation in supported user agents.

Arguments

NameDescriptionOptional
attributes Optional global or element-specific attributes for `<div>`. Yes

Example

<div class="container">
  <h2>Section Title</h2>
  <p>Content goes here.</p>
</div>

Reference