untidy source code
Posted: Tue Jun 03, 2008 6:53 am
Please have a look of following codes
1.
When we take the source code after run this code in the browser, it shows neatly same as above ( correctly intended)
2.
If we create a new php file for the "Main content are of above code and it call inside other php script such as
When we take the source code after run this code in the browser, it shows untidy( tags are not properly intended) as below
What is the reason of this alignment issue? Anyone can help?
1.
Code: Select all
<div>
<div>
<!-- Main contents here -->
<div>
<div>
<h1>Justin here !</h1>
<p>This is sample paragraph statement </p>
</div>
</div>
<!-- Main contents ends here -->
</div>
</div>
2.
If we create a new php file for the "Main content are of above code and it call inside other php script such as
Code: Select all
<div>
<div>
<!-- Main contents here -->
<?php include("main_content.php"); ?>
<!-- Main contents ends here -->
</div>
</div>
Code: Select all
<div>
<div>
<!-- Main contents here -->
<div>
<div>
<h1>Justin here !</h1>
<p>This is sample paragraph statement </p>
</div>
</div>
<!-- Main contents ends here -->
</div>
</div>