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!
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

Walters Obenson
Courses Plus Student 425 PointsProblem 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?
2 Answers

Walters Obenson
Courses Plus Student 425 PointsThanks Robby,
I am using the sublime code editor.
The bottom line is that these codes underneath turns red which is very unusual
</head>
<meta http-equiv="Content-Type"content="text/html:charset=utf-8"/>
<title>smells Like Bakin" Cupcake Company</title>
</head>
<body>

Rby Falr
2,489 PointsHey 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.

Rby Falr
2,489 PointsThanks 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>
<html>
</head>
<meta http-equiv="Content-Type"content="text/html:charset=utf-8"/>
<title>Smells Like Bakin' Cupcake Company</title>
</head>
<body>
</body>
</html>

Andy Fox
2,989 PointsReplace : (colon) with ; (semicolon) in content, between text/html and charset
Rby Falr
2,489 PointsRby Falr
2,489 PointsCould you tell us what code editor you are using and if possible a screenshot of the problem?