Legacy & Obsolete Elements
<center>
Obsolete or historical HTML; do not use in new documents. Centered its contents using presentational markup. Use text-align for inline content; use layout properties such as margin-inline for block positioning. The syntax shows old markup for recognition only. The runnable example demonstrates a modern migration pattern, not the obsolete behavior.
Formal Syntax & Structure
html syntaxhtml
<center>Welcome</center>Working Example
Example Snippethtml
<p style="text-align: center">Welcome</p>