Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've changed the default template default.html located in C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5\configuration\DocumentTypes\NewDocuments.

I want it to look like this when creating new .html pages:

<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">
        <title>Untitled Document</title>
    </head>
    <body>
    </body>
</html>

But DW keeps putting the head-closing-tag to the left so it ends up like this:

<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">
        <title>Untitled Document</title>
</head>
    <body>
    </body>
</html>
share|improve this question

1 Answer 1

I read your question and thought, 'Does it really matter?'

You do not intend to indent the <html> tag, so why indent <head> and <body>, as they are so distinct, anyway?

I think it is preferable to have the indentation go something like this:

<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
</head>

<body>
    <div>
        <div>
        </div>
    </div>
</body>
</html>

This way would reduce the need for sideways scrolling or wordwrapping, while everything will be as clear to read as your intended format, (if not more so, as there is a clearer separation between the head and body).

share|improve this answer
    
Ok you got a point there, but if youre to be exact the head and body is nested within the htmltag, right? –  Chris_45 Jun 20 '11 at 18:27
    
@Chris_45: Yeah, sure, but the whole point is making it clear to read, and this way is clearer, anyway. There is no technical need for the indentation. Just forget the <html> tag is even there. –  paradroid Jun 20 '11 at 18:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.