Point of order: They all use HTML.
In other news; various frameworks and langauges send X-Powered-By
HTTP headers, some sites are truthful in their use of file extensions, and some sites actively work towards hiding the programming language in use. And even if index.php works, that doesn't mean they are using PHP; it could mean that they have their server set up to pretend .php means ASP.NET; just as easily.
The best way of telling is usually to look at the produced HTML; most languages carry with them styles of HTML; some more telling than others. (ASP(.NET) sites are usually frightfully easy to spot.)
A better question, perhaps, is Why do you care? What does it matter to you what language the site is written in?