• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

Difference between STATIC vs DYNAMIC website – also what is HTML, CSS, PHP, MYSQL

WordPress themes Aug 20, 2019 by Johnny 2 Comments

Explaining some basic website development terminology and how they work with one another.

I’ll cover the terms as well as a brief explanation of how websites evolved old static HTML/CSS to include dynamic PHP & MYSQL databases.

 

The evolution of STATIC websites (html, css) to DYNAMIC websites (php, mysql, css)

When the internet was first started, everything was pretty much static HTML. You would do everything in plain HTML…the content, the styling, everything. The data was written right there in the HTML code and loaded very quickly. You had 1 HTML file for every page. If you had 10 pages, that was 10 HTML files. The problem was that when you had many pages, and you wanted to change their styling…you would have to edit the code on all pages. As you can see, it gets very tedious very quickly.

This led to CSS which now meant all websites were a combination of HTML & CSS. All data was still stored on separate HTML files but instead of having to style every element and on every HTML page, you had one universal CSS to style the entire website (how convenient). And the top of every HTML would of course reference this main CSS file.

In came CMS. With a CMS, data was no longer stored in the HTML file but in a database (a MySQL database to be exact). Well, HTML doesn’t work with databases so we needed PHP for that. So now you have HTML & CSS, then PHP & MYSQL. Combined, you have today’s very powerful website SOFTWARE platform.

Today’s websites are now mostly with PHP & CSS files. Data is stored on a MYSQL database. When people go to your site, regardless of what page, it more or less points to the same PHP file which then calls the data from the MYSQL database. This is really cool since your website can now do much more complicated functions like looking up recent data and show different data based on the user, time of day, function required, etc.

Because the data is being generated on each request, we basically call it DYNAMIC content.

  • STATIC content – is like ordering your food for takeout and it’s done when you arrive. Changes are either not possible or very hard/time-consuming to do.
  • DYNAMIC content – is like ordering your food at the restaurant and you wait for them to make it and can even change your order as it’s being made.

Share this post:

Share on FacebookShare on X (Twitter)Share on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress themes

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

Best WordPress Recipe Plugins Review

Success is NOT a Surprise

Everything is work!

How to Run a 99Designs Contest

AVOID – Astra theme and Brainstorm Force plugins (are bloated)

10 TRUTHS about running a webhosting business

Reader Interactions

2 Comments

  1. Roger Marquez

    August 10, 2020 at 10:49 am

    Hi there Johnny, I don´t know if this is on point but reading this article about the differences between Static vs Dynamic websites it remind me of something I am currently researching and that it has to do with a WordPress website loading speed optimization.

    And it has to do with some issues tools like GTMetrix, Google PageSpeed Insights and WebPageTest refer to as “Serve Static Content from a Subdomain” or “Cookie-Free Domains”.

    I´ve read somewhere on the internet and, even Gijo wrote something about it that, this was like a false positive issue, and setting up a cookie-free domain won´t have that big of a difference on a site page loading speed.

    Especially, if you´re using a CDN like Cloudflare.

    What is your take on this?

    Cheers!

    Reply
    • Johnny

      August 10, 2020 at 12:19 pm

      Hard to answer without knowing the context. I wrote a giant guide on WordPress speed optimization. Try to read through the whole thing and see if that answers your questions. 🙂

      Reply

Leave a Reply to Johnny Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2025 | WordPress guides by Johnny Nguyen

Click to Copy