Best Practice to write header

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

I don't like to code redundant information on every web page I write. For a
particular website, I want to code the following information at the top of
the page.

<html>
<head>
<title>My Title</title>
</head>
<body>

Of course this is simplified, I would like to pass in a title, and I would
like to be able to change this header and every page reflect it.

I'm coming from an asp background where I used header files constantly, but
I've heard that really isn't the way to go. Can anyone give me suggestions
on what they think is the best way to go about this?

Thanks,
--Michael
 
User Control. But you will need 2.
One for header <html>
One for footer </html>

George.
 
If you were feeling adventurous you could extend the page class to declare
the header content as properties - take a look at some page template
tutorials on the web.

Joe
 
Back
Top