Overview of web development technologies: HTML, CSS, JavaScript, and PHP.

Site: Newgate University Minna - Elearning Platform
Course: Web Development using Content Management Systems
Book: Overview of web development technologies: HTML, CSS, JavaScript, and PHP.
Printed by: Guest user
Date: Monday, 9 November 2026, 10:54 AM

Description

This course introduces the core technologies of web development, including HTML, CSS, JavaScript, and PHP, used to build dynamic and responsive websites. It also covers the fundamentals of Content Management Systems (CMS), highlighting their role in simplifying website creation and management. Students will explore popular CMS platforms such as WordPress, Joomla, and MS SharePoint, gaining insights into their features and how to install wordpress.

1. Overview of web development technologies: HTML, CSS, JavaScript, and PHP.

Overview of web development technologies: HTML, CSS, JavaScript, and PHP.

Web development is the process of building and maintaining websites and web applications. It includes everything from simple static pages to complex dynamic applications. A full-fledged web application often combines front-end technologies (what users see) and back-end technologies (how the system works behind the scenes).

Four fundamental web technologies:

  • HTML – Structures web content.
  • CSS – Styles and formats the content.
  • JavaScript – Adds interactivity and dynamic behavior.
  • PHP – Handles server-side logic and database interactions.

HTML (HYPERTEXT MARKUP LANGUAGE)

Definition

HTML is the standard markup language used to create and organize the content of web pages. It defines the structure of web documents using elements and tags.

Features

  1. Defines page structure using tags such as <html>, <head>, <body>, <div>, etc.
  2. Supports semantic elements like <article>, <nav>, <footer>, and <section> for improved accessibility and SEO.
  3. Enables embedding of multimedia content via <img>, <video>, <audio>, and others.
  4. Forms support using tags like <form>, <input>, <textarea>, and <button>.

Syntax Example

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>Sample Page</title>

</head>

<body>

    <h1>Welcome to Web Development</h1>

    <p>This is a sample paragraph.</p>

    <a href="https://nrwgateuniversityminna.edu.ng">Visit Example</a>

</body>

</html>

Role in Web Development

HTML is the skeleton of every web page. It provides a framework on which other technologies like CSS and JavaScript operate.


1.1. CSS (CASCADING STYLE SHEETS)

CSS (CASCADING STYLE SHEETS)

Definition

CSS is used to control the appearance and layout of web content structured with HTML. It separates content from presentation, allowing consistent styling across multiple pages.

Features

  1. Style rules apply to elements via selectors (element, class, ID, etc.).
  2. Supports color, spacing, alignment, fonts, and animations.
  3. Enables responsive design through media queries.
  4. Can be applied inline, internally (<style>), or externally via .css files

Syntax Example

body {

    background-color: #ffffff;

    font-family: 'Arial', sans-serif;

    margin: 0;

    padding: 0;

}

h1 {

    color: #2c3e50;

    text-align: center;

}

Applying CSS

<head>

    <link rel="stylesheet" href="style.css">

</head>

Role in Web Development

CSS ensures that a website is visually appealing and consistent. It plays a critical role in user experience (UX) and interface design.


1.2. JAVASCRIPT

JAVASCRIPT

Definition

JavaScript is a powerful, high-level scripting language used primarily for client-side interactivity and behavior in websites.

Features

1.       Manipulates HTML content through the DOM (Document Object Model).

2.       Supports event-driven programming (e.g., click, input).

3.       Performs form validation, animations, and API interactions.

4.       Works alongside HTML/CSS to create single-page applications (SPAs).

Syntax Example

<button onclick="showMessage()">Click Me</button>

<script>

function showMessage() {

    alert("You clicked the button!");

}

</script>

Advanced Features

  1. Asynchronous programming using Promises and async/await.
  2. Fetching external data using AJAX, Fetch API, or libraries like Axios.
  3. Frameworks like React, Angular, and Vue.js enhance JavaScript capabilities.

1.3. PHP (HYPERTEXT PREPROCESSOR)

PHP (HYPERTEXT PREPROCESSOR)

Definition

PHP is an open-source, server-side scripting language used to build dynamic and interactive web applications.

