Does my the top of my code seem okay?

Discussion in 'HTML & Website Design' started by dj_gie, Jan 25, 2007.

  1. #1
    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 &amp; 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 &amp; 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="&copy; 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>
     
    dj_gie, Jan 25, 2007 IP
  2. intothemiddle

    intothemiddle Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    intothemiddle, Jan 25, 2007 IP
  3. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks. Is all the meta data relivent? Does it all need to be there?
     
    dj_gie, Jan 25, 2007 IP
  4. intothemiddle

    intothemiddle Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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 &amp; 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.
     
    intothemiddle, Jan 25, 2007 IP
  5. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks. I've started putting all the css into one.
     
    dj_gie, Jan 25, 2007 IP
  6. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You only need Meta Description, and keywords can't hurt.
    The other is junk (other than character encoding... useful sometimes)
     
    bobby9101, Jan 25, 2007 IP
  7. intothemiddle

    intothemiddle Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    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.
     
    intothemiddle, Jan 25, 2007 IP
  8. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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.
     
    dj_gie, Jan 26, 2007 IP
  9. intothemiddle

    intothemiddle Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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 =)
     
    intothemiddle, Jan 26, 2007 IP
  10. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks intothemiddle. Your advice is much appreciated
     
    dj_gie, Jan 26, 2007 IP
  11. intothemiddle

    intothemiddle Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    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 =)
     
    intothemiddle, Jan 26, 2007 IP
  12. dj_gie

    dj_gie Peon

    Messages:
    327
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Do you know what Charset i should set for my site?
     
    dj_gie, Jan 26, 2007 IP
  13. bobby9101

    bobby9101 Peon

    Messages:
    3,292
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #13
    UTF-8 is fine to use
     
    bobby9101, Jan 26, 2007 IP