0% found this document useful (0 votes)
782 views

Static and Dynamic Web Pages

Static web pages contain fixed content that remains the same each time the page is viewed. They are faster to load but more difficult to change. Dynamic web pages contain content that can change based on factors like the user, time of day, or database information. They allow for more interactivity but take longer to load due to additional processing of scripts on the server-side or client-side. Both have pros and cons related to development time, costs, functionality, and loading speeds.

Uploaded by

Tanishka Verma
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
782 views

Static and Dynamic Web Pages

Static web pages contain fixed content that remains the same each time the page is viewed. They are faster to load but more difficult to change. Dynamic web pages contain content that can change based on factors like the user, time of day, or database information. They allow for more interactivity but take longer to load due to additional processing of scripts on the server-side or client-side. Both have pros and cons related to development time, costs, functionality, and loading speeds.

Uploaded by

Tanishka Verma
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Static and Dynamic web pages

Differences in static and dynamic


Their pros and cons will be explained
Static Web Page
1. For static web pages when a server receives a request for a web page, then the
server sends the response to the client without doing any additional process.

2. Languages - HTML, JavaScript, CSS, etc.

3. And these web pages are seen through a web browser. In static web pages, Pages
will remain the same until someone changes it manually.

4. fixed content- Each page is coded in HTML and displays the same information to
every visitor.
5. show the same content each time they are viewed.

6. Advantages- Static Web Page takes less time for loading than dynamic web page.
7. fixed content- Each page is coded in HTML and displays the same information to
every visitor.
Pros and Cons of Static web page
PROS CONS

Time-saving : faster to develop Difficult to change : Only a trained

person can change things because all

HTML files must be individually changed.

Cost – effective : cheaper to develop Not good for a long run: business – may

need to changed regularly in order to

follow latest trends.

Cheaper hosting : can get dedicated Limited functionality : Cant perform

servers at lower cost. any interactive functions

Faster processing : they are loaded

much faster because website is easily

transferred from the server to the


Dynamic Web Page
1. Dynamic web pages are written in languages such as: CGI, AJAX, ASP, ASP.NET,
etc
2. Contains information that changes, depending on the viewer, the time of the day,
the time zone, the viewer's native language,  stock prices, weather information,
etc.
and other factors.

3. In dynamic web pages, database is used.

4. Dynamic web page takes more time for loading.

5. In dynamic web pages, Content of pages are different for different visitors

6. The updating information could come from the server, or from changes made to
that page's DOM.
Dynamic Web Page
A dynamic website may contain 2 types…….
– client-side scripting or
– server-side scripting

……… to generate the changing content, or a combination of both


scripting types.

1. With client-side HTML scripting, the page can use JavaScript or another
scripting language to change the data of page as it is dynamically built.

2. With server-side scripting, scripts are run on the server that hosts the
page. The process for how the page is built is determined by parameters
defined in the server-side scripting.
Pros and Cons of Dynamic web page
PROS CONS

Easy to Update : No expertise required the Higher Cost : higher cost fro development and

business owner can update himself. Any single hosting, but doesn’t cost much for updating,

change in the template would change the

design of all pages with the particular file.

Interactive : Interact with user and changes Slow processing : there are lots of complex

according to their behaviour. codes which takes time in processing and

loading.

Quick to responsiveness : can be updated to

become responsive to any size of screen which

is impossible with static ones.

Smooth navigation: jump from one page to

You might also like