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 trialShelbi Renner
164 PointsHow do you tell your computer that your page is an html document
I don't know how to tell the computer my page is an html document
7 Answers
Stephen O'Connor
22,291 PointsSave it as an html file - file-name.html
Kate Hoferkamp
5,205 PointsWith the file extension .html
Theresa Nyberg
Courses Plus Student 100 PointsTo let your computer or browser know that your file is written in HTML, you save the file with either the ".html" or the ".htm" extension.
Jeremy Lindstrom
6,646 PointsYou can also right click and "Open With" and use always so when you double click the .html file it will open in your browser.
Daniel Whitmore
95 PointsDon't forget to add <!DOCTYPE html> and < html > before you start writing your code, so that the browser can recognise it. and then don't forget to end it with < /html > so that the browser knows where it ends.
Jeremy Woodbridge
25,278 PointsWhen you want your computer to recognize a document as an html you must use the appropriate suffix (ex. htm, html). Later on this applies to CSS(.css) and Javascript (.js)
samueljhan
1,732 PointsEvery html document begins with <!DOCTYPE html> That is the beginning of an html document. No other coding programs have that only html has.