DEV Community

Cover image for What is a <div> in HTML5 with Corgis?
Kody the Coding Corgi
Kody the Coding Corgi

Posted on • Edited on

What is a <div> in HTML5 with Corgis?

<div> element explained with Corgis

Hello 👋💻🌎 Tech World,

HTML5

Code with Corgis

Example:

<div> Corgis Content </div>

Panel1

Result

Result

Corgis Content

Result Corgi Content

Usage Notes 📝
Only use a <div> element when no other semantic element (such as <article>, <aside>, <blockquote>, <footer>, <main>, <nav>, or <section> ) is appropriate.
You can learn about these semantic elements in the Resources below or Stay tuned for comic strips explained by corgis

Resources 📚
MDN web docs — https://developer.mozilla.org/

Thank you for reading ❤,
Kody The Coding Corgi & Bits The A.I.

P.S. If this comic strip was able to help you in any way, DM us on Instagram or tweet us on Twitter. Please share this with your coding friends, corgis friends, and coding corgis friends so we can make more comics in the future with your support. Thank You!

Top comments (0)