Align Attribute Deprecated

前端 未结 1 1615
遥遥无期
遥遥无期 2021-01-18 20:28

I found out a while back that the center tag was deprecated. Understandable because HTML is meant for structuring content and not so much for formatting. But why is the alig

相关标签:
1条回答
  • 2021-01-18 21:11

    Yes, CSS should be used for that. I can't think of a single reason why it would be better to use an HTML attribute for alignment instead of a CSS rule. And if you don't want to learn CSS (which is fine), you might want to consider using a CSS framework like Twitter Bootstrap, especially the scaffolding part. It will save you a ton of time, make your site look good from the get go, and let you apply custom themes in a consistent fashion whenever you grow tired of the default one.

    0 讨论(0)
提交回复
热议问题