DOCTYPE error

Discussion in 'HTML' started by Mike, Sep 16, 2006.

  1. Mike

    Mike Guest

    Hi folks, I attempted to upload my simple website using IE and ftp and
    received an error. Below is the top section of my code, below this is
    the error IE gave me. Any help on how to correct this error would be
    greatly appreciated! Mike Salish

    The top part of my HTML coding

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
    lang="en-US">
    <head profile="http://www.w3.org/2000/08/w3c-synd/#"><meta
    http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <meta name="keywords" content="bottlepal, zapcap, zap cap, zapacap, zap
    a cap, bottle opener, novelty bottle opener, novelty" />
    <meta name="description" content="Bottlepal bottle openers are unique
    gadgets that make opening your bottled beverage a fun and unique
    experience" />



    BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:

    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error
    and then click the Refresh button, or try again later.


    --------------------------------------------------------------------------------

    End tag 'div' does not match the start tag 'IMG'. Error processing
    resource 'ftp://u40859955-mikesal:...

    <div style="text-align: center;"><IMG
    SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
    ALT="lo...
     
    Mike, Sep 16, 2006
    #1
    1. Advertising

  2. Mike wrote:

    > Hi folks, I attempted to upload my simple website using IE and ftp and
    > received an error. Below is the top section of my code, below this is
    > the error IE gave me. Any help on how to correct this error would be
    > greatly appreciated! Mike Salish
    >
    > [snip]
    >
    > BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:
    >
    > The XML page cannot be displayed
    > Cannot view XML input using XSL style sheet. Please correct the error
    > and then click the Refresh button, or try again later.
    >
    >
    > --------------------------------------------------------------------------------
    >
    > End tag 'div' does not match the start tag 'IMG'. Error processing
    > resource 'ftp://SNIP:...

    ^^^^^^^^^
    You have just posted the login credentials to your webspace.
    *Change your password as soon as possible!!!*

    > <div style="text-align: center;"><IMG
    > SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
    > ALT="lo...


    The relevant part seems to be missing, but I think, you forgot to close the
    IMG element (<IMG ... /> instead of <IMG ... >).

    Element and attribute names are case-sensitive in XHTML, you'll have to use
    lower case. Are you sure you need XHTML?

    --
    Benjamin Niemann
    Email: pink at odahoda dot de
    WWW: http://pink.odahoda.de/
     
    Benjamin Niemann, Sep 16, 2006
    #2
    1. Advertising

  3. Mike

    Jim Moe Guest

    Mike wrote:
    > Hi folks, I attempted to upload my simple website using IE and ftp and
    > received an error. Below is the top section of my code, below this is
    > the error IE gave me. Any help on how to correct this error would be
    > greatly appreciated! Mike Salish
    >
    > The top part of my HTML coding
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"


    Delete the "<?xml ...?>" part. IE does not understand it and does not
    like it.
    Run your site through an [X]HTML validator:
    <http://validator.w3.org/>
    <http://www.htmlhelp.com/tools/validator/>

    --
    jmm (hyphen) list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)
     
    Jim Moe, Sep 16, 2006
    #3
  4. Mike wrote:

    > Hi folks, I attempted to upload my simple website using IE and ftp and
    > received an error. Below is the top section of my code, below this is
    > the error IE gave me. Any help on how to correct this error would be
    > greatly appreciated! Mike Salish
    >
    > The top part of my HTML coding
    >
    > <?xml version="1.0" encoding="utf-8"?>


    Then, after you change your password, remove the above first line, fix
    the img element error, and resend the page to your web server.


    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


    Doctype should be exactly as you show it here, uppercase and all.
    <snip>

    > End tag 'div' does not match the start tag 'IMG'. Error processing
    > resource 'ftp://u40859955-mikesal:...
    >
    > <div style="text-align: center;"><IMG
    > SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
    > ALT="lo...


    Image elements need to have a closing slash for XHTML, as do several
    other elements.

    <img src="..." alt="..." height="nnnpx" width="nnnpx" />

    --
    -bts
    -Motorcycles defy gravity; cars just suck.
     
    Beauregard T. Shagnasty, Sep 16, 2006
    #4
  5. Jim Moe wrote:

    > Delete the "<?xml ...?>" part. IE does not understand it and does not
    > like it.


    The problem with the <?xml ...?> part, with respect to IE, is that it throws
    IE into "quirks mode". This is just a special case of IE's cluelessness in
    "doctype sniffing": it treats _anything_ before a DOCTYPE declaration as
    requesting compatibility with old, broken versions of IE, i.e. "quirks
    mode". This need not be serious, and it might lack any observable effects,
    though this depends on the page markup and especially the associated style
    sheet(s).

    IE does not understand XHTML _at all_, so skipping the <?xml ...?> part is
    irrelevant. (Though it matters as "garbage before the DOCTYPE" to IE, in the
    above-mentioned sense.)

    Apparently the OP has the page in an environment where it is sent with HTTP
    headers that specify the Internet media type as e.g. application/xml+xhtml
    and not text/html. This is just fine except for the fact that it is
    completely unsuitable in practice at present and in the near future in the
    WWW context, where most people use IE, which fails to process that media
    type in a useful way.

    The morale is that XHTML should not be used as document distribution format
    on the WWW anytime soon, but this fact has been presented and argumented so
    many times in this group that I can safely leave it unmentioned here, can't
    I?

    --
    Jukka K. Korpela ("Yucca")
    http://www.cs.tut.fi/~jkorpela/
     
    Jukka K. Korpela, Sep 17, 2006
    #5
  6. Mike

    Jim Moe Guest

    Jukka K. Korpela wrote:
    >
    > The morale is that XHTML should not be used as document distribution format
    > on the WWW anytime soon, but this fact has been presented and argumented so
    > many times in this group that I can safely leave it unmentioned here, can't
    > I?
    >

    Yes, indeed.

    --
    jmm (hyphen) list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)
     
    Jim Moe, Sep 17, 2006
    #6
  7. Mike

    Mike Guest

    Benjamin Niemann wrote:
    > Mike wrote:
    >
    > > Hi folks, I attempted to upload my simple website using IE and ftp and
    > > received an error. Below is the top section of my code, below this is
    > > the error IE gave me. Any help on how to correct this error would be
    > > greatly appreciated! Mike Salish
    > >
    > > [snip]
    > >
    > > BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:
    > >
    > > The XML page cannot be displayed
    > > Cannot view XML input using XSL style sheet. Please correct the error
    > > and then click the Refresh button, or try again later.
    > >
    > >
    > > --------------------------------------------------------------------------------
    > >
    > > End tag 'div' does not match the start tag 'IMG'. Error processing
    > > resource 'ftp://SNIP:...

    > ^^^^^^^^^
    > You have just posted the login credentials to your webspace.
    > *Change your password as soon as possible!!!*
    >
    > > <div style="text-align: center;"><IMG
    > > SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
    > > ALT="lo...

    >
    > The relevant part seems to be missing, but I think, you forgot to close the
    > IMG element (<IMG ... /> instead of <IMG ... >).
    >
    > Element and attribute names are case-sensitive in XHTML, you'll have to use
    > lower case. Are you sure you need XHTML?
    >
    > --
    > Benjamin Niemann
    > Email: pink at odahoda dot de
    > WWW: http://pink.odahoda.de/


    Thanks Benjamin, I have changed my password, someone did get into and
    they uploaded a ton of files onto my domain, I removed them all and
    things seem ok now. Mike
     
    Mike, Sep 17, 2006
    #7
  8. Mike wrote:
    > Benjamin Niemann wrote:
    >> Mike wrote:
    >>
    >> > End tag 'div' does not match the start tag 'IMG'. Error processing
    >> > resource 'ftp://SNIP:...

    >> ^^^^^^^^^
    >> You have just posted the login credentials to your webspace.
    >> *Change your password as soon as possible!!!*
    >>

    >
    > Thanks Benjamin, I have changed my password, someone did get into and
    > they uploaded a ton of files onto my domain, I removed them all and
    > things seem ok now. Mike


    Such blunders can quickly bite you. The evildoers are lurking behind every
    corner - it's a cruel world (wide web)...

    --
    Benjamin Niemann
    Email: pink at odahoda dot de
    WWW: http://pink.odahoda.de/
     
    Benjamin Niemann, Sep 18, 2006
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ian

    vs.net creates doctype wrong?

    Ian, Jun 20, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    497
  2. Kenneth Keeley

    Setting DocType in Asp.Net

    Kenneth Keeley, Jun 29, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    639
    Cowboy \(Gregory A. Beamer\) [MVP]
    Jun 30, 2004
  3. Neil Zanella
    Replies:
    3
    Views:
    2,602
    John Saunders
    Jan 4, 2005
  4. SMichal
    Replies:
    0
    Views:
    644
    SMichal
    Nov 30, 2006
  5. Larry Lindstrom
    Replies:
    19
    Views:
    1,352
    Jonathan N. Little
    Jun 12, 2012
Loading...

Share This Page