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


Problem with text editor

Hi all, What can be the cause when typing using text editor the code in the box turn up red. Any suggestions?

Could you tell us what code editor you are using and if possible a screenshot of the problem?

2 Answers

Thanks Robby,

I am using the sublime code editor.

The bottom line is that these codes underneath turns red which is very unusual

<meta http-equiv="Content-Type"content="text/html:charset=utf-8"/>
<title>smells Like Bakin" Cupcake Company</title>

Hey Walters, It looks like your forgot to indent your code with 4 spaces. Try posting your code again, but this time indent with 4 spaces.

Thanks for formatting your code. Well I'm not 100% sure why you're code is turning red, but you are missing some elements/tags in the code you posted above that you need. Such as the <!DOCTYPE html>, opening and closing <html>, and closing </body> elements.

<!DOCTYPE html>
        <meta http-equiv="Content-Type"content="text/html:charset=utf-8"/>
        <title>Smells Like Bakin' Cupcake Company</title>


Replace : (colon) with ; (semicolon) in content, between text/html and charset