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

HTML How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

Setting code element to a different color..

I'm entering this just as it was done on the video. I believe the syntax is correct but it's saying it's wrong. What's going on?

Let's see your code.

4 Answers

Hi Juan,

If you look to the bottom right of the text box you will see something that says Markdown Cheetsheet. If you don't understand that maybe this will make sense: How to display code at Treehouse

Jeff

Juan Perez
PLUS
Juan Perez
Courses Plus Student 8,944 Points

Jeff Busch im sorry I meant to tag whoever asked the question to post the code where he/she is having problem with.

I'm trying to post it but it isn't looking quite like it should. Maybe I could email someone?

check the link for "markdown cheatsheet" your code should look like this:

<h1>this is a heading</h1>
<p>this is a paragraph</p>

or

/*this styles all h1 in the doc*/
h1 {
    color: red;
}

You open the code block with three backticks. You can (optionally) stipulate the language of the code and it gets styled better. either way, three backticks, then return... then return and close the code block with three backticks.

it seems to help if you add a little space on either side of your code blocks enclosing backticks by adding a few returns..

Thanks guys! I ended up getting it right yesterday. I was missing something. I finally paid attention to it. Thanks!!