HTML <div> Element Reference

The HTML <div> element is a generic flow container used when no more meaningful element applies.

<div>

HTML <div> Element Reference

The HTML <div> element is a generic flow container used when no more meaningful element applies.

Categories

  • Grouping content

Tag omission

Consult the HTML Living Standard for the precise tag-omission rules.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical div element example.

<div class="card">
  <h2>Tool name</h2>
  <p>Tool description</p>
</div>

Related references

Description

The HTML <div> element is a generic flow container used when no more meaningful element applies.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <div> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies