score:3

Since you're not depending on any ajax calls to your server you don't need to involve PHP at all yet. Once you need to communicate with a database or do other server-side processing, that'll be where you need PHP.

Just put that code into the body of an html file (eg index.html) and it should work fine.


Related Query

More Query from same tag