Features

  1. Runs on the server and embeds easily within HTML.
  2. Interacts with databases (commonly MySQL).
  3. Manages forms, sessions, authentication, and file uploads.
  4. Powers popular CMS platforms such as WordPress, Drupal, and Joomla.

Syntax Example

<?php

$name = "John";

echo "Welcome, " . $name;

?>

Embedded Example

<p><?php echo "Today's date is " . date("Y-m-d"); ?></p>

Role in Web Development

PHP processes logic and generates HTML content dynamically. It is a crucial component in back-end development, especially for CMS-driven applications.

COMPARISON AND INTEROPERABILITY

Technology

Type

Execution

Primary Role

HTML

Markup Language

Browser (Client-side)

Page structure

CSS

Styling Language

Browser (Client-side)

Design and layout

JavaScript

Scripting Language

Browser (Client-side)

Interactivity and logic

PHP

Server-Side Script

Web Server

Backend logic and database interaction

 

Together, these technologies form the building blocks of modern web applications. For instance:

  1. A PHP script can retrieve data from a database.
  2. That data is structured in HTML.
  3. CSS styles the layout and presentation.
  4. JavaScript adds dynamic features like sliders, modals, or API calls.

Note:

Mastering these four technologies is essential for any aspiring web developer. They are foundational to everything from static pages to CMS platforms and e-commerce websites.

Understanding their individual roles and how they integrate lays the groundwork for building scalable, maintainable, and user-friendly websites and applications.

2. Introduction to Content Management Systems (CMS) and their importance

INTRODUCTION

The digital era has transformed how organizations and individuals create, manage, and distribute information. With the increasing demand for real-time web publishing and collaboration, Content Management Systems (CMSs) have become foundational tools in modern web development.

A Content Management System (CMS) enables users—technical or non-technical—to create, edit, organize, and publish content through a user-friendly interface without needing in-depth knowledge of programming languages.

A Content Management System (CMS) is a software application that enables users to create, manage, and modify digital content on a website without the need for specialized technical knowledge or programming skills. Essentially, it provides a user-friendly interface and tools to handle various aspects of website management, from text and images to videos and interactive elements.

Think of it like a digital office for your website. Instead of needing to manually code every page and update every piece of information, a CMS gives you a dashboard and a set of tools to do it efficiently

2.1. How Does a CMS Work? (Simplified Explanation)


How Does a CMS Work? (Simplified Explanation)

  1. Content Creation & Storage: You create content (text, images, videos) using the CMA. This content is then stored in a database (e.g., MySQL, PostgreSQL).
  2. Templating & Design: CMS platforms use templates (themes) to define the visual appearance and layout of your website. You can choose from pre-designed templates or customize them.
  3. Dynamic Content Delivery: When a visitor requests a page on your website, the CDA retrieves the relevant content from the database, combines it with the chosen template, and generates a dynamic web page that is then displayed in the user's browser
  4. User Roles & Permissions: Most CMS platforms allow you to set different user roles (e.g., administrator, editor, author) with varying levels of access and permissions, enabling collaborative content management.

2.2. Importance of Content Management Systems (CMS)

Importance of Content Management Systems (CMS)

The rise of CMS platforms has revolutionized web development and online presence management. Their importance stems from several key benefits:

Ease of Use & Accessibility: This is arguably the biggest advantage. CMS platforms empower individuals and organizations without coding expertise to build and manage professional websites. This democratizes website creation, allowing small businesses, non-profits, and individuals to establish an online presence.

Simplified Content Updates & Management: Gone are the days of needing a web developer for every minor content change. With a CMS, content updates, additions, and deletions can be done quickly and easily by anyone with access, ensuring your website remains current and relevant

Collaboration & Workflow Management: CMS platforms facilitate teamwork by allowing multiple users to contribute to content creation and management with defined roles and workflows. This is particularly valuable for larger organizations with diverse content teams.

Scalability & Flexibility: Most CMS platforms are highly scalable, meaning they can grow with your website's needs. You can easily add new features, pages, and functionalities as your website expands without starting over.

 Improved SEO (Search Engine Optimization): Many CMS platforms offer built-in SEO tools and functionalities (e.g., customizable meta tags, clean URLs, sitemap generation) that help improve your website's visibility in search engine results, driving more organic traffic

