Reply to Re: indentation

Your name:

Reply:


Posted by Eric B. Bednarz on 11/30/17 11:56

mbstevens <NOXwebmasterX@XmbstevensX.com> writes:

> which of the following styles of
> indentation do you prefer?
>
> And do you have a style that is unlike any of these
> that we should have a look at?

> < a href="http://www.mozilla.org/"
^

This is not wrong (the end tag further on is, though), but you do
realise that's not a STAGO delimiter in this context, do you?


Since whitespace between tags is often problematic (e.g. CSS bugs, DOM
discrepancies), the best way of formatting HTML is to remove it (the
whitespace, not the HTML :). I wouldn't indent myself, but of course
you can if you wish, e.g.

<body
><p
class="ahem"
>ljfdlsfjd ksldfjlsdjk lsjdlsdj ldkfjlf jdksllsdj lsjlsjd jlsdkfj
fjkdlflkf jldksjflsjf ldsjflsdj jfdlsjlds</p
><ul
class="ahem"
><li
><a
href="http://www.mozilla.org/"
class="dark"
>Download Mozilla or Firebird</a
></li
><li
><a
href="http://www.opera.com/"
class="dark"
>Download Opera</a
></li
></ul
></body
></html
>

I appreciate the copy in the paragraph, BTW. I've seen a lot of pages
with an 'ahem' class, and they all had an idiotic message attached.


--
||| hexadecimal EBB
o-o decimal 3771
--oOo--( )--oOo-- octal 7273
205 goodbye binary 111010111011

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация