1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

What type of DOC type

Discussion in 'HTML & Website Design' started by ian_ok, Mar 11, 2005.

  1. #1
    I've read and read, but am still very confused what type of doc type I should be putting for my various websites.

    They are .php mainly with html content and using the php include command for menus which pulls in a menu.html

    What type should I use?

    Also for a purely Spanish site, do I need to specify somewhere in a meta or other for SE's to know it is in Spanish?

    Thanks Ian
     
    ian_ok, Mar 11, 2005 IP
  2. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What are you using - HTML or XHTML?

    For HTML Transitional DTD:
    <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    Code (markup):
    For HTML Strict DTD:
    <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    Code (markup):
    For HTML Frames:
    <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">
    Code (markup):
    For XHTML Transitional DTD:
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Code (markup):
    For XHTML Strict DTD:
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    Code (markup):
    For XHTML Frames:
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    Code (markup):
    Remember, it is the way that the PHP is parsed on the server actually. And using the proper DOCTYPE will also help you when using CSS
     
    Corey Bryant, Mar 11, 2005 IP
  3. ian_ok

    ian_ok Peon

    Messages:
    551
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks Corey, Looks like the 1st one I'd say!

    Ian
     
    ian_ok, Mar 13, 2005 IP
  4. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Glad to have helped - good luck with the site!
     
    Corey Bryant, Mar 13, 2005 IP