Posted by mbstevens on 12/09/50 11:56
For the following code snippets from
a strict doctype page,
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?
____________________________________________
HTML Tidy output with '-i' indentation set:
_____________________________________________
<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>
_______________________________________________
vaguely Lispish:
_______________________________________________
<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>
_______________________________________________
contained levels:
_______________________________________________
<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>
_________________________________________________
Flat, spaced:
_________________________________________________
<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>
Navigation:
[Reply to this message]
|