Invalide xhtml

Started on the old forum in March 2011 · view the original in the archive · old links redirect here

10 replies · 713 views · started 15 years ago · 1 min read

6 participants
Jervy Senior · 250 posts #2

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

<!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.

arnage Lead · 811 posts #3

Validated. 🙂

<!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>· <a href="adex_acsupport.php">Support</a>· <a href="adex_acreport.php">Report Abuse</a>· 
<a href="adex_acterms.php">Terms</a>· <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"> ©</a> Adex3g 2011 [ONC]</div>
</div>
</body></html>
<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
adex3g Developer · 181 posts #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> ";

pls does this mean i can use ?

Added after 2 minutes:

i use Jervy xhtml header

have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com

subzero Super moderator Fellow · 3,954 posts #5

that means you have to use

like

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

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... _______…

morency Senior · 488 posts #6

and using h tags is good for seo ..

Unamos los corazones,hoy todos somos multicolores!

arnage Lead · 811 posts #7

There is no error until u change something that couse the error.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
arnage Lead · 811 posts #9

adex3g wrote: then how can give me css that can be like

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***
subzero Super moderator Fellow · 3,954 posts #10

morency wrote: 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

adex3g wrote: then how can give me css that can be like

You still allow to use break tags But you must put Content here

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... _______…

exxon Newbie · 2 posts #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=''/> "; print "</body></html>";

?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close