Hey guys, I have read up on SEO and found that each page of your site should have a <title></title> specific to what is on the page. I have my headers saved as .inc files so as it stands my titles are all the same. I though about making two .inc header files, one of the .inc files is standard and it has all the java code and the header + button pictures. The other is the variable one and it would have only this info: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>TITLE</title> PHP: I would have several pages that need the same title so I would simply use this on all forum pages: <?php include("http://www.mysite.com/headvarieforum.inc"); ?> <?php include("http://www.mysite.com/headernorm.inc"); ?> PHP: This on all education pages: <?php include("http://www.mysite.com/headvarieeducation.inc"); ?> <?php include("http://www.mysite.com/headernorm.inc"); ?> PHP: So it would give me the flexibility of using .inc files while at the same time allowing me to set separate page titles on each page or section. Is this a good idea? are there any set backs?
There are two elements within the head that should be unique to the page, the title and the description meta data. Google will return the title as the top line of the search result, and the description as the, um, description of the page. If the description is missing, the first few words from the page body are used. Google for enclosing floats. About the third entry is this: Enclosing Float Elements | Floats | HTML & CSS Workshop | Gary ... enclose float elements within their containers using css. gtwebdev.com/workshop/floats/enclosing-floats.php - 18k - I firmly believe, and some Google docs hint, that the title is given great weight in determining relevance; especially when there are word matches to body content. The page cited is only about two months old, on a site that's not yet three months old, yet there it is, above the fold on the first page. cheers, gary
There is no harm in having multiple include files but as said title should be unique to the page. With .Net it is possible to set the title dynamically which enables you to include both a standard element from the config file and a dynamic element unique to that page so future updates are much easier if you want to change the static element.... I dont know if PHP has a similar capability?