Welcome to the Treehouse Community
Looking to learn something new?
Feeling like a total idiot
I'm starting the HTML deep dive and am getting along writing the language and everything, but it simply isn't... working. When Nick, in the video, writes code things are indented and highlight and turn different colors automatically. He refreshes the webpage and it does the things he wants it to do. For me, the HTML simply shows up on the page the way it's written in the TextEdit document rather than manipulating the web page the way it should. Am I doing something horribly wrong? I'm so confused...
Hi Jason! Did you use html tag? If you could paste your code here that would be easier to help :-)
If you are using text edit I think the problem is your file has a name of "index.html.txt" or something similar instead of "index.html". Your first code looks fine and meta tag can't be that important. Ages ago I wrote my code only in notepads with no meta tags and it was working fine.
I did save it as "index.html". Here's the code:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>My Page</title> </head> </html>
Huh. That's different!
I'm opening it in firefox, does that make a difference?
Chase Lee29,275 Points
Try using this meta tag:
<meta http-equiv="Content-Type" content="text/html, charset=utf-8">
Alex Hedley16,377 Points
You mentioned TextEdit, is that the app you're using? If so you should really use something like Sublime Text, Textastic, TextMate etc