View Full Version : Resolved Coding validation issues
sparklingsky
03-08-2009, 09:23 PM
For my site, http://vivid-avenue.net I was trying to validate the coding and I'm really not understanding the errors. The biggest error states that I have no doc type indicated. I'm very confused because I thought I did. A bunch after that are problems with the doc type as well. :/
Snookerman
03-08-2009, 09:52 PM
Your doctype should come first. Now you have a title tag before the doctype. Move the title tag inside the head tags like I showed you in the other thread.
Good luck!
sparklingsky
03-08-2009, 09:57 PM
It's showing my title tag there but I don't see it in my header. When I moved it I ended up with 40 errors rather than 18 for my validation.
bluewalrus
03-08-2009, 11:15 PM
This should be closer. You were getting more error messages because it could go through correctly before it was getting stuck. Hopefully it displays the same with this.
You had to make the elements img, br, and input, not self closing as well as using the entity for less than, and having alts in all your images. I think thats all of them. Oh and </body></html> were moved to the bottom because they close the document.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>VIVID-AVENUE</title>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" type="text/css" href="css/lightbox.css" media="screen">
<link rel="stylesheet" type="text/css" href="http://www.vivid-avenue.net/layout/style.css" title="default">
<link rel="shortcut icon" type="image/x-icon" href="http://www.vivid-avenue.net/layout/favicon(12).ico">
<style type="text/css">
.wrap {
background: #e8f6fc;
overflow: hidden;
width: 200px;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
.partone {
float: left;
clear:right;
}
.parttwo {
float: right;
text-align: right;
}
#sidebardiv {
text-align:center;
}
</style>
</head>
<body>
<div id="headerdiv"></div>
<div id="sidebardiv">
<h2>Ads</h2>
<br>
<script type="text/javascript">
<!-- Begin
var how_many_ads = 13;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
url="http://smuffle.ohpanic.info/";
alt=""; banner="http://i102.photobucket.com/albums/m111/kisstheraingirl12489/banner/smufflebutton_1332443.png";
width="88";
height="31";
}
if (ad==2) {
url="http://simplyunique.info";
alt="";
banner="http://simplyunique.info/images/support.gif";
width="88";
height="31";
}
if (ad==3) {
url="http://www.lethargy.paperanchor.org";
alt="";
banner="http://i263.photobucket.com/albums/ii144/poignancex/button.png";
width="88";
height="31";
}
if (ad==4) {
url="http://www.lillie.saranghae.org";
alt="";
banner="http://i41.tinypic.com/2d9rd3m.jpg";
width="88";
height="31";
}
if (ad==5) {
url="http://coy-dreamer.com";
alt="";
banner="http://coy-dreamer.com/link2.gif";
width="88";
height="31";
}
if (ad==6) {
url="http://lostinadream.net";
alt="";
banner="http://lostinadream.net/newbutton1.gif";
width="88";
height="31";
}
if (ad==7) {
url="http://coy-dreamer.com/";
alt="";
banner="http://coy-dreamer.com/link2.gif";
width="88";
height="31";
}
if (ad==8) {
url="http://www.innocense.net/";
alt="";
banner="http://i224.photobucket.com/albums/dd220/innocensekitten/CBUTTON.gif";
width="88";
height="31";
}
if (ad==9) {
url="http://rainbowcrush.com";
alt="";
banner="http://i34.tinypic.com/rsh1e1.jpg";
width="88";
height="31";
}
if (ad==10) {
url="http://cianopi.info";
alt="";
banner="http://i42.tinypic.com/o09xsh.png";
width="88";
height="31";
}
if (ad==11) {
url="http://www.snugglelyts.com";
alt="";
banner="http://snugglelyts.com/button.gif";
width="88";
height="31";
}
if (ad==12) {
url="http://loveless-ave.net/";
alt="";
banner="http://i586.photobucket.com/albums/ss301/lovelessave/lovelessbutton.png";
width="88";
height="31";
}
if (ad==13) {
url="http://paperplanes.shoox.org/";
alt="";
banner="http://i206.photobucket.com/albums/bb227/gilsw33t/PAPERPLANES/button49.png";
width="88";
height="31";
}
document.write('<a href=\"' + url + '\" target=\"_blank\">'); document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0></a>');
// End -->
</SCRIPT>
<br>
<a href="http://vivid-avenue.net/advertise.php">Be here?</a>
<h2>Welcome</h2>
Welcome to Vivid-Avenue.net, your source for cool <b>graphics</b> to decorate your myspace and more! I am your owner <div style="text-decoration:underline;">Kendra</div> and you can find out more about me by clicking <a href="http://vivid-avenue.net/kendra.php">here!</a>
<br>
<b>Quick links:</b>
<br>
<a href="http://vivid-avenue.net/supportus.php">Link Us</a>
<br>
<a href="http://vivid-avenue.net/plugboard.php">Plugboard</a>
<br>
<a href="http://vivid-avenue.net/portfolio.php">Portfolio</a>
<br>
<h2>Project 365</h2>
<br>
<img alt="Image Info" src="http://vivid-avenue.net/project365/p365preview.png">
<br>
<a href="http://vivid-avenue.net/project365.php">Project 365</a>
<br>
<h2>Hostees</h2>
<a href="http://sweetspells.vivid-avenue.net/">Sweetspells</a>
<br>
<a href="http://www.modernrevolutions.vivid-avenue.net/">ModernRevolutions</a>
<br>
<a href="http://www.unvoluntarylove.vivid-avenue.net/">Unvoluntarylove</a>
<br>
<h2>Exits</h2>
<div class="wrap">
<ul class="partone">
<li><a href="http://preciselyts.shimmy-lyts.com/">Precise</a></li>
<li><a href="http://oh-really.org/">Oh-Really</a></li>
<li><a href="http://caution.hiddenfake.com/">Caut!on</a></li>
<li><a href="http://loveless-ave.net/">Loveless-ave</a></li>
<li><a href="http://urbanconspiracy.net/">Urban Conspiracy</a></li>
<li><a href="http://candierocks.com/">Candierocks</a></li>
<li><a href="http://loveburst.h3iresslyts.net/">Loveburst</a></li>
<li><a href="http://stellachu.net/">Stellachu</a></li>
<li><a href="http://fuzzable.com/">Fuzzable</a></li>
</ul>
<ul class="parttwo">
<li><a href="http://panicked.nuclearcentury.com/">Panicked</a></li>
<li><a href="http://the-camisado.com/">The Camisado</a></li>
<li><a href="http://dollface.strobelyts.com/">Dollface</a></li>
<li><a class="nav2" href="http://pastelsmash.com/">Pastelsmash</a></li>
<li><a class="nav2" href="http://ai.so-pink.org/">Apple Instinct</a></li>
<li><a href="http://paperplanes.shoox.org/">Paperplanes</a></li>
<li><a href="http://atomicaffliction.com/">Atomic Affliction</a></li>
<li><a href="http://underaged.info/">Underaged</a></li>
<li><a href="http://superawr.info/">SuperRawr</a></li>
</ul>
</div>
<a href="http://vivid-avenue.net/viewall.php">View All</a>
/
<a href="http://vivid-avenue.net/applyforaffiliates.php">Apply?</a>
<h2>Site Info</h2>
<b>Owner:</b> Kendra
<br>
<b>Site Started:</b> 12/4/08
<br>
<b>Layout:</b> V2: Hearing Sounds
<br>
<b>Online Users:</b>
<!-- Start FastOnlineUsers.com -->
<a href="http://www.fastonlineusers.com"><script type="text/javascript" src="http://fastonlineusers.com/on2.php?d=www.vivid-avenue.net"></script> munchkins</a>
<!-- End FastOnlineUsers.com -->
<b>Hits:</b>
<div style="text-align:center;"><a href="http://www.amazingcounter.com"><img style="border:0;" src="http://cb.amazingcounters.com/counter.php?i=2452955&c=7359178" alt="Hit Count"></a></div>
<div id="eXTReMe"><a href="http://extremetracking.com/open?login=vavenue">
<img src="http://t1.extreme-dm.com/i.gif" style="border: 0;"
height="38" width="41" id="EXim" alt="eXTReMe Tracker"></a>
<script type="text/javascript"><!--
var EXlogin='vavenue' // Login
var EXvsrv='s11' // VServer
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=http://e2.extreme-dm.com",
"/"+EXvsrv+".g?login="+EXlogin+"&",
"jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(EXd.referrer)+" height=1 width=1>");//-->
</script><noscript><div id="neXTReMe"><img height="1" width="1" alt="Image Info"
src="http://e2.extreme-dm.com/s11.g?login=vavenue&j=n&jv=n">
</div></noscript></div>
This page looks best on Mozilla Firefox
</div>
bluewalrus
03-08-2009, 11:16 PM
<div id="navigationdiv">
<b><a class="nav" href="http://www.vivid-avenue.net/index.php">Home</a>
<a class="nav" href="http://vivid-avenue.net/kendra.php">Owner</a>
<a class="nav" href="http://vivid-avenue.net/tutorials/tutorials.php">Tutorials</a>
<a class="nav" href="http://vivid-avenue.net/content.php">Goodies</a>
<a class="nav" href="http://vivid-avenue.net/extras.php">Extras</a>
<a class="nav" href="http://vivid-avenue.net/site.php">Site</a></b>
</div>
<div id="contentdiv">
<div id="fanupdate">
<div id="post35" class="post">
<h3><a href="/index.php?id=35" title="permanent link to this post">Babies and Pregnancy</a></h3>
<p class="catfile"><img alt="Image Info" src="http://i35.tinypic.com/qnsjya.png"> Posted Mar 8, 2009 by Kendra.
<br>
<img alt="Image Info" src="http://i44.tinypic.com/28bdttc.png"> Filed under <a href="/index.php?c=1" title="all posts about site updates">site updates</a>, <a href="/index.php?c=2" title="all posts about life">life</a>.
<br>
<img alt="Image Info" src="http://i39.tinypic.com/2818tcn.png"> <a href="/index.php?id=35#comments">1 comment</a>.</p>
<p><b>Music:</b> Simple Plan—Addicted<br>
<b>Mood:</b> Pain from my headache <img src="http://vivid-avenue.net/fanupdate/img/sad.png" alt=":("></p>
<p>Okay so I know the title is kind of strange but don’t worry, I’m not pregnant. I just put that because I have a new article up about teenage pregnancy and you can read it by clicking <a href="http://vivid-avenue.net/articles/article4.php">here</a>. And the babies part of the title comes from a whole different story!</p>
<p>I told everyone in my last post (or the one before it?) that my hamster, Chocolate, had babies! They’re so adorable! <img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D"> I took a photo for you guys which was really hard because Chocolate gets upset when anyone comes near them, which is justified, I would do the same thing. <img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D"> But yeah here is that picture:<br>
<img style="text-align:center;" alt="Image Info" src="http://img12.imageshack.us/img12/3615/eek.png"><br>
Aren’t they so adorable? Their eyes aren’t open yet but they’ve been crawling around in the cage so yay! <img src="http://vivid-avenue.net/fanupdate/img/smile.png" alt=":)"> </p>
<p>Right now I’m getting ready to go play Frisbee with my friend Gianna, her boyfriend Joe, my boyfriend Jarrett, and my brother Cody is coming too. Haha I haven’t played Frisbee in sooo long. But they asked us and I was like sure, why not?! It’s been about 60 degrees here for the past two days and to us that’s amazingly warm because we’ve had snow lately. It’s funny because today it’s in the 60’s and tomorrow it’s probably going to snow. New England weather is insane, isn’t it? So yay I’m really excited about that, plus I’ve been a couch potato for awhile and I desperately need to exercise. <img src="http://vivid-avenue.net/fanupdate/img/biggrin.png" alt="XD"> I hope you all enjoyed your weekend. <img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D" ></p>
<p>So I leave you with:<br>
Do you like Frisbee?<br>
Have you ever had pet hamsters?<br>
<img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D"></p></div><!-- END .post -->
<div id="post34" class="post">
<h3><a href="/index.php?id=34" title="permanent link to this post">New York City!</a></h3>
<p class="catfile"><img alt="Image Info" src="http://i35.tinypic.com/qnsjya.png"> Posted Mar 6, 2009 by Kendra.
<br>
<img alt="Image Info" src="http://i44.tinypic.com/28bdttc.png"> Filed under <a href="/index.php?c=2" title="all posts about life">life</a>.
<br>
<img alt="Image Info" src="http://i39.tinypic.com/2818tcn.png"> <a href="/index.php?id=34#comments">18 comments</a>.</p>
<p><b>Music:</b> With Arms Wide Open- Creed<br>
<b>Mood:</b> Bleh</p>
<p><b>EDIT</b> The New York City pictures can be found <a href="http://sparklingskyy.livejournal.com/">here</a>! <img src="http://vivid-avenue.net/fanupdate/img/biggrin.png" alt="XD"></p>
<p>Hey guys! Happy Friday, I love Fridays. <img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D"> Hehe my Spanish trip to NYC went very well! The bus ride was pretty long, you know 5 hours there and 5 back but whatever hahah. I had a window seat both ways so I really didn’t mind. Although the kids on the bus kept insisting we watch movies (it was a coach bus) and the speakers were right under the windows and so I had it blasting in my ears, eek. <img src="http://vivid-avenue.net/fanupdate/img/sad.png" alt=":("> But yeah bleeding from the ears man, no biggie. Haha on the way there we watched My Big Fat Greek Wedding and I love that movie but I love long rides much more. And so the movie kind of ruined the ride for me because I like to just sit with my ipod and think while looking out the window. Don’t ask me why but I LOVE doing this. When people talk to me and disturb my pensive mood I get realllllyy pissy. Anyway on the way back we freaking had to watch Finding Nemo and Elf. Really now, after like 6 times of seeing Finding Nemo I’m pretty damn sick of it. I really just can’t stand it anymore haha it was cute the first time and that was it, really. I ended up with a huge headache from trying to turn my ipod up louder than that damn speaker.</p>
<p>OH. we stopped in a store and I was really excited about getting an “I <3 N Y" t-shirt and I got one. <img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D"> Bahah the guy working there was getting on my nerves though. He was explaining to me the prices on the different shirts/sweatshirts and what not and he really wanted me to buy things, REALLY BAD! All I wanted was a plain white t-shirt with the logo on it and he ended up getting me to buy this slim fitting black one. He said this: “You can get the white one but the black one is more slim fitting (it had curvy sides) and it’s stretchy!!” I was like “OKAY FINE I’LL TAKE THE DAMN SHIRT!” hahaha. Yeah and then he ended up persuading me to buy these white I heart NY sweatpants that were $10 along with the shirt that was also $10. When he told me the price I was like Nawhh it’s okay I’ll just get the shirt and then he was like “IF YOU BUY THE SWEATPANTS I’LL GIVE YOU THE SHIRT FOR 5″. This guy was not about to give up. And then my bff Julie wanted to get two white shirts (one for her and one for her boyfriend) but they were 4 for $10 and she didn’t need 4 loll. So I bought two and so did she and we each payed 5. The thing with that was I figured one for Jarrett (my boyfriend) and one for Cody (my brother). I didn’t even think of my mom. <img src="http://vivid-avenue.net/fanupdate/img/sad.png" alt=":("> So I ended up having to give Jarrett’s to her. She’s a witch. She didn’t even want it, she just said she wanted it because she hates my boyfriend and didn’t want him to have it. Watch, she wont ever wear it, that hoe. LMAO. Yeah, she really doesn’t like him at all haha. </p>
<p>So yeah after that we were supposed to get to Times Square but my Spanish teacher got us lost loll and we really didn’t have much time to get there so we walked around some more. It was still fun though and I’ve seen Times Square like a gillian times so I didn’t care. Julie didn’t know though, so she was disappointed but she’ll live ahah. We had to drive through like the slums of New York to get into the city and Julie was like “Is this was New York City looks like…..?” and I was like “Some of it…not Times Square though” lollll. So yeah I’ll show you guys the pictures I took later on tonight. <img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D"></p>
<p>So I leave you with:<br>
Do you have an original I heart NY t-shirt? <img src="http://vivid-avenue.net/fanupdate/img/cool.png" alt=":D"></p></div><!-- END .post -->
<p class="paginate"><a href="/?p=2" class="next">« Previous page</a></p><!-- END .paginate --><div class="archivelink">
<form action="/index.php" method="get">
<p style="text-align:center;">
<a href="/index.php">main</a> ·
<a href="/index.php?view=archive">archive</a> ·
<a class="rss" href="http://vivid-avenue.net/fanupdate/rss.php">feed</a> ·
<input type="text" name="q" value="">
<input type="submit" value="Search" class="button">
</p>
</form>
</div><!-- END .archivelink -->
<div class="credit">
<p style="text-align:center;">Powered by <a href="http://prism-perfect.net/fanupdate" class="ext">FanUpdate 2.2.1</a></p>
</div><!-- END .credit --></div><!-- END #fanupdate -->
<div style="text-align:center;">Copyright 2008-2009 vivid-avenue.net</div>
<br>
<a href="http://vivid-avenue.net/contactme.php">Contact Me</a>| <a href="http://vivid-avenue.net/faq.php">FAQ'S</a>| <a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=91599308">The Myspace</a>| <a href="http://vividavenue.ourtoolbar.com/">Toolbar</a>
</div>
</body>
</html>
sparklingsky
03-09-2009, 12:00 AM
I'm slightly confused about what to do with the second code you posted, could you just let me know what I should be doing with the second one?
bluewalrus
03-09-2009, 12:34 AM
The second is the last half cause it was past text limit put it where the first one ended
sparklingsky
03-09-2009, 04:01 AM
Oh okay, that was what I thought. Although, I put it in and for some reason I still have a lot of errors.
bluewalrus
03-09-2009, 04:06 AM
I only get 1 error from direct input. Your page still has the old code on it are you sure it updated? http://validator.w3.org/#validate_by_input Put both codes in the correct order in there and you should only see 1 error from the javascript writing the image link.
sparklingsky
03-09-2009, 06:45 PM
Oh okay I see what you mean with that. Although it still brings up errors when I don't do the direct input so does this mean it will never totally validate? It finds those errors in my Fanupdate which isn't something I can change so I'm a bit confused with that part.
bluewalrus
03-09-2009, 10:22 PM
Put up your php or make the changes i've made in that they'll be slightly different and you'll have to change it where its being written or created to write the proper way.
sparklingsky
03-10-2009, 02:31 AM
Ohh okay, I see. Thanks so much, really!
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.