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 trialMoin shamsi
7,579 Pointswhats wrong with this small script?
here is my code:
{% extends "code_challenges/layout.html" %} {% block header %} Welcome to the code challenges! {% endblock %}
<html>
<head>
<title> Code Challenge </title>
</head>
<body>
<div class="page-header">
{% block header %}{% endblock %}
</div>
</body>
</html>
{% extends "code_challenges/layout.html" %}
{% block header %} Welcome to the code challenges! {% endblock %}
1 Answer
Samuel Ferree
31,722 PointsThis is a very frustrating error, and was difficult for me to find.
It seems you've added an extra space before and after your title. This extra space is causing the grading tool to fail at finding what it's looking for. They must have done a string equals, instead of a string contains...
remove the additional spaces from your title, and your code should pass.
<html>
<head>
<title>Code Challenge</title> <!-- Note the lack of spaced here -->
</head>
<body>
<div class="page-header">
{% block header %}{% endblock %}
</div>
</body>
</html>