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 trialAdam Coates
4,441 PointsWhy is some of my code in red, and why is it desperately trying to add </span> whenever I type something?
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title><?php echo $name ?> | Treehouse Profile</title>
<link href="css/style.css" rel="stylesheet" />
</head>
<body>
<section class="sidebar text-center">
<div class="avatar">
<img src="img/avatar.png" alt="<?php echo $name ?>">
</div>
<h1>Mike the Frog</h1>
<p>Portland, OR</p>
<hr />
<p>Welcome to PHP Basics!</p>
<hr />
<ul class="social"
<li><a href=""><span class="icon twitter"<?php echo $name ?>"></span></a></li>
</ul>
</section>
<section class="main">
<p>Let's get started!</p>
<p></span>
</section></span>
</body>
</html>
This code runs fine, but the last 5 lines are in red, and it suggests closing span tags everytime I type. Driving. Me. Insane!
2 Answers
Craig Watson
27,930 PointsHi,
This part looks a little buggy to me be sure to check it over :)
</section>
<section class="main">
<p>Let's get started!</p>
<p></span>
</section></span>
Craig
Adam Coates
4,441 PointsI gave up and started again, so unfortunately can't check. You're right though, there's an extra span there, thanks.