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

General Discussion

Benefits of using .html instead of .php?

I've been using php to code but I'm trying to now see the using the .html extension. As php seems to do what html does and also you to process back-end as well?

2 Answers

html is just a structured language, it's not a programming language. Any file with the .html extension will not be processed by the php parser. So you lose the ability to do anything php with the html extension

There are no benefits. There are more benefits with .php except the fact that you cant work locally unless you install an apache with php.