Below is the top code of my web page. Does my code need cleaning out? If so, what should i keep and what should i remove? Is there any code there that i might not have written correctly? I don't want to remove something that will cause trouble to my site. Kind Regards <!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> <title>FCBS | Sharp Copier, Multifunction Copiers, Photocopiers & Office Equipment</title> <meta name="Description" content="First Class Business Solutions is an office equipment supplier that supplies Sharp copiers, Konica Minolta photocopiers, colour copier machines, digital copy machines & multifunction copiers." /> <meta name="Keywords" content="sharp, copier, copiers, digital, document, equipment, fax, infotec, konica, minolta, machines, multifunction, network, office, photocopier, photocopiers, printers, products, refurbished, services" /> <meta name="verify-v1" content="TfFav6aB+llnJnzi10BOZEvgiPMTh766RgD5DhNw/lo=" /> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Language" content="en-GB" /> <meta name="MSSmartTagsPreventParsing" content="TRUE" /> <meta name="Author" content="First Class Business Solutions" /> <meta name="Distribution" content="Global" /> <meta name="Copyright" content="© Copyright 2006 First Class Business Solutions" /> <link rel="shortcut icon" href="favicon.ico" /> <link href="background.css" rel="stylesheet" type="text/css" /> <link href="bordercolour.css" rel="stylesheet" type="text/css" /> <link href="backgroundtop.css" rel="stylesheet" type="text/css" /> <link href="site.css" rel="stylesheet" type="text/css" /> </head>
Well what you NEED there and what you have are two different things. <!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> <title>FCBS | Sharp Copier, Multifunction Copiers, Photocopiers & Office Equipment</title> <meta name="verify-v1" content="TfFav6aB+llnJnzi10BOZEvgiPMTh766RgD5DhNw/lo=" /> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Language" content="en-GB" /> <link href="allsitestyle.css" rel="stylesheet" type="text/css" /> [I left the verify tag in there for obvious reasons..but for 'working' purposes you don't even need that) Even something to above will still pass validation and be indexed in the SEs. Meta Tag data can vary for who needs what, are you trying to create a streamline piece of code, are you trying to make an SEO page, or are you just trying to make a website just for the sake of it. You could even leave everything but the title tag if you wished.
You only need Meta Description, and keywords can't hurt. The other is junk (other than character encoding... useful sometimes)
Splitting up CSS can be useful by all means, but within the context as the post, and with most small to medium sized sites keeping all the CSS in 1 location is advantageous to everyone.
Thanks. I 've just realised how much better it is. I don't know much about css, i'm still learning. Do you know if there is a css code that can be used for spacing out pages? At the moment I am using a blank gif to space out.
Definitely don't use spacer images, check out this tutorial on positioning elements with CSS: http://www.webreference.com/html/tutorial18/ Changing the way you think about creating your pages from old HTML through to XHTML/CSS is a whole other way of thinking, so you may take some time to get your head around it... may take years to stop thinking in the way you do now to how you need to, but its well, well, well worth it =)
No problem, I spent 4 or so years using old school html and spent another 3 or so trying to achieve true xhtml/css valid pages (the url in my profile isnt a site I created, I'm just making them a new one, the 2 in my signature are better examples). Good luck =)