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>