Jump to content

Recommended Posts

Refer to the title tag and the subsequent h1 tag inside the header.

 

This totally works, but I wanted to see what other people thought/felt when they saw it. Do you think that this is bad structure/coding practice? Obviously I could split it up into two calls. Do you think it's a 6 of 1/half a dozen type of thing? The only reason I did it was because it was faster to type. (But now that I've posted this thread here, I could have just done it with two calls and saved A TON of time, lol.)

 

<?php require_once($_SERVER['DOCUMENT_ROOT']."/include/globals.php"); ?>
<!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/1999/xhtml">
<head>
<title>ch › <?php echo $page = "colophon"; ?></title>
<?php include $_SERVER['DOCUMENT_ROOT']."/include/meta.php"; ?>

</head>
<body>
<div id="wrap">
<div id="navigation">
	<?php include $_SERVER['DOCUMENT_ROOT']."/include/navigation.php"; ?>

</div><!-- /navigation -->
<div id="header">
	<h1><?php echo $page; ?></h1>
</div><!-- /header -->

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.