Jump to content

HTML Source Code Tab Indenting?


random1

Recommended Posts

Hey All,

 

I'm trying to get some opinions on source code formatting in HTML (using the TAB character).

 

For example:

 

<html>
<head>
	<title>TITLE</title>
</head>
<body>
	<div>
		<div>
			<div>
			test
			</div>
		</div>
	</div>
</body>
</html>

VS

<html>
<head>
<title>TITLE</title>
</head>
<body>
<div>
<div>
<div>
test
</div>
</div>
</div>
</body>
</html>

 

I already tab indent any of my PHP source files however I haven't for HTML source files.

 

What do you think is the better choice for HTML?  :shrug:

 

Should there be a limit set of how many levels of indent to avoid it getting to hard to follow?  :wtf:

Link to comment
https://forums.phpfreaks.com/topic/249361-html-source-code-tab-indenting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.