Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNick Johnson
11,194 PointsPage switching issues
If I switch to the portfolio page from contact or about, it comes up with this error:
500 Internal Server Error nginx/1.4.6 (Ubuntu)
this is my index.html code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nick Johnson | Student</title>
<link rel="stylesheet" href="css/normalize.css">
<link href='http://fonts.googleapis.com/css?family=Titillium+Web:600,400%7cInconsolata' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/responsive.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header>
<a href="index.html" id="logo">
<h1>Nick Johnson</h1>
<h2>Student</h2>
</a>
<nav>
<ul>
<li><a href="index.html" class="selected">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<div id="wrapper">
<section>
<ul id="gallery">
<li>
<a href="img/numbers-01.jpg">
<img src="img/numbers-01.jpg" alt="">
<p>A Test image.</p>
</a>
</li>
<li>
<a href="img/numbers-02.jpg">
<img src="img/numbers-02.jpg" alt="">
<p>A Test image.</p>
</a>
</li>
<li>
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
<p>A Test image.</p>
</a>
</li>
<li>
<a href="img/numbers-09.jpg">
<img src="img/numbers-09.jpg" alt="">
<p>A Test image.</p>
</a>
</li>
<li>
<a href="img/numbers-12.jpg">
<img src="img/numbers-12.jpg" alt="">
<p>A Test image.</p>
</a>
</li>
</ul>
</section>
<footer>
<a href="http://twitter.com/supernova9909"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
<a href="http://facebook.com/Idontremember"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2014 Nick Johnson.</p>
<p>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
alt="Valid CSS!" />
</a>
</p>
</footer>
</div>
</body>
</html>
1 Answer
Christian Andersson
8,712 PointsThe error code 500 is not something caused by your code. As you can see, it says internal server error
.
In addition, HTML code will typically not generate any errors ever. The page may looked messed up if you have an error, but it won't "crash", unless you use some form of strict doctype.
So the error here should be server-side.
PS: Your code doesn't look like a wall as you pasted it, right? It's missing indentation and line breaks.
Nick Johnson
11,194 PointsNick Johnson
11,194 Pointsyes, when I pasted the code it turned into that ugly mess.