IF i remove a line , my website is displayed bad.

Discussion in 'HTML & Website Design' started by JinRoh, Mar 16, 2007.

  1. #1
    Hello, I have a website: www.CHETOS.es

    if I remove this from the top (I got it from a "template", so I didn't added it, and I don't really know why is it for :p )

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Code (markup):
    All the text is now VERY BIG!! And it's displayed bad. You can see it here ->

    www.CHETOS.es/test.php

    It's the same website, I just removed this

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    Code (markup):
    Also, if you look at the google cache of my website , texts are also very big.

    What can I do?
    Thanks
     
    JinRoh, Mar 16, 2007 IP
  2. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dont remove it DTD are important, they are used to inform a browser on how to render a page, add it back. Without the DTD, most browsers (mostly IE) wont know what to do with the coding, and go into 'quirk' mode.

    For more info on doc types, see this post I made last week http://csschat.com/showthread.php?t=20

    Hope it helps
    Ash
     
    bacanze, Mar 16, 2007 IP
  3. joesgraphics

    joesgraphics Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The question is why would you want to remove it.
    And it is to help the browser out to know what type of coding ur useing e.g. xhtml 1 transitional if you go to http://www.w3.org/TR/xhtml1/ you can read more about it.
     
    joesgraphics, Mar 16, 2007 IP
  4. JinRoh

    JinRoh Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would like to remove that, because I am having problems with the "big font sizes" in , Google Cache, my stats, and when I add , for example, some comments script to my website.

    I think the problem is that DTD, but I don't know how to fix it.
     
    JinRoh, Mar 16, 2007 IP
  5. joesgraphics

    joesgraphics Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    nop i dont think that would be it it would be the css if u asked me over msn i could of helped you hehe.
     
    joesgraphics, Mar 16, 2007 IP