What is the difference between <div align="center"> and <div style="text-align:center"> aside from the obvious difference that the latter is CSS?
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
Recommended Answers
Jump to Postwell, I've experimented with it a little before and validated it, aligning a div is not valid strict xhtml 1.0 anyways heh :). Other than that I don't know, I know I had different results when I used the div align but none that would make sense. E.g. I set …
Jump to PostWell, in that example there is no difference, it's just part of a push away from using html attributes for style and towards css.
IF I understand right the current movement is towards having the HTML (to be replaced by XML) describing only the actual content. Then how it …
Jump to PostI don't think align="" is valid XHTML 1.0 coding. style="text-align: " is, however.
All 9 Replies
Slade 66 Practically a Master Poster
ZWheel 3 Newbie Poster
rixius 0 Posting Whiz in Training
majj 0 Newbie Poster
Mrtony 0 Newbie Poster
MidiMagic 579 Nearly a Senior Poster
ssrawat 0 Newbie Poster
Bestwebdesign 0 Newbie Poster
johnsteve.bravo 1 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.