Minimeallolla Posted November 26, 2010 Share Posted November 26, 2010 http://validator.w3.org/check?uri=http%3A%2F%2Fmysite.giacjr.dino-hosting.net&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&No200=1&verbose=1&st=1&user-agent=W3C_Validator%2F1.1 I dont understand these errors and need some help. document type does not allow element "LI" here; missing one of "UL", "OL", "DIR", "MENU" start-tag <li><a href='/index.php'>Home</a></li> document type does not allow element "LINK" here <link href="style.css" rel="stylesheet"> Quote Link to comment Share on other sites More sharing options...
trq Posted November 26, 2010 Share Posted November 26, 2010 They are pretty self explanatory. <link> elements belong within the <head> and <li> must be within a <ul>, <ol> or <li>. Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 ok thanks now i only have 2 errors remainning that ive tried but cannot solve \= document type does not allow element "BODY" here <body> end tag for element "HEAD" which is not open </ul></div></head> view the source code of my site if you need to. http://www.mysite.giacjr.dino-hosting.net/index.php Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="favicon.ico" href="http://www.rohan.giacjr.dino-hosting.net/favicon.ico"> <link href='style.css' rel='stylesheet'> <title>MySite</title> <style type="text/css"> A:link { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:visited { COLOR: black; TEXT-DECORATION: none; font-weight: normal } A:active { COLOR: green; TEXT-DECORATION: none } A:hover { COLOR: #8DEEEE; TEXT-DECORATION: none; font-weight: none } a > img { border: 0; } </style><style type="text/css"> body { background: url('backgroundfp.png'); text-align: center; } </style> <div class='navbar'><ul> <li><a href='/index.php'>Home</a></li> <li><a href='/login.php'>Log in</a></li> <li><a href='/register.php'>Register</a></li> <li><a href='/games.php'>Games</a></li> </ul></div></head> <body> <center><h4><font color="yellow"> Number of website views:</font><font color="white"> 016424</font></h4></center><div align="center"> <img border="0" src="flamethrower.gif" alt="flame thrower"><img border="0" src="construction icon.png" alt="connstruction"><font color="blue"><b>This website is currently under construction and is constantly being amended.</b></font><img border="0" src="construction icon.png" alt="construction"><br> </div> <center>You are not logged in. <a href='login.php'>Please log in to gain further access.</a></center> <div align="center"><p><br><p> Since MySite has very limit content and I cannot be bothered to think of anything, I will simply let this talentless gif animation provide entertainment.. =D <br><img border="0" src="violin.gif" alt="entertainment "> </div> <br> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br></p> <p><br> <br> <div align=left> <a href="aboutus.php">About us</a> </div> </body> </html> or source code is there.. Quote Link to comment Share on other sites More sharing options...
trq Posted November 26, 2010 Share Posted November 26, 2010 You really need to do some html basics tutorials or something. You have code outside of your <body> tags that belongs within it. Namely... <div class='navbar'><ul> <li><a href='/index.php'>Home</a></li> <li><a href='/login.php'>Log in</a></li> <li><a href='/register.php'>Register</a></li> <li><a href='/games.php'>Games</a></li> </ul></div> Which is within your <head> tags for some reason. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 You have <div> and <li> tags in the <head> section of the markup. Why? When you run the validator and it returns errors, if you scroll down to just above where the list of errors starts, you'll see a checkbox labeled "Clean up Markup with HTML Tidy". If you check that and click resubmit, it will return a cleaned up version of the html (usually) so you can get a better idea of what it should look like. Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 well initially they were in body but thorpe confused me with this "<link> elements belong within the <head> and <li> must be within a <ul>, <ol> or <li>." I merely misunderstood what he was trying to tell me. Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 ok now its saying value of attribute "ALIGN" cannot be "TOPGAMES"; must be one of "LEFT", "CENTER", "RIGHT", "JUSTIFY" <br><div align="topgames"> I dont have <div align="topgames"> anywhere ? the code before <div id="gameshide"> <b>Games:</b> <span id="games" onClick="document.all.games.style.display ='none'"><br> <a href="/games/13daysinhell.php">13 Days In Hell</a><br> <a href="/games/achilles.php">Achilles</a><br> <a href="/games/blosics2.php">Blosics 2</a><br> <a href="/games/bubbletanks2.php">Bubble Tanks 2</a><br> <a href="/games/bubblebobble.php">Bubble Bobble</a><br> <a href="/games/bubbletrouble.php">Bubble Trouble</a><br> <a href="/games/bloons.php">Bloons</a><br> <a href="/games/bloons4td.php">Bloons TD 4</a><br> <a href="/games/boxhead2play.php">BoxHead 2 Play</a><br> <a href="/games/deadfrontier.php">Dead Frontier</a><br> <a href="/games/desktoptowerdefence.php">Desktop Tower Defence</a><br> <a href="/games/interactivebuddy.php">Interactive Buddy</a><br> <a href="/games/linerider.php">Line Rider</a><br> <a href="/games/pandemic2.php">Pandemic 2</a><br> <a href="/games/simplerts.php">SimpleRTS</a><br> <a href="/games/stickwar.php">Stick War</a><br> <a href="/games/stormthehouse3.php">Storm The House 3</a><br> <a href="/games/swordsandsandals2.php">Swords and Sandals2</a><br> <a href="/games/swordsandsandals3.php">Swords and Sandals 3:Solo Ultratus</a><br> <a href="/games/supersmashflash.php">Super Smash Flash</a><br> <a href="/games/trappedwithzombies.php">Trapped With Zombies</a><br> <a href="/games/ultimateassasin2.php">Ultimate Assassin 2</a><br> <a href="/games/zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum</a> </span> </div> <p> <a href="javascript:;" onmousedown="if(document.getElementById('gameshide').style.display == 'none') { document.getElementById('gameshide').style.display = 'block'; } else{ document.getElementById('gameshide').style.display = 'none'; }">Hide/Show Games</a><br> the code after ( there is no code inbetween(this is it) ) <br><div align="center"><b> if you have a game request, log in and comment the name of it and we will upload it ASAP! <h2><font color="red">Top Games</font></h2><h4> <a href="stormthehouse3.php">Storm The House 3 <br> <img src="stormthehouse.jpg" border="0" alt="" /></a><p><br> <a href="blosics2.php">Blosics 2 <br> <img src="blosics2.jpg" border="0" alt="" /></a><p><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombieassault.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals2.php">Swords and Sandals 2 <br> <img src="swords_and_sandals2.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals3.php">Swords and Sandals3: Solo Ultratus <br> <img src="swords_sandals_3_multiplae_ultratus.jpg" border="0" alt="" /></a><br><br> <a href="bubbletanks2.php">Bubble Tanks 2 <br> <img src="bubbletanks.jpg" border="0" alt="" /></a><br><br> <a href="boxhead.php">BoxHead 2Play <br> <img src="boxhead2play.gif" border="0" alt="" /></a><br><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombie assault.jpg" border="0" alt="" /></a><br><br> <a href="bloons4td.php">Bloons 4 TD <br> <img src="btd4-title.jpg" border="0" alt="" /></a><br><br> <a href="bloons.php">Bloons <br> <img src="bloons.jpg" border="0" alt="" /></a><br><br></h4> Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 Are we talking about the same page? Now i get this: This document was successfully checked as HTML 4.01 Transitional! Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 No, "/games.php". Sorry for the confusion >.< Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 http://validator.w3.org/check?uri=http%3A%2F%2Fmysite.giacjr.dino-hosting.net%2Fgames.php&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=0&No200=1&verbose=1&st=1&user-agent=W3C_Validator%2F1.1 the <div align="top game"> is nowhere to be found o.O ?? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 <p> <a href="javascript:;" onmousedown="if(document.getElementById('gameshide').style.display == 'none') { document.getElementById('gameshide').style.display = 'block'; } else{ document.getElementById('gameshide').style.display = 'none'; }">Hide/Show Games</a> <br></p> </div><div align=center> <br><div align="topgames"> <---- HERE IT IS if you have a game request, log in and comment the name of it and we will upload it ASAP! <br><b><font color="red">Top Games</font></b><br> <a href="/games/stormthehouse3.php">Storm The House 3 <br> <img src="/games/stormthehouse.jpg" border="0" alt="Storm The House"></a><br><br> Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 yes, well, it says its in the source code but its not in my codes.. ill show.. this is games.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="favicon.ico" href="http://www.rohan.giacjr.dino-hosting.net/favicon.ico"> <link href='style.css' rel='stylesheet'> <title> MySite - Games </title> <?php include ("linkcolor.php"); include ("background.php"); include ("database.php"); ?> </head> <body> <?php include ("nav.php"); ?> <div align=center> <img src="Games.png" border="0" alt="Games"> </div> <?php include ("games logged in or logged out.php"); ?> <div align=left> <?php include ("gamelist.php"); ?> </div><div align=center> <?php include ("top games.php"); ?> </div> </body> </html> this is gamelist.php <div id="gameshide"> <b>Games:</b> <span id="games" onClick="document.all.games.style.display ='none'"><br> <a href="/games/13daysinhell.php">13 Days In Hell</a><br> <a href="/games/achilles.php">Achilles</a><br> <a href="/games/blosics2.php">Blosics 2</a><br> <a href="/games/bubbletanks2.php">Bubble Tanks 2</a><br> <a href="/games/bubblebobble.php">Bubble Bobble</a><br> <a href="/games/bubbletrouble.php">Bubble Trouble</a><br> <a href="/games/bloons.php">Bloons</a><br> <a href="/games/bloons4td.php">Bloons TD 4</a><br> <a href="/games/boxhead2play.php">BoxHead 2 Play</a><br> <a href="/games/deadfrontier.php">Dead Frontier</a><br> <a href="/games/desktoptowerdefence.php">Desktop Tower Defence</a><br> <a href="/games/interactivebuddy.php">Interactive Buddy</a><br> <a href="/games/linerider.php">Line Rider</a><br> <a href="/games/pandemic2.php">Pandemic 2</a><br> <a href="/games/simplerts.php">SimpleRTS</a><br> <a href="/games/stickwar.php">Stick War</a><br> <a href="/games/stormthehouse3.php">Storm The House 3</a><br> <a href="/games/swordsandsandals2.php">Swords and Sandals2</a><br> <a href="/games/swordsandsandals3.php">Swords and Sandals 3:Solo Ultratus</a><br> <a href="/games/supersmashflash.php">Super Smash Flash</a><br> <a href="/games/trappedwithzombies.php">Trapped With Zombies</a><br> <a href="/games/ultimateassasin2.php">Ultimate Assassin 2</a><br> <a href="/games/zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum</a> </span> </div> <p> <a href="javascript:;" onmousedown="if(document.getElementById('gameshide').style.display == 'none') { document.getElementById('gameshide').style.display = 'block'; } else{ document.getElementById('gameshide').style.display = 'none'; }">Hide/Show Games</a> <br></p> this is topgames.php if you have a game request, log in and comment the name of it and we will upload it ASAP! <h2><font color="red">Top Games</font></h2><h4> <a href="stormthehouse3.php">Storm The House 3 <br> <img src="stormthehouse.jpg" border="0" alt="" /></a><p><br> <a href="blosics2.php">Blosics 2 <br> <img src="blosics2.jpg" border="0" alt="" /></a><p><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombieassault.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals2.php">Swords and Sandals 2 <br> <img src="swords_and_sandals2.jpg" border="0" alt="" /></a><p><br> <a href="swordsandsandals3.php">Swords and Sandals3: Solo Ultratus <br> <img src="swords_sandals_3_multiplae_ultratus.jpg" border="0" alt="" /></a><br><br> <a href="bubbletanks2.php">Bubble Tanks 2 <br> <img src="bubbletanks.jpg" border="0" alt="" /></a><br><br> <a href="boxhead.php">BoxHead 2Play <br> <img src="boxhead2play.gif" border="0" alt="" /></a><br><br> <a href="zombieassault2.php">SAS: Zombie Assault 2:Insane Asylum <br> <img src="zombie assault.jpg" border="0" alt="" /></a><br><br> <a href="bloons4td.php">Bloons 4 TD <br> <img src="btd4-title.jpg" border="0" alt="" /></a><br><br> <a href="bloons.php">Bloons <br> <img src="bloons.jpg" border="0" alt="" /></a><br><br></h4> I dont know about you but i cant see it anywhere im MY codes. -.- source code is lying lol Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 Something in one of your scripts has to be putting it in the html. Text doesn't just appear for no reason. Are you using linux/unix/bsd/mac or WinD'ohs? Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 win7 ? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 I don't know the command in Win, but there has to be a search function you can use to find all files that contain that text. Perhaps in the search box try content:'<div align="topgames">' Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 lol ok... this is odd.. "No records found." <div align="topgames"> Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 do you think it could be an error within the validator itself? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 Then that must not be the right way to search for it. I haven't used a Win system in about 10 years, so I don't know what the correct way to search for text in a file is on windows anymore. Of course, this all assumes you have identical copies of the same files on your computer . . . Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 26, 2010 Author Share Posted November 26, 2010 yes and theres a shortcut -cntrl F for find. and there is a search option in the ftp that searches all files and folders and it detected nothing as "<div align="topgames">" Quote Link to comment Share on other sites More sharing options...
haku Posted November 26, 2010 Share Posted November 26, 2010 Just search for 'topgames'. You are more likely to find what you are looking for. Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 27, 2010 Author Share Posted November 27, 2010 its completely not there, it must be the validator that is playing up \= Quote Link to comment Share on other sites More sharing options...
trq Posted November 27, 2010 Share Posted November 27, 2010 its completely not there, it must be the validator that is playing up \= I highly doubt that. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted November 27, 2010 Share Posted November 27, 2010 Oh, it's there for certain. I can see it in the markup when I go to the page and do a 'view source' in my browser. The validator isn't going to arbitrarily insert things into the markup just to frustrate and annoy you. Quote Link to comment Share on other sites More sharing options...
Minimeallolla Posted November 27, 2010 Author Share Posted November 27, 2010 well ive shown you the code and its not in the code? and theres nothing inserting it? so i have nooo ideaa whats going onlol \= Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.