Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: <!doctype

  1. #1
    Regular Coder ubik's Avatar
    Join Date
    Oct 2005
    Location
    westCoast, usa
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer <!doctype

    my friend has this site

    you can find it at:
    http://www.guyfactor.com/index2.html

    it seems to be working perfectly in Internet Explorer, but when viewed in Firefox the tables are not showing up correct they are off the page and everything is misplaced. I have two screenshots here of the page in both browsers:


    this is Internet Explorer, perfect.



    this is firefox, everything is misplaced



    i believe the page was designed in dreamweaver MX, I would appreciate any help/input on this subject, thanks.
    Last edited by ubik; 12-16-2005 at 07:53 PM.
    "True knowledge exists in knowing that you know nothing."
    -Socrates

  • #2
    Regular Coder Ranger56's Avatar
    Join Date
    Mar 2005
    Location
    Kent, WA.
    Posts
    783
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just see 3 broken images

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Oh my...

    Amazing to see how much markup can be compiled to do absolutely... nothing! Table-icious...
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Yeah I just get a page with a bunch of broken images.
    OracleGuy

  • #5
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    He's trying to use an html file (2.0 no less) as an image. This is a mess.

  • #6
    Regular Coder ubik's Avatar
    Join Date
    Oct 2005
    Location
    westCoast, usa
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i found a solution...
    i removed this first line from the html source:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
    "http://www.w3.org/TR/html4/loose.dtd">
    i guess cause browsers that dont support html 4.01 wont display it correctly? can someone verify why this happened?
    "True knowledge exists in knowing that you know nothing."
    -Socrates

  • #7
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    lol, Firefox if any other browser is the one that supports it correctly. IE on the other hand well it doesn't read colspans or rowspans correctly. Firefox however does this better than IE. The general rule of thumb is if your site looks okay in IE but not in a browser like Firefox then there is a good chance something is wrong with your coding. You should always code with a valid doctype (you know that line you removed). Code for a good browser like Firefox or Opera first then tweak for IE.

  • #8
    Regular Coder ubik's Avatar
    Join Date
    Oct 2005
    Location
    westCoast, usa
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what could possibly happen if you were to exclude the doctype from an html document? ive never included that in any of my sites and never had a problem in a variety of browsers?
    "True knowledge exists in knowing that you know nothing."
    -Socrates

  • #9
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by ubik
    what could possibly happen if you were to exclude the doctype from an html document?
    The browser just sort of has to guess at what version of HTML/XHTML to parse it as and it could lead to problems. Doctype's are a good thing on the whole though.
    OracleGuy

  • #10
    Regular Coder ubik's Avatar
    Join Date
    Oct 2005
    Location
    westCoast, usa
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok.. I read somewhere that if the doctype changes your page you can compromise by using half a doctype, like this:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    instead of:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    so far its solved my problem, i found this information at http://diveintoaccessibility.org/day...a_doctype.html
    but can someone verify this information to be correct?
    "True knowledge exists in knowing that you know nothing."
    -Socrates

  • #11
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    It's a malformed doctype, so the browser goes into quirks mode.

  • #12
    Regular Coder ubik's Avatar
    Join Date
    Oct 2005
    Location
    westCoast, usa
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i tried to read up on quirks modes but i couldnt follow much of it, i did however find this:

    Both of the declarations in the following example specify conformance to the Transitional HTML4.0 DTD. The second declaration specifies the URL of the DTD. The first declaration does not. The second declaration switches on standards-compliant mode with Internet Explorer 6 or later. The first declaration does not.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    "standards-compliant mode" ?
    "True knowledge exists in knowing that you know nothing."
    -Socrates

  • #13
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Standards-compliant means it will interpret your HTML more like other browsers really, in laymans terms. You want IE in standards-compliant mode as opposed to quirks mode.

  • #14
    Regular Coder ubik's Avatar
    Join Date
    Oct 2005
    Location
    westCoast, usa
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so if its going to go into quirks mode with the doctype:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    should i just leave it out and put no doctype? afterall the page was designed and entirely generated in visual dreamweaver. perhaps it might need a different doctype?
    "True knowledge exists in knowing that you know nothing."
    -Socrates

  • #15
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you leave it out it will still be in quirks mode. You need to add a full Doctype ie.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •