I will use PHP variables and code layout then I can easily change everything on variables and make another site too!
HTML + PHP LAYOUT CODE:
<?php
//CSS part!
$style = 'body {
background-color:#A4A4A4;
}';
//CSS part ends!
//Head with CSS code and TITLE:
echo '<head><style>' . $style . '</style>
<title>Home</title>
</head>';
//text variables starts here:
$btext = '<h1>Welcome to my sites</h1>';
$ltext = '<a href="#">Links</a><br/><a href="#">Here</a>';
$ctext = '<p>OMG! Didnt even tought that you can create pages like this!</p>';
$ftext = '<p>Layout copied from W3Schools.com < visit !</p>';
//layouts variables starts here:
$table = '<table width="500" border="0">';
$banner = '<tr><td colspan="2" style="background-color:#FFA500;">' . $btext . '</td></tr>';
$linkbox = '<tr valign="top"><td style="background-color:#FFD700;width:100px;text-align:top;">' . $ltext . '</td>';
$contentbox = '<td style="background-color:#EEEEEE;height:200px;width:400px;text-align:top;">' . $ctext . '</td></tr>';
$footer = '<tr><td colspan="2" style="background-color:#FFA500;text-align:center;">' . $ftext . '</td></tr></table>';
//Echo for the banner:
echo $table . $banner;
//Echo for the linkbox:
echo $linkbox;
//Echo for the contentbox:
echo $contentbox;
//Echo for the footer:
echo $footer;
?>
Layout is copied from W3Schools.com!Just wanted to share this to newbies out there! There are many ways to do anything!
Trying them out is learning, so go ahead and start learning! :P


Sign In
Create Account


Back to top









