DEV Community

Dhanashree Rugi
Dhanashree Rugi

Posted on

1 1

Align attribute in HTML

An important information to the beginners!

While designing my first HTML website I came across that HTML5 does not support align(centre, left, right) attribute as it is removed from the HTML5 document.

<p align = "centre"> Coderlogs </p>   // not supported format //
Enter fullscreen mode Exit fullscreen mode

You can use the CSS text-align property to centre any text or object or form in HTML.

Stay tuned!

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay