Noob HTML problems

  • Sk8erGuy
  • Student
  • Student
  • Sk8erGuy
  • Posts: 74

Post 3+ Months Ago

I know this is really noob but i do not know why this is not working, i dont see anything wrong with it.

Well anyways, whats wrong is that the only links tha are showing up is login, downloads, and auctions. Not all the links are showing up.


Code: [ Select ]
<?php include("color.php"); ?>
<title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
<html>
<head>
<div align="center"><p>Diablo's Minions</p></div>
</head>
<body>
<div align="left">
<a href="www.diablosminions.planetubh.com/index.php>Home</a>
<br>
<a href="www.diablosminions.planetubh.com/login.php>Login</a>
<br>
<a href="www.diablosminions.planetubh.com/news.php>News</a>
<br>
<a href="www.diablosminions.planetubh.com/downloads/downloads.php>Downloads</a>
<br>
<a href="www.diablosminions.planetubh.com/forum/index.php>Forum</a>
<br>
<a href="www.diablosminions.planetubh.com/auctions>Auctions</a>
</div>
<p>
<p>
<p>
<p>
<div align="center"><p>Site Temporarily down. Links are inactive. Thank You, Diablo's Minions Staff.</p></div>
  1. <?php include("color.php"); ?>
  2. <title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
  3. <html>
  4. <head>
  5. <div align="center"><p>Diablo's Minions</p></div>
  6. </head>
  7. <body>
  8. <div align="left">
  9. <a href="www.diablosminions.planetubh.com/index.php>Home</a>
  10. <br>
  11. <a href="www.diablosminions.planetubh.com/login.php>Login</a>
  12. <br>
  13. <a href="www.diablosminions.planetubh.com/news.php>News</a>
  14. <br>
  15. <a href="www.diablosminions.planetubh.com/downloads/downloads.php>Downloads</a>
  16. <br>
  17. <a href="www.diablosminions.planetubh.com/forum/index.php>Forum</a>
  18. <br>
  19. <a href="www.diablosminions.planetubh.com/auctions>Auctions</a>
  20. </div>
  21. <p>
  22. <p>
  23. <p>
  24. <p>
  25. <div align="center"><p>Site Temporarily down. Links are inactive. Thank You, Diablo's Minions Staff.</p></div>
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • JrzyCrim
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2062

Post 3+ Months Ago

I was going to suggest that putting end qoutes on your URLs might fix the problem but I noticed that all of them are missing the end quote.

You might try that anyway. Other than that, I'm not sure.
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

The missing end quotes are definitely a problem that could cause some of the links to not show up.

Also:

The <title> tag should not come before the <html> tag it should be inside the <head> tag.

The <div> inside the <head> tag shouldn't be there - it goes in the body.

Those won't cause the link problem and some browsers are pretty lenient about things like that, but I certainly wouldn't want to rely on it.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

Code: [ Select ]
<?php include("color.php"); ?>
<title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
<html>
<head>
<div align="center"><p>Diablo's Minions</p></div>
</head>
<body>
<div align="left">
<a href="www.diablosminions.planetubh.com/index.php>Home</a>
<br>
<a href="www.diablosminions.planetubh.com/login.php>Login</a>
<br>
<a href="www.diablosminions.planetubh.com/news.php>News</a>
<br>
<a href="www.diablosminions.planetubh.com/downloads/downloads.php>Downloads</a>
<br>
<a href="www.diablosminions.planetubh.com/forum/index.php>Forum</a>
<br>
<a href="www.diablosminions.planetubh.com/auctions>Auctions</a>
</div>
<p>
<p>
<p>
<p>
<div align="center"><p>Site Temporarily down. Links are inactive. Thank You, Diablo's Minions Staff.</p></div>
  1. <?php include("color.php"); ?>
  2. <title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
  3. <html>
  4. <head>
  5. <div align="center"><p>Diablo's Minions</p></div>
  6. </head>
  7. <body>
  8. <div align="left">
  9. <a href="www.diablosminions.planetubh.com/index.php>Home</a>
  10. <br>
  11. <a href="www.diablosminions.planetubh.com/login.php>Login</a>
  12. <br>
  13. <a href="www.diablosminions.planetubh.com/news.php>News</a>
  14. <br>
  15. <a href="www.diablosminions.planetubh.com/downloads/downloads.php>Downloads</a>
  16. <br>
  17. <a href="www.diablosminions.planetubh.com/forum/index.php>Forum</a>
  18. <br>
  19. <a href="www.diablosminions.planetubh.com/auctions>Auctions</a>
  20. </div>
  21. <p>
  22. <p>
  23. <p>
  24. <p>
  25. <div align="center"><p>Site Temporarily down. Links are inactive. Thank You, Diablo's Minions Staff.</p></div>


Firstly, what is in your color.php? Please post it Now from what i see, your body tag is missing and your html tag.

When you make a body tag: <body>

You will need to end it by add a / for example: </body>

I will need to know whats in the color.php before i make some assume something that may be incorrect.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Well there is no protocol in the links for starters, they need to be relative paths or they need to have http:// in front.

The quotations <i>is</i> the cause of the problem, if you look below:

PHP Code: [ Select ]
 
<?php include("color.php"); ?>
 
<title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
 
<html>
 
<head>
 
<div align="center"><p>Diablo's Minions</p></div>
 
</head>
 
<body>
 
<div align="left">
 
<a href=<span style="color: blue">"www.diablosminions.planetubh.com/index.php>Home</a>
<br>
<a href="</span>www.diablosminions.planetubh.com/login.php>Login</a>
 
<br>
 
<a href=<span style="color: blue">"www.diablosminions.planetubh.com/news.php>News</a>
<br>
<a href="</span>www.diablosminions.planetubh.com/downloads/downloads.php>Downloads</a>
 
<br>
 
<a href=<span style="color: blue">"www.diablosminions.planetubh.com/forum/index.php>Forum</a>
<br>
<a href="</span>www.diablosminions.planetubh.com/auctions>Auctions</a>
 
</div>
 
<p>
 
<p>
 
<p>
 
<p>
 
<div align="center"><p>Site Temporarily down. Links are inactive. Thank You, Diablo's Minions Staff.</p></div>
 
 
 
 
  1.  
  2. <?php include("color.php"); ?>
  3.  
  4. <title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
  5.  
  6. <html>
  7.  
  8. <head>
  9.  
  10. <div align="center"><p>Diablo's Minions</p></div>
  11.  
  12. </head>
  13.  
  14. <body>
  15.  
  16. <div align="left">
  17.  
  18. <a href=<span style="color: blue">"www.diablosminions.planetubh.com/index.php>Home</a>
  19. <br>
  20. <a href="</span>www.diablosminions.planetubh.com/login.php>Login</a>
  21.  
  22. <br>
  23.  
  24. <a href=<span style="color: blue">"www.diablosminions.planetubh.com/news.php>News</a>
  25. <br>
  26. <a href="</span>www.diablosminions.planetubh.com/downloads/downloads.php>Downloads</a>
  27.  
  28. <br>
  29.  
  30. <a href=<span style="color: blue">"www.diablosminions.planetubh.com/forum/index.php>Forum</a>
  31. <br>
  32. <a href="</span>www.diablosminions.planetubh.com/auctions>Auctions</a>
  33.  
  34. </div>
  35.  
  36. <p>
  37.  
  38. <p>
  39.  
  40. <p>
  41.  
  42. <p>
  43.  
  44. <div align="center"><p>Site Temporarily down. Links are inactive. Thank You, Diablo's Minions Staff.</p></div>
  45.  
  46.  
  47.  
  48.  


I have colored in the string hrefs. Because there is only one quotation, then entire link is enclosed in the href and this is why every other link is showing. Sort out the quotations and add the http:// to the front and the links will work.

//edit, i think this is what RichB was saying :oops: sorry....
  • Sk8erGuy
  • Student
  • Student
  • Sk8erGuy
  • Posts: 74

Post 3+ Months Ago

ok, thanks guys. color.php is just like css. im new to this stuff im just trying it out. and those quotations were just a careless mistake by me. Thank You for your time.
  • Nem
  • Guru
  • Guru
  • Nem
  • Posts: 1243
  • Loc: UK

Post 3+ Months Ago

you should get some editor that shows syntaxs and colours etc... i use dreamweaver personally.
  • Rat
  • Guru
  • Guru
  • User avatar
  • Posts: 1190
  • Loc: desk

Post 3+ Months Ago

lol, iam sorry. but missing the quotes is funny , ive done it several times before>.< good luck tho.
  • JrzyCrim
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2062

Post 3+ Months Ago

rtm223 wrote:
I have colored in the string hrefs. Because there is only one quotation, then entire link is enclosed in the href and this is why every other link is showing. Sort out the quotations and add the http:// to the front and the links will work.

//edit, i think this is what RichB was saying :oops: sorry....


Well, yes; you did gave an explanation as to why this is the problem. :) No need to apologize in my opinion. Good catch.
  • conorific
  • Proficient
  • Proficient
  • User avatar
  • Posts: 350
  • Loc: NY

Post 3+ Months Ago

Wait, wait...can you explain what color.php does? If you're saying it's CSS, that goes in the body, not at the very beginning; unless I'm misinterpreting. But I would like to know how a PHP script behaves like CSS!
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

conorific wrote:
But I would like to know how a PHP script behaves like CSS!

Easy: embed css code in a php file. PHP isn't a styling language.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Quote:
you should get some editor that shows syntaxs and colours etc

*nods in agreement*

Agreed with GSV, php will return plain text, and thats what CSS is. But I'm just wondering, is the PHP as CSS there to keep all of <b>your CSS in a single file</b>. The reason I am asking is because if I were to use PHP to generate CSS, I would still use:

Code: [ Select ]
<link rel="stylesheet" type="text/css" src="colors.php" />


I wouldn't use an include UNLESS I didn't know about the link tag.
  • Sk8erGuy
  • Student
  • Student
  • Sk8erGuy
  • Posts: 74

Post 3+ Months Ago

so instead of including use <link rel="stylesheet" type="text/css" src="colors.php" />? ok, thank you.

i also downloaded a template that my site will temporarily run on. I created header and footer files that work fine. So, instead of having a css shhet i can use header/footer files will work like the css.
  • Platinum•
  • Novice
  • Novice
  • User avatar
  • Posts: 25
  • Loc: Australia

Post 3+ Months Ago

try this code it has the end quotes

Code: [ Select ]
<?php include("color.php"); ?>
<title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
<html>
<head>
<div align="center"><p>Diablo's Minions</p></div>
</head>
<body>
<div align="left">
<a href="www.diablosminions.planetubh.com/index.php">Home</a>
<br>
<a href="www.diablosminions.planetubh.com/login.php">Login</a>
<br>
<a href="www.diablosminions.planetubh.com/news.php">News</a>
<br>
<a href="www.diablosminions.planetubh.com/downloads/downloads.php">Downloads</a>
<br>
<a href="www.diablosminions.planetubh.com/forum/index.php">Forum</a>
<br>
<a href="www.diablosminions.planetubh.com/auctions">Auctions</a>
</div>
<p>
<p>
<p>
<p>
<div align="center"><p>Site site back up thanks to the webmaster of platinumgamerz http://gfun.cjb.net. Thank You, Diablo's Minions Staff.</p></div> ?>
  1. <?php include("color.php"); ?>
  2. <title>`º¤ø,¸¸¸,ø¤º```º¤ø,¸Ð14ߣ0$ |\/|1|\|10|\|$¸,ø¤º```º¤ø,¸¸¸,ø¤º`</title>
  3. <html>
  4. <head>
  5. <div align="center"><p>Diablo's Minions</p></div>
  6. </head>
  7. <body>
  8. <div align="left">
  9. <a href="www.diablosminions.planetubh.com/index.php">Home</a>
  10. <br>
  11. <a href="www.diablosminions.planetubh.com/login.php">Login</a>
  12. <br>
  13. <a href="www.diablosminions.planetubh.com/news.php">News</a>
  14. <br>
  15. <a href="www.diablosminions.planetubh.com/downloads/downloads.php">Downloads</a>
  16. <br>
  17. <a href="www.diablosminions.planetubh.com/forum/index.php">Forum</a>
  18. <br>
  19. <a href="www.diablosminions.planetubh.com/auctions">Auctions</a>
  20. </div>
  21. <p>
  22. <p>
  23. <p>
  24. <p>
  25. <div align="center"><p>Site site back up thanks to the webmaster of platinumgamerz http://gfun.cjb.net. Thank You, Diablo's Minions Staff.</p></div> ?>


that way you can stop it from saying

Quote:
Site Temporarily down. Links are inactive. Thank You, Diablo's Minions Staff.


and have it say

Quote:
Site site back up thanks to the webmaster of platinumgamerz http://gfun.cjb.net. Thank You, Diablo's Minions Staff. :icontongue:

that code should work and it should not be invalid like your code was.

P.S. please sign up to my forums <a href="http://www.platinum-gamerz.tk/">click here to sign up to my forums</a> :)
  • Sk8erGuy
  • Student
  • Student
  • Sk8erGuy
  • Posts: 74

Post 3+ Months Ago

umm i figured it out, lol nice try to get some advertising. if you want ill link back to you though.

Post Information

  • Total Posts in this topic: 15 posts
  • Users browsing this forum: No registered users and 63 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.