Page 1 of 1
headers and footers
Posted: Tue Apr 22, 2003 2:38 pm
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
Posted: Tue Apr 22, 2003 2:49 pm
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.
Posted: Fri May 02, 2003 2:42 am
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?
Posted: Fri May 02, 2003 4:09 am
by d1223m
lcidw: what browser are you using? it probably works in IE but not Mozilla or the other way round *grin*
Posted: Fri May 02, 2003 4:21 am
by lcidw
I was using IE.
Hm, i need a header which works for all good browsers, as IE, Mozilla, Nescape..
Tips?