News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Tag Indentation

Started by 127.0.0.1, September 13, 2004, 07:46:19 PM

Previous topic - Next topic

127.0.0.1

Is there a reason why the head tag isn't indented? (index.template.php)

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>


Same question here regarding the td, tr, and table tag. (index.template.php)

function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '</td>
</tr></table>';


Just curious. I tried searching for an answer and couldn't find anything relevant.

[Unknown]

No real reason for head not being indented.  I personally prefer to, but the person who originally designed that part thought differently, and I've never thought it's worth changing it.

As to </tr></table>... that is sometimes used when there is only one row in the table.  Technically, as I'm sure many will say in reply to this, tables should not be used in these cases, but then again we're trying to make SMF compatible even with slightly older browsers. (and no, I'm not going to argue the issue of "no one use IE 5 anymore" - you won't win.)

-[Unknown]

Advertisement: