Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Please explain how does run web pages in browser? Html,asp,aspx,php, like this code only run in browser. how does it work?
Posted

Its is because the browser is built for running HTML and javascript. It contains the compiler for javascript and engine for rendering the HTML.

BTW, PHP or any other server side programming technology like asp.net does not run in the browser. It executes on the server and the webserver generates the HTML and sends it to the requesting client's browser. The browser displays reads the HTML tags and renders the visual elements for them.

For eg. The browser receives <input type="button" .... /> from the webserver. And it renders a visual button which the user can see and click.
 
Share this answer
 
v3
Comments
The Doer 27-Apr-12 3:12am    
my 5! Quite Informative:)
bbirajdar 27-Apr-12 9:56am    
Thank you Teju :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900