headers and footers

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

headers and footers

Post by nincha »

What is the main purpose of headers and footers, can some one give me an example when it is used or needed. thnx
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Just a design choice really - you don't have to follow the crowd.

A header is a convenient place to store a company logo etc to "brand" the site - maybe a few buttons to click like "search site" and so on.

A common framework - with any or all of a header, footer, side bar helps to maintain a consistent design throughout the site - if that suits your aims. Ain't no rules really when it comes to design although it's always good to be able to deliver the standard stuff if it's the best option. A modern art site would probably love you for doing something spectacular but a serious news site might not want the design to distract frrom the content.

And spectacular designs often mean spectacular page load times.
lcidw
Forum Commoner
Posts: 58
Joined: Mon Apr 28, 2003 8:55 am
Location: Netherlands

Post by lcidw »

Uhm, i thought headers and footers where for generating a standard layout, so not every page needs an apart configuration. And what about <!DOCTYPE .. etc? Doesn't that belong in a header?

Now we're talking about headers, i can put my own question nice in here..

I want php files to give back good headers, xhtml1.0 compliant, using css stylesheets offcourse. Dreamweaver MX does this automatic.

Code: Select all

<?xml-stylesheet href="style.css" type="text/css"?>
<!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" xml:lang="en" lang="en">
<head>
<title>good php-file</title>
</head>
But now, the CSS doesn't work. I searched w3c.org and accurring to w3c this should work? I had to ad this line to make it work, but i don't think that's a solution..

Code: Select all

<link rel="stylesheet" type="text/css" href="style.css" />
Am i thinking or working wrong?
User avatar
d1223m
Forum Commoner
Posts: 80
Joined: Mon Mar 31, 2003 5:15 am
Location: UK, West Sussex

Post by d1223m »

lcidw: what browser are you using? it probably works in IE but not Mozilla or the other way round *grin*
lcidw
Forum Commoner
Posts: 58
Joined: Mon Apr 28, 2003 8:55 am
Location: Netherlands

Post by lcidw »

I was using IE.

Hm, i need a header which works for all good browsers, as IE, Mozilla, Nescape..

Tips?
Post Reply