0
5.2kviews
Difference between static and dynamic web pages

Mumbai University > information technology > sem 4> Web Programming

Marks: 5M

Year : Dec16

1 Answer
0
38views
Static web pages Dynamic Web pages
Pages created only with HTML are static pages because they remain the same for all the time to come –until and unless you change them manually. Then scripting languages came into the scene with JavaScript beating other scripting languages big time. As the need for creating interactive web pages grew –the relevant tools were created to make it possible. If you go to an online shopping website and see the product list –there are high chances that you’ll be looking as a dynamic web page
Standard HTML pages are static Web pages. They contain HTML code, which defines the structure and content of the Web page. Each time an HTML page is loaded, it looks the same. The only way the content of an HTML page will change is if the Web developer updates and publishes the file. Other types of Web pages, such as PHP, ASP, and JSP pages are dynamic Web pages. These pages contain "server-side" code, which allows the server to generate unique content each time the page is loaded. For example, the server may display the current time and date on the Web page.
Static Web pages display the exact same information whenever anyone visits it. Dynamic Web pages are capable of producing different content for different visitors from the same source code file.
The code of static web pages is downloaded in one go. When you load the web page –all the code (HTML, JavaScript, CSS) and other resources like images are downloaded in browser in one go. The dynamic web pages uses server side scripting and javascripts ,databases,ajax etc
No Database uses in static web pages. In addition to database, there is a long list of technologies that can be used to make dynamic web pages. Some of the most popular scripts that can interact with database are: PHP, ASP, ASP.net, JSP, Perl and Python.
Please log in to add an answer.