Extensibility through Plugins/Extensions: The vast ecosystems of plugins and extensions available for popular CMS platforms (like WordPress) allow you to add almost any functionality imaginable to your website, from e-commerce capabilities to social media integration, without writing code.

Consistency in Branding & Design: Templates and themes ensure a consistent look and feel across your entire website, reinforcing your brand identity and providing a professional user experience.

Security & Maintenance: While not foolproof, reputable CMS platforms regularly release security updates and patches to protect your website from vulnerabilities. Many hosting providers also offer managed CMS hosting, taking care of routine maintenance and security.

Community Support & Resources: Popular CMS platforms boast large and active communities, offering extensive documentation, forums, tutorials, and third-party support, making it easier to find solutions to problems and learn new skills.


2.3. Common Use Cases for CMS

Common Use Cases for CMS

CMS platforms are versatile and used for a wide range of websites, including:

1.      Blogs: One of the most common uses, allowing easy publishing of articles, comments, and      categorization.

2.      Business Websites: Creating professional online presences for companies of all sizes, showcasing products/services, contact information, and portfolios.

3.      E-commerce Stores: Selling products online with integrated shopping carts, payment gateways, and inventory management (e.g., WooCommerce for WordPress, Magento)

4.      News & Magazine Websites: Publishing timely articles, managing categories, and handling author contributions.

5.      Educational Institutions: Creating academic websites, course portals, and online learning platforms.

6.      Government Websites: Providing public information, services, and engaging with citizens

7.      Non-Profit Organizations: Raising awareness, accepting donations, and managing volunteers.

8.      Portfolios: Showcasing creative work for artists, designers, photographers, etc.


2.4. CLASSIFICATION OF CMS

CLASSIFICATION OF CMS

Based on Deployment Model

Type

Description

Open-source CMS

Free, community-driven platforms (e.g., WordPress, Joomla, Drupal)

Proprietary CMS

Paid, licensed software maintained by a company (e.g., Adobe Experience Manager, Sitecore)

Headless CMS

Decouples content management from presentation (e.g., Contentful, Strapi)

Cloud-based CMS

Hosted on the cloud, accessible via browsers (e.g., Wix, Squarespace)

 

COMMON FEATURES OF A CMS

  1. WYSIWYG Editor (What You See Is What You Get)
  2. Drag-and-Drop Page Builders
  3. Template and Theme Support
  4. Modular Plugin Architecture
  5. Workflow and Approval Management
  6. Multilingual Support
  7. Content Versioning and History
  8. Search Engine Optimization (SEO) Tools
  9. Analytics and Reporting Integration
  10. Security Controls and User Permissions

2.5. EXAMPLES OF POPULAR CMS PLATFORMS

EXAMPLES OF POPULAR CMS PLATFORMS

CMS

Description

Best For

WordPress

Most popular CMS; plugin-rich, easy-to-use

Blogs, Business Sites, Portfolios

Joomla!

Strong user management and multilingual support

Communities, Portals

Drupal

Highly secure and scalable

Government, Universities, Large Enterprises

Magento (Adobe Commerce)

E-commerce-focused

Online Retail and Marketplace Sites

Shopify

Hosted CMS for e-commerce

Small to Medium Online Stores

Typo3

Enterprise-level CMS with scalability

Enterprise Web Applications

Ghost

Focused on publishing and blogging

Content-Driven Websites

Contentful / Strapi (Headless CMS)

Deliver content to multiple platforms via APIs

Omnichannel Apps, Mobile Integration


2.6. DIFFERENCES BETWEEN CMS AND TRADITIONAL WEB DEVELOPMENT

DIFFERENCES BETWEEN CMS AND TRADITIONAL WEB DEVELOPMENT

Criteria

CMS

Traditional Development

Development Speed

Faster (pre-built modules)

Slower (from scratch)

User Access

Multi-user, role-based

Limited unless coded

Technical Skill Requirement

Low to Medium

High

Maintenance

Easy (via admin panel)

Manual and technical

Customization

Moderate to high (via plugins)

Very high (fully customizable)

Examples

WordPress, Drupal

