---
title: "Discussion on \"The Difference Between Span and Div\" | Hashnode"
description: "Discussion on \"The Difference Between Span and Div\". Do you know the difference between the HTML tags span and div? 🤔"
url: "https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Difference Between Span and Div](https://lay.codes/blog/the-difference-between-span-and-div?utm_source=hashnode&utm_medium=feed)

Do you know the difference between the HTML tags span and div? 🤔

Sep 27, 2021 · 3 min read · lay.codes  
Updated Mar 27, 2023  
Read the article

-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#html5](https://hashnode.com/tag/html5)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Layla](https://hashnode.com/@laylacodes)

@laylacodes · Austin, TX

  
[View profile](https://hashnode.com/@laylacodes)

Software Engineer @ Oracle

Software Engineer at Oracle, Database Tools team

## Responses 5

Markdown supported · ⌘↵ to post

[Lucian Tartea](https://hashnode.com/@devluc)

[Oct 9, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/61617fcf18374f257327168c)

Cool article Layla love your way of presenting web dev notions

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou)

[Sep 30, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/6155798ae896275f335de664)

Great writing [Layla](https://hashnode.com/@codinglayla) ! And I'm sure many people weren't aware of the differences. 😅

[Layla](https://hashnode.com/@laylacodes)

[Sep 30, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/6155798ae896275f335de664#reply-6155cbd5e896275f335df43a)

I always value your feedback so much, [Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou) !! 🥰🧡 thank you for taking the time to read it! I’m grateful 🙂🙂

[Akebu](https://hashnode.com/@akebu6)

[Sep 28, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/61529e4acf735d72249a92cd)

I hardly knew what <span> did😅well explained and the part about using too many divs too.

Amazing read as always Layla 😍

[Layla](https://hashnode.com/@laylacodes)

[Sep 28, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/61529e4acf735d72249a92cd#reply-61531aa19c8bfd08f5ba732d)

Aw thank you, Akebu!! 🥰♥️♥️ There’s so many html tags I’m starting to realize, it’s hard to know what they all do 😅😅

[Akebu](https://hashnode.com/@akebu6)

[Sep 28, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/61529e4acf735d72249a92cd#reply-61532639414f78089df3af06)

That is true, there are a lot of them available[Layla](https://hashnode.com/@codinglayla)

[Pawan Bhandarkar](https://hashnode.com/@BhandarkarPawan)

[Sep 28, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/615276edcf735d72249a8fe7)

Good read, Layla! Short and straight to the point. I'm not a huge fan of unnecessarily bloated content so stuff like this really helps make things stick!

[Layla](https://hashnode.com/@laylacodes)

[Sep 28, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/615276edcf735d72249a8fe7#reply-61531a779c8bfd08f5ba731f)

Thank you, Pawan!!! And I totally agree, I get bored half way through long articles, so I try to make mine straight to the points 😆😆

[Thuy Vy Tran](https://hashnode.com/@thuyvytran)

[Sep 27, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/6151c779cf735d72249a83af)

I like how simple the explanations are! Great Job! :)

[Layla](https://hashnode.com/@laylacodes)

[Sep 27, 2021](https://hashnode.com/posts/the-difference-between-span-and-div/6151c6c2040ee8723694ff05/comment/6151c779cf735d72249a83af#reply-6151ca88cf735d72249a840d)

Thank you, Vy!!! :')<3
