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 trialPaul Dunahoo
5,390 Pointsh2 tags not working
Hi! Sorry, I know this is my second post today, and I'm sure it's an easy fix, but I can't get it to work.
<h2>Get Bakin' With Us</h2>
That is the correct code, right? Well for some reason it won't display correctly. I think that there is something in my code that is canceling it out, but I don't know what. If you could look at my code and see what's up, I'd greatly appreciate it. Thanks!
Source code: http://d.pr/f/NHQ1
6 Answers
John Graham
Courses Plus Student 1,564 PointsThe opening <div>
tag right above that <h2>
is not closed with its >
.
You have:
<div class="grid_5 omega"
It should be:
<div class="grid_5 omega">
Kris Jolls
5,157 PointsA couple questions. Wheres your style sheet? I see the normalize and the grids but wheres your styles and what is it your trying to do with the h2 tags?
You need to place closing brackets on the opening div tags for the two divs containing those h2 tags.
ex. <div class="grid_7" needs a closing > braket.
James Barnett
39,199 PointsInstead of asking people to download/unzip your files but your html/css/javascript in an interactive code playground such as codepen.io
Paul Dunahoo
5,390 Points@James Sure, I'll do that. I just didn't know I should :(
@Kris I don't have one. I am just going through the course right now. And as far as I know, I do have closing brackets. They just come much later, because the course wanted me to. My h2 tags are to create a level-two header. It isn't, and I'm wondering why.
Paul Dunahoo
5,390 PointsOh, I get what you are saying. Thanks!
Kris Jolls
5,157 PointsYeah > is a closing braket to a tag. </div> is a closing div tag.
Always look for those simple mistakes first as they are the most common.