---
title: "Discussion on \"Center tag\" | Hashnode"
description: "Discussion on \"Center tag\". In HTML, the <center> tag is used to center content horizontally within a container element. The <center> tag is a block-level element, which means that it creates a new line and takes up the full width of its parent element.\nHere is an example of ho..."
url: "https://hashnode.com/posts/center-tag/63e74f226a6e8e1246879e7f"
---

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

Discussion

# [Center tag](https://lovetocode.hashnode.dev/center-tag?utm_source=hashnode&utm_medium=feed)

In HTML, the <center> tag is used to center content horizontally within a container element. The <center> tag is a block-level element, which means that it creates a new line and takes up the full width of its parent element. Here is an example of ho...

Feb 11, 2023 · 1 min read · lovetocode.hashnode.dev  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#html](https://hashnode.com/tag/html)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Shounak Pal](https://hashnode.com/@CodingBeast)

@CodingBeast

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
