Tuesday 14 May 2019

Difference b/w HTML 5 / PHP

Lets take a easy example-



HTML (Hypertext Markup Language)’s fifth revision is HTML5. It is a widely accepted mark-up language to develop web pages. HTML5 aims to progress and develop the language to support the latest multimedia. PHP is a server-side scripting language, used while implementing web developments. It can also be used as an all-purpose programming language.
HTML is coded using HTML elements, including tags (opening and closing tag); the data enclosed in the tag being content. Major aim of HTML is to permit the web browsers to construe and display the content typed between the tags. The page content is illustrated through predefined tags. Images, tests, videos, forms and other valuable pieces of content can be inserted through such tags to build a comprehensive webpage.
                                                                             PHP
PHP (originally named Personal Home Page) stands for Hypertext Preprocessor, a recursive acronym. It is released under the PHP license, is completely free but is incompatible with the GNU GPL.
PHP is a server-side, open source, HTML embedded scripting language. It is mainly used to create Dynamic Web pages. It is compatible with different types of databases and can work across networks using IMAP, SNMP, NNTP, POP3, or HTTP.
It can be used in standalone graphical applications as it includes a command-line interface capability. An external file to process the data is not required and the PHP commands can be embedded into an HTML source document. It must be enclosed with special PHP tags which shall ensure the programmer to differentiate between HTML and PHP and alternate between the two. The main difference lies in the fact that PHP is executed on the server, thus the client cannot view the PHP code.
Major differences between HTML5 and PHP are:
• PHP is a server side scripting language, a language of web applications and HTML5 is the language to write the web page.
• HTML5 is used to state the look of the website, whereas PHP is required to make the page function.
• HTML5 is used for links, redirecting, colors, text, aligning, etc., whereas PHP is used for calculations, login, register, databases, etc.
• HTML5 is used to develop static web pages. PHP is used to add components to make them more dynamic.
• HTML5 is used to put images, text, videos, forms, etc., on the webpage. PHP is used to make plugins, widgets, etc. work.


No comments:

Post a Comment

Your comment

Part 1: Write the HTML

Part 1: Write the HTML   What's your favorite food? Do you know how to make it yourself? If not, look up the recipe online. Next, crea...