Invalide xhtml

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Invalide xhtml

    I validate my adexchat.com, from validator.w3.org and it was full of error report, and i dont know my error. Pls tell me my errors
    have connected with http://adexchat.com ?
    Fun up with
    http://forum.adexchat.com

    #2
    Try to change your doctype and head codes. I'll share you mine

    Code:
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
    "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="css/style.css"/>
    Go to validator.w3.org then check this waprock.net/a/ it's validated

    P.S

    that page is just for demo using that doctype.

    Comment


      #3
      Validated.

      Code:
      <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <title>Adex</title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
      <link rel="shortcut icon" href="/favicon.ico"/>
      <style type="text/css">
      
      body {background-color:#ffffff;
      span-family : Verdana, Arial, Helvetica, sans-serif;
      color:#8E001C}
      
      .AcShout {max-width:10px; margin: 2px auto;border: 2px dotted red; background-color:#ffffff;}
      h2 {background-color:#591410; color:#FEA616; span-size: 16px;}
      div{background-color:#ffffff; color:green;}
      
      .AcButton{background-color:#591410; color:#FEA616; span-size: 16px; text-alige:center;}
      h1 {background-color:#591410; color:#FEA616; span-size: 16px; text-alige:center;}
      
      .AcHeader {background-color:#591410; color:#FEA616; span-size: 16px; text-align: center;}
      
      div.AcFooter {background-color:#591410; color:#FEA616; span-size: 16px; text-align: center;}
      
      .AcLine{background-color:#ffffff; color:#99cc00;}
      
      .Dline{background-color:#ffffff; color:#99cc00;}
      
      </style></head>
      <body>
      <div>
      <div class='AcHeader'><small>Stay Connected</small></div><br/>
      <p style="text-align:center;">
      <a href="../acchat/">Chat</a> 
      <a href="../acshout/">Shout</a> 
      <a href="../acmail/adex_acinbox.php">13 new messages</a> 
      <a href="../acnews/">News</a> 
      <a href="../acmsger/">ichat</a> 
      <a href='../forum/'>Forum</a><br/>
      </p>
      <hr/>
      <div class="AcTime" style="text-align:center;">
      <p style="text-align:right;"><small>02:04 PM<br/>23/03/2011</small></p>
      </div><br/>
      <p style="text-align:center;">
      <img src="http://adexchat.com/aclogos/adexchat.png" alt="adexchat"/></p><br/>
      
      <h1>Welcome to AdexChat</h1>
      <br/>
      <a href="acmembers/">Show Members</a><br/>
      <a href="acmembers/adex_acmmembers.php">Show All Guyz</a><br/>
      <a href="acmembers/adex_acfmembers.php">Show All Girlz</a><br/>
      <img src="pics/female.gif" width="30" height="35" alt=""/><br/>
      by : <a href="adex_acuser.php?nick=Basim360"><span style="color:#000000;"><big><b>Basim360</b></big></span></a> 
      <small><i>Sex : Male</i></small><br/>
      <img src="pics/female.gif" width="30" height="35" alt=""/>
      <br/>by : <a href="adex_acuser.php?nick=ozyozy"><span style="color:#000000;"><big><b>ozyozy</b></big></span></a>
       <small><i>Sex : Male</i></small><br/><img src="pics/female.gif" width="30" height="35" alt=""/>
       <br/>by : <a href="adex_acuser.php?nick=kjo"><span style="color:#000000;"><big><b>kjo</b></big></span></a> 
       <small><i>Sex : Male</i></small><br/>Welcome to most greatest nigerian mobile community.<br/>
       Enjoy instant chat, public chat, personal chat, private message, super shoutbox, forum and many more!!!<br/>make money on adexchat now<br/>
       All we do for you is that we make you popular and wipe away your sorrow.<br/><p style="text-align:center;"><span style="color:red;">enjoy</span>
       <span style="color:green;"> AdexChat</span></p>
      <h1><a href="../adex_acreg.php">Register</a>|<a href="../adex_aclpass.php">Lost Password</a></h1>
      <form method="post" action="../adex_aclog.php">
      <p>
      <br/>Nickname:
      <input name="username" type="text" maxlength="32"/><br/>
      Password:
      <input name="password" type="password" maxlength="32"/><br/>
      <input type="submit" name="adexlog" class="AcButton" value="Log in"/>
      </p>
      </form>
      <br/>
      <a href="../adex_acreg.php">Register</a> |
      <a href="../adex_aclpass.php">Lost Password</a><br/>
      Newest member: <a href="adex_acprofile.php?nick=ice-prince">ice-prince</a>18Male Country: australia
      <p style="text-align:center;">your Ip: 00.10.001.000
      your Country: Unknown</p><p style="text-align:center;">
      <a href="adex_acout.php">Logout</a>&#183; <a href="adex_acsupport.php">Support</a>&#183; <a href="adex_acreport.php">Report Abuse</a>&#183; 
      <a href="adex_acterms.php">Terms</a>&#183; <a href="acwall/adex_acwall.php?nick=adex3g">Privacy</a>
      Fun up! Stay connected with AdexChat<br/></p><div class="AcFooter"><a href="copyright.php"> &copy;</a> Adex3g 2011 [ONC]</div>
      </div>
      </body></html>
      <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

      Comment


        #4
        Error Line 49, Column 62: document type does not allow element "br" here; missing one of "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag

        echo "$stylelogo <a href=\"acstyle/\">Style Yourself</a><br />";


        pls does this mean i can use <br/>?

        Added after 2 minutes:

        i use Jervy xhtml header
        Last edited by adex3g; 24.03.11, 18:07.
        have connected with http://adexchat.com ?
        Fun up with
        http://forum.adexchat.com

        Comment


          #5
          that means you have to use <div> </div>

          like

          echo "<div>$stylelogo <a href=\"acstyle/\">Style Yourself</a><br /></div>";
          Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
          Visit: WapMasterz Coming Back Soon!
          _______
          SCRIPTS FOR SALE BY SUBZERO
          Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
          FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            and using h tags is good for seo ..
            Unamos los corazones,hoy todos somos multicolores!

            Comment


              #7
              There is no error until u change something that couse the error.
              <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

              Comment


                #8
                then how can give me css that can be like <br/>
                have connected with http://adexchat.com ?
                Fun up with
                http://forum.adexchat.com

                Comment


                  #9
                  Originally posted by adex3g View Post
                  then how can give me css that can be like <br/>
                  <br/> isn't a css element, its xhtml. And i give u a valid xhtml markup of that page allredy, u don't need anything else.
                  <!DOCTYPE html PUBLIC "-//WAPFORUM.RS

                  Comment


                    #10
                    Originally posted by morency View Post
                    and using h tags is good for seo ..
                    Yes, sure it does but lol remember phones mite not pull thou <hr></hr> or <h4></h4> Tags

                    Originally posted by adex3g View Post
                    then how can give me css that can be like <br/>
                    You still allow to use break tags <br/> But you must put <div>Content here</div>
                    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                    Visit: WapMasterz Coming Back Soon!
                    _______
                    SCRIPTS FOR SALE BY SUBZERO
                    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                    _______
                    Info & Tips
                    php.net
                    w3schools.com

                    Comment


                      #11
                      No Valid xhtml!!!!!!
                      <style type="text/css">

                      body {background-color:#ffffff;
                      span-family : Verdana, Arial, Helvetica, sans-serif;
                      color:#8E001C}

                      .AcShout {max-width:10px; margin: 2px auto;border: 2px dotted red; background-color:#ffffff;}
                      h2 {background-color:#591410; color:#FEA616; span-size: 16px;}
                      div{background-color:#ffffff; color:green;}

                      .AcButton{background-color:#591410; color:#FEA616; span-size: 16px; text-alige:center;}
                      h1 {background-color:#591410; color:#FEA616; span-size: 16px; text-alige:center;}

                      .AcHeader {background-color:#591410; color:#FEA616; span-size: 16px; text-align: center;}

                      div.AcFooter {background-color:#591410; color:#FEA616; span-size: 16px; text-align: center;}

                      .AcLine{background-color:#ffffff; color:#99cc00;}

                      .Dline{background-color:#ffffff; color:#99cc00;}

                      </style>
                      ************************************************** ******************
                      teszt.css
                      body {background-color:#ffffff;
                      span-family : Verdana, Arial, Helvetica, sans-serif;
                      color:#8E001C}

                      .AcShout {max-width:10px; margin: 2px auto;border: 2px dotted red; background-color:#ffffff;}
                      h2 {background-color:#591410; color:#FEA616; span-size: 16px;}
                      div{background-color:#ffffff; color:green;}

                      .AcButton{background-color:#591410; color:#FEA616; span-size: 16px; text-alige:center;}
                      h1 {background-color:#591410; color:#FEA616; span-size: 16px; text-alige:center;}

                      .AcHeader {background-color:#591410; color:#FEA616; span-size: 16px; text-align: center;}

                      div.AcFooter {background-color:#591410; color:#FEA616; span-size: 16px; text-align: center;}

                      .AcLine{background-color:#ffffff; color:#99cc00;}

                      .Dline{background-color:#ffffff; color:#99cc00;}






                      VALID XHTML

                      <?php

                      header('Content-Type: application/xhtml+xml');

                      header("Cache-Control: no-cache, must-revalidate");
                      header("Pragma: no-cache");






                      echo "<?xml version=\"1.0\" encoding=\"iso-8859-2\"?>
                      <!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">
                      <html xmlns=\"http://www.w3.org/1999/xhtml\">
                      <head>
                      <title>Meteorológia</title>
                      </head><body>
                      <link rel=\"stylesheet\" type=\"text/css\" href=\"teszt.css\" />


                      <meta http-equiv=\"Page-Enter\" content=\"blendTrans(Duration=3.0)\"/>
                      <meta http-equiv=\"Page-Exit\" content=\"blendTrans(Duration=3.0)\"/>
                      <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";

                      print "<img src=\"http://www.met.hu/images/elorejelzesek/header1.jpg\" width='250' height='30' alt=''/><br />";
                      print "</body></html>";

                      ?>

                      Comment

                      Working...
                      X