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 trial
bryan baldasaro
288 Pointswhat's wrong with this? When I preview I just see Nick Pettit info.
what's wrong with this? when I go to preview I just see nick pettit info.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bryan Baldasaro | Designer</title>
</head>
<body>
<header>
<a href="index.html"
<h1>Bryan Baldasaro</h1>
<h2>Designer</h2>
</a>
<nav>
<ul>
<li>Portfolio</li>
<li>About</li>
<li>Contact</li>
</ul>
</nav>
</header>
<section>
<p>Gallery will go here.</p>
</section>
<footer>
<p>© 2017 Bryan Baldasaro.</p>
</footer>
</body>
</html>
Moderator edited: markdown added to question to properly render the code. Please see the Markdown Cheatsheet link at the bottom of the "Add an Answer" section for tips on how to post code to the Community.
3 Answers
Jennifer Nordell
Treehouse TeacherHi there! I don't see anything blatantly wrong with your code. So, let's check some basics first. Make sure you've saved your file. If there's an orange dot on the tab in workspaces, it hasn't been saved. When you've confirmed that the file is saved try launching the preview again and refresh the page. If this still doesn't work, try clearing the browser cache or viewing it in a private tab and repeat the previous step. If none of this works, we'll likely need to see a snapshot of your workspace.
Nicholas Vogel
12,318 PointsBeyond that, you'll need to close your opening <a> tag before your <h1> name tag. It looks like you only have <a - instead of <a>
Jennifer Nordell
Treehouse TeacherExcellent catch!
bryan baldasaro
288 Pointsstill not getting anything different
Nicholas Vogel
12,318 PointsIt looks like you updated your code, but the part I mentioned is still wrong:
<a href="index.html"
<h1>Bryan Baldasaro</h1>
<h2>Designer</h2>
</a>
should be
<a href="index.html">
<h1>Bryan Baldasaro</h1>
<h2>Designer</h2>
</a>
Either way, your content shouldn't be showing up as Nick's, so it's possible you need to save and refresh your workspace or make sure you're previewing the correct workspace.
Jennifer Nordell
Treehouse TeacherHi there! Nicholas Vogel made a great catch there! Your opening <a> tag is missing the right angle bracket. However, it still shouldn't be showing Nick's information. But because it is, this indicates a problem with your browser loading in cached data. Out of curiosity, what happens if you preview the page in another browser?
If this still doesn't work, we really will need to see a snapshot of the workspace. You can create a snapshot by clicking the camera icon in the upper right hand side of your workspace. Then come back here, and shoot us a link so we can look at everything.
bryan baldasaro
288 Pointsbryan baldasaro
288 Pointsstill not getting anything different