HTML/CSS/JavaScript/PHP projects


2.7. USE CASES OF CMS

USE CASES OF CMS

Sector

CMS Application

Education

Course content delivery, e-learning platforms (e.g., Moodle, WordPress LMS)

E-Commerce

Online product catalog, cart and payment integration

Government

Citizen information portals, documentation, announcements

Media & Publishing

News portals, blogging platforms

Corporate Websites

Branding, internal documentation, HR portals

Non-Profits

Donation systems, campaign sites, volunteer portals

 

10.0 LIMITATIONS AND CHALLENGES OF CMS

  • Performance Issues: Poorly optimized themes/plugins can slow sites.
  • Security Vulnerabilities: Requires frequent updates to core and extensions.
  • Customization Limits: Deep custom functionality may require developers.
  • Plugin Conflicts: Third-party extensions may not work well together.
  • Hosting Dependence: Performance is often tied to hosting environment.

NOTE

A Content Management System (CMS) is a critical tool for modern web development that empowers users to manage web content effectively without deep coding skills. Its flexibility, scalability, and user-centric features make it essential for various industries ranging from education and e-commerce to media and government. Understanding CMS architecture and its importance prepares students and professionals to build, manage, and deploy scalable and user-friendly web applications.


2.8. INSTALLATION OF XAMMP AND WORDPRESS (LOCALLY ON YOUR LAPTOP)



INSTALLATION OF XAMMP AND WORDPRESS

  1. Download XAMPP:

a)      Go to the Apache Friends website: https://www.apachefriends.org/index.html

b)      Download the XAMPP installer for Windows.

  1. Install XAMPP:

a)      Run the installer. You might get security warnings; just proceed.

b)      Choose the components you need (Apache, MySQL, PHP are essential; others are optional).

c)      Select an installation directory (e.g., C:\xampp).

d)      Complete the installation.

  1. Start XAMPP Servers:

a)      Open the XAMPP Control Panel.

b)      Click "Start" next to Apache and MySQL. Their status should turn green.

  1. Download WordPress:

a)      Go to the official WordPress.org website: https://wordpress.org/download/

b)      Download the latest WordPress .zip file.

  1. Extract WordPress to XAMPP's htdocs folder:

a)      Navigate to your XAMPP installation directory (e.g., C:\xampp).

b)      Go into the htdocs folder (e.g., C:\xampp\htdocs). This is where your websites will reside.

c)      Create a new folder inside htdocs for your WordPress site (e.g., mywordpresssite).

d)      Extract the contents of the downloaded WordPress .zip file into this newly created folder (C:\xampp\htdocs\mywordpresssite). Make sure the wordpress folder itself isn't inside mywordpresssite – you want the contents directly in mywordpresssite.

  1. Create a MySQL Database:

o    Open your web browser and go to http://localhost/phpmyadmin. This is the administration interface for your MySQL database.

  •  Click on the "Databases" tab at the top.
  •  In the "Create database" section, enter a name for your new database (e.g., mywordpressdb).
  • Click the "Create" button. Remember this database name!
  1. Run the WordPress Installation:

a)      Open your web browser and go to http://localhost/mywordpresssite (replace mywordpresssite with the folder name you chose).

b)      You will see the WordPress setup page.

c)      Select your language and click "Continue."

d)      On the "Welcome to WordPress" page, click "Let's go!".

e)      Database Name: Enter the name of the database you created in phpMyAdmin (e.g., mywordpressdb).

f)       Username: Type root (this is the default XAMPP MySQL username).

g)      Password: Leave this field blank (default XAMPP MySQL password is empty).

h)      Database Host: Keep it as localhost.

i)       Table Prefix: You can leave this as wp_ or change it for security (e.g., wp_mynew_).

j)       Click "Submit."

k)      If everything is correct, WordPress will tell you "All right, sparky! You've made it through this part of the installation." Click "Run the installation."

  1. Complete WordPress Setup:

a)      Provide your site title, username, strong password, and your email address.

b)      You can check "Discourage search engines from indexing this site" if you don't want your local site to appear in search results (recommended for local development).

c)      Click "Install WordPress."

d)      Log in to your new local WordPress site.