+ 2
WHY USE "ALIGN" TO CENTER, WHEN YOU CAN JUST DO <CENTER> (instert text) <CENTER>
i realize it's for other purposes than just the center but.. What?!
4 ответов
+ 3
suppose you only use <center> and need to use it 50 times in your pages
then your customer say "now I need left aligned"
you need to remove the tag 50 times!
But if you use external css and a class for that elements, you need to change the css file in only one place 😀
+ 5
If we're talking about browsers/CSS/HTML, then it's great to know all of the above.
First off, <center> is not supported by HTML5, and it's highly recommended that one uses CSS for such purposes. Equally so, alignment from my experience, has been annoying as hell when developing complex websites. This isn't even considering how annoying it is that individual browsers are allowed to do things their own way. Good for the end user, annoying for developers. Often I'm using a combination between align and margins to center certain elements.
+ 2
Its better to have style separate from HTML, It is easier to understand
+ 2
Thank you for your kind and generous answers!
Feedback is helpful on here.