Each language has been created for a specific purpose. PHP is not better than HTML, JavaScript is not better than PHP, etc.. they connect with each other
Generally speaking:
- Use (X)HTML for content.
- Use CSS for presentational purposes.
- Use JavaScript for interactivity, animations, etc..
- Use PHP to access a database, to validate form data, etc..