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.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Dec 2005
    Posts
    702
    Thanks
    0
    Thanked 0 Times in 0 Posts

    An html webpage to do it XHTML TRANSITIONAL

    I USE DMWR MX 2004.... An html webpage to do it XHTML TRANSITIONAL I MUST ADD above <html> the <!DOCTYPE>....etc above ? anything else not at START OF FILE ?

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    The DOCTYPE should be all you need…that, and, of course, you need to code it to XHTML Transitional guidelines.

    Try this link for an example: http://www.webheadstart.org/xhtml/example/

  • #3
    Regular Coder
    Join Date
    Jul 2007
    Posts
    571
    Thanks
    25
    Thanked 28 Times in 28 Posts
    Basic Template:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head>  
              <meta http-equiv="Content-Language" content="en-gb" />  
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
              <meta name="robots" content="index, follow" />  
    
             <link rel="stylesheet" type="text/css" media="screen" href="style.css" />  
             <link rel="stylesheet" type="text/css" media="print" href="style.css" />  
    
            <title></title>  
     </head>  
    
    <body> 
     
    <p>  Hello, World </p> 
     
    </body> 
    </html>
    Last edited by srule_; 02-25-2008 at 07:17 PM.

  • #4
    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
    I wouldn't recommend XHTML 1.1 because its likely they don't know how to pass the correct mimetype application/xhtml+xml. XHTML 1.1 shouldn't be served as text/html.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Senior Coder
    Join Date
    Jul 2004
    Location
    New Zealand
    Posts
    1,315
    Thanks
    0
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    I wouldn't recommend XHTML because its likely they don't know how to pass the correct mimetype application/xhtml+xml. XHTML shouldn't be served as text/html.
    QFT .
    Forget style. Code to semantics. Seperate style from structure, and structure from behaviour.
    I code to specs, and test only in Firefox (unless stated otherwise).

  • #6
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Nothing wrong with XHTML 1.0 being served with text/html, imo. The argument that SGML parsers misinterpret it bears little or no relation to the real world. It's just the same language with a couple of elements deprecated.


  •  

    Posting Permissions

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