Forem

Dhanashree Rugi
Dhanashree Rugi

Posted on

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)

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay