Results 1 to 10 of 10

Thread: DOCTYPE question

  1. #1
    Join Date
    Dec 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DOCTYPE question

    Yes I have a website which the link is http://hiscross.coffeecup.com/ . My website works great in all the browsers such as Opera , Firefox , Internet Explorer , CHrome , but in Safarai it falls apart just a little bit , and I found out that using doctype (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">) , somehow makes it fall aprt , but if I delete doctype it works in all browsers , but falls apart in my html editor , and I mean totally falls apart , how can I use doctype , and it not fall apart in Safari ?

    Here is an example of it without doctype : http://hiscross.coffeecup.com/index14.html

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    What exactly is the problem with Safari? There doesn't seem to be a problem with your site on my machine.

  3. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    it looks fine in Safari for me too

    edit: there are lots of HTML errors. Go check your code at http://validator.w3.org/
    Last edited by mlegg; 12-08-2013 at 05:12 PM. Reason: add info

  4. #4
    Join Date
    Dec 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh that is funny for my main index.html page is off on my machine , but my index14.html works fine , check my index.html page to see how it works

  5. #5
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    612
    Thanks
    46
    Thanked 32 Times in 32 Posts

    Default

    hmm,I looked at both and they both work fine on my safari/machine/browser

    not sure what you are talking about either
    Thanks,

    Bud

  6. #6
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    whats the size of your screen?
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  7. #7
    Join Date
    Dec 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well here are screenshots of how my website looks on Safari , and I use windows 8.1 , and the size of my screen is 1920x1080.

    Here is my website with doctype , in Safari.

    Click image for larger version. 

Name:	simple1.jpg 
Views:	185 
Size:	10.5 KB 
ID:	5296

    And here is my website in Safari without a doctype , which works well.

    Click image for larger version. 

Name:	Simple2.jpg 
Views:	179 
Size:	10.8 KB 
ID:	5297

    Now here is my website in my html editor , without doctype.

    Click image for larger version. 

Name:	Simple3.jpg 
Views:	183 
Size:	9.5 KB 
ID:	5298

    Do I need a doctype argument , or can I do witohout , and if so , how can I get to work in my html editor ?

    Could the problem somehow be with windows 8.1 ?

  8. #8
    Join Date
    Dec 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Actually I solved my own problem through adding this code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>

  9. #9
    Join Date
    Dec 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks anyhow

  10. #10
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Generally you should start with a standards invoking DOCTYPE, like:

    HTML Code:
    <!DOCTYPE html>
    as the first thing in the source code of the page(s). Test the page(s) in a current version modern browser like IE 10 or Chrome 31.

    But because other approaches are workable, and depending upon the exact design things can vary, there is no hard and fast rule.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Best Doctype and why?
    By the penguin in forum HTML
    Replies: 2
    Last Post: 06-08-2010, 07:47 PM
  2. DOCTYPE -- Grr!
    By Jas in forum HTML
    Replies: 11
    Last Post: 02-24-2008, 06:56 PM
  3. DOCTYPE and CSS
    By susie123 in forum CSS
    Replies: 46
    Last Post: 12-14-2007, 01:22 PM
  4. <!doctype> vs <!DOCTYPE>
    By CHunt in forum HTML
    Replies: 2
    Last Post: 09-19-2007, 05:39 PM
  5. Doctype Question
    By Cheng in forum HTML
    Replies: 4
    Last Post: 12-11-2006, 12:29 PM

Bookmarks

Posting Permissions

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