Difference Between HTML (Hypertext Markup Language) And PHP (Hypertext Preprocessor) in Tabular Form.
Sno. | Comparison | HTML | PHP |
1. | Full Form | Hypertext Markup Language | Hypertext Preprocessor |
2. | Year | 1993 | 1995 |
3. | Developer | In 1980, by Tim Berners-Lee | Rasmus Lerdorf in 1994 |
4. | Language Type | Scripting Language | Programming Language |
5. | Working | HTML is the structure of Web pages using markup and building blocks of HTML pages | Php is the structure of Web pages which is executed on web server and form markup building blocks of HTML pages send to the client web Browsers. |
6. | Usage | Tags “heading”, “paragraph”, “table”, and so on | Functions ,If Else Statements Loops etc |
7. | Running Files | On Web Browsers | On Web servers with Apache. |
8. | Relevance | Php Not use in HTML File | Html is use in Php File |
9. | File Type | .html | .php |
10. | Version | Version Year HTML 1991 HTML 2.0 1995 HTML 3.2 1997 HTML 4.01 1999 XHTML 2000 HTML5 2014 | 1.0 8 June 1995 2.0 1 November 1997 PHP 3 6 June 1998 PHP 4 22 May 2000 PHP 5 13 July 2004 PHP 6 and Unicode 2005 PHP 7 During 2014 and 2015, |
11. | Example | <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Browser default heading styles</title> </head> <body> <h1>Heading 1 (h1)</h1> </body> </html> | <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Browser default heading styles</title> </head> <body> <?php echo "<h1>Heading 1 (h1)</h1>"; ?> </body> </html> |
(Visited 1,218 times, 1 visits today)
Written by: