Forum Moderators: open

Message Too Old, No Replies

<p align="left">

...is this code bloat?...

         

troels nybo nielsen

8:46 am on Jan 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some of my HTML-editors write <p align="left"> as default. Others just write <p>. I have never been quite certain if this attribute is code bloat or if there is a good and sound reason for using it.

knighty

8:52 am on Jan 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In most cases the default alingment IS left anyway.

I always leave it out on all tags unless I have a mixture of alignments where I need to overwrite say a row that is centered.

bill

8:53 am on Jan 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It won't help you moving forward to XHTML. I've been spending time recetly removing all the align tags in a site that was WYSIWYG'd. Save yourself some frustration later, and remove them now. You can always set alignment in CSS.

troels nybo nielsen

9:03 am on Jan 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for your help. I'll just go on removing those alignments form the site map in a 100+ page site. There must be something like 1KB of them.

piskie

9:19 am on Jan 14, 2003 (gmt 0)

10+ Year Member



bill - How long do you predict it will be before XHTML and "align" clashes and becomes a significant problem?

bill

12:37 pm on Jan 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



piskie, I think that will depend on the adoption of XHTML by the webmaster community. If the past year of activity on WebmasterWorld is any gage, then I'd say a lot sooner than you think. We've seen a real groundswell in favor of validation and standards based coding among members here. I think that when webmasters go to the trouble of validating their HTML, it's not too much of a leap to move to XHTML. It makes a lot of sense and it's a lot neater and cleaner in the end.