---
title: "Discussion on \"Difference between span and div tag in HTML.\" | Hashnode"
description: "Discussion on \"Difference between span and div tag in HTML.\". In HTML, both the div and span tags are used as container elements to group and format content on a web page, but they have different use cases and behave differently.\nThe div tag is used to group and format larger sections of content on a page, such..."
url: "https://hashnode.com/posts/difference-between-span-and-div-tag-in-html/6443f3625303445636690492"
---

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

Discussion

# [Difference between span and div tag in HTML.](https://suryathink.hashnode.dev/difference-between-span-and-div-tag-in-html?utm_source=hashnode&utm_medium=feed)

In HTML, both the div and span tags are used as container elements to group and format content on a web page, but they have different use cases and behave differently. The div tag is used to group and format larger sections of content on a page, such...

Apr 22, 2023 · 3 min read · suryathink.hashnode.dev  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#span](https://hashnode.com/tag/span)
-   [#html-tags](https://hashnode.com/tag/html-tags)
-   [#div-tag](https://hashnode.com/tag/div-tag)
-   [#difference-between-span-tag-and-div-tag-in-html](https://hashnode.com/tag/difference-between-span-tag-and-div-tag-in-html)

## Written by

[Surya Prakash Singh](https://hashnode.com/@suryathink)

@suryathink · India

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

Software Engineer | Full Snack Developer

A full stack developer from India. Html | Css | Javascript | React | Redux | Tailwind | Node | Express | Mongodb | Sql | Nosql | Socket.io

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
