On this page
  1. <div>
  2. Summary
  3. Notes & Best Practices
  4. Example

<div>

Prev: `<strong>` | Up: text | Next: `<center>`
Rel: text, Text & Lists Guide
Ref: MDN Web Docs — <div>
Tags: #public #web #html #elements #text #tier/core


Summary

Neutral block container (<span> for inline) with no semantic meaning.

Notes & Best Practices

Example

<div class="card-grid">
  <article class="card">Item 1</article>
  <article class="card">Item 2</article>
</div>

Linked from

Related notes