Insert Body Tags

Immediately after the </head> tag, open the <body> tag: <body>

Then add a closing </body> tag:

All the code discussed in the section below will be placed inside the body tag.

Taken together, at this stage, you should now have the template's bare skeleton, like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www. w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/19 9 9/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>"> <head> <title>

<?php print $head; ?> <?php print $styles; ?> <?php print $scripts; ?>

<script type="text/javascript"> </script> </head> <body> </body> </html>

Into this document outline, we will now place the basic HTML that defines the layout of the output on the page. Once we have the basic HTML in place, we will insert the functional elements into the appropriate areas.

Was this article helpful?

0 0

Post a comment