|
Posted by Eric B. Bednarz on 01/24/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
Navigation:
[Reply to this message]
|