---
title: "Discussion on \"IDs vs Classes in HTML\" | Hashnode"
description: "Discussion on \"IDs vs Classes in HTML\". The difference between an ID and a class in a HTML page.\n\nAn id is a unique identifier....."
url: "https://hashnode.com/posts/ids-vs-classes-in-html/654943aeef0796278af70528"
---

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

Discussion

# [IDs vs Classes in HTML](https://beela303.hashnode.dev/ids-vs-classes-in-html?utm_source=hashnode&utm_medium=feed)

The difference between an ID and a class in a HTML page. An id is a unique identifier.....

Nov 6, 2023 · 1 min read · beela303.hashnode.dev  
Updated Nov 6, 2024  
Read the article

-   [#html](https://hashnode.com/tag/html)
-   [#html5](https://hashnode.com/tag/html5)
-   [#css](https://hashnode.com/tag/css)
-   [#css3](https://hashnode.com/tag/css3)

## Written by

[Nabila Abubakar](https://hashnode.com/@Beela303)

@Beela303

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

Frontend web developer

I'm a self-taught front-end web developer on my way to full-stack. Currently learning Django and ionic.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
