Blog > detail

Just my tiny mind

Differences Among PHP, JavaScript, and HTML

26-2-2012 Admin General 2 Comments

Differences Among PHP, JavaScript, and HTML

In this post, ill try to explain about Differences Among PHP, JavaScript, and HTML. Some people may ask about the Differences Among PHP, JavaScript, and HTML, especially for the one that are new to web development.Therefore, Ill explain about Differences Among PHP, JavaScript, and HTML.


PHP, JavaScript or HTML are used by developer to develop a website. Each of them has its own role and function. Let see the comparison table bellow.

ComparisonPHPJavaScriptHTML
SideServer SideClient SideClient Side
Can Do LogicYesYesNo
RoleWebsite EngineWebsite EngineWebsite Template
Database ConnectionYesNoNo
File Download by ClientNoYesYes

Because PHP is a server side language and the only one among the three that can connect to database, client cant download PHP file for security issues. Both PHP and JavaScript can implement logic, and manipulate HTML file to change the view. On the other hand, PHP can also used to manipulate JavaScript.


You have to combine PHP, JavaScript, and HTML to build a great website. Bellow is table for PHP, JavaScript, and HTML usage.

PHPJavaScriptHTMLComparison
NoNoNoNot a website
YesNoNoOnly show plain data
NoYesNoOnly show plain word or give alert :p
NoNoYesStatic website
NoYesYesInteractive website with no database
YesNoYesWebsite with database
YesYesNoShow plain data or alert :D
YesYesYesGreat website (interactive website with database)

aThats all I can give about Differences Among PHP, JavaScript, and HTML today. Hope this Differences Among PHP, JavaScript, and HTML is useful for you.


Differences Among PHP, JavaScript, and HTML Differences Among PHP, JavaScript, and HTML Differences Among PHP, JavaScript, and HTML

Differences Among PHP, JavaScript, and HTML Differences Among PHP, JavaScript, and HTML Differences Among PHP, JavaScript, and HTML

Differences Among PHP, JavaScript, and HTML

word word

Differences Among PHP, JavaScript, and HTML

Differences Among PHP, JavaScript, and HTML

Differences Among PHP, JavaScript, and HTML