COMPUTER SCIENCE DEPARTMENT.
COURSE: DIPLOMA IN INFORMATION COMMUNICATION TECHNOLOGY.
(MODULE 3)
UNIT NAME: INTERNET BASED PROGRAMMING.
Prepared By : Mr. Felix Mumo – Trainer Computer Science.
1
Prepared By: Mr. Felix Mumo –NIBS.
,Foreword.
In an age where the internet serves as the backbone of global communication, commerce, education, and
innovation, understanding how to create and manage content on the web is no longer optional—it is essential.
As the demand for intelligent, responsive, and dynamic websites continues to rise, there is an equally urgent
need for structured, practical, and academically grounded resources to train the next generation of web
developers.
This book, Internet-Based Programming: A Practical Approach to Modern Web Development, is a timely and
valuable contribution to the field of Computer Science education. Designed with both learners and instructors in
mind, it bridges foundational concepts with emerging technologies, from HTML and CSS to modern web
security, cloud integration, and artificial intelligence.
As a Trainer in Computer Science at NIBS Technical College, Nairobi, Kenya, I, Felix Mumo, have drawn
extensively from practical classroom experiences, national curriculum expectations, and current industry trends
to compile a learning resource that is as relevant as it is comprehensive. I have also integrated likely KNEC
examination-style questions and real-world application scenarios to strengthen learners' exam readiness and
professional preparedness.
It is my hope that this book will not only equip you with the technical skills necessary to build robust web
applications but also ignite your passion for innovation, critical thinking, and lifelong learning in the digital age.
“The future belongs to those who understand the language of the web. Learn it. Master it. Use it to build
solutions.”– Felix Mumo.
2
Prepared By: Mr. Felix Mumo –NIBS.
,Introduction.
The digital era has revolutionized how we live, work, and communicate. Behind this transformation are
powerful web technologies that drive mobile apps, e-commerce platforms, social media, and cloud services. At
the core of it all lies Internet-Based Programming—the art and science of building secure, interactive, and
scalable web applications.
This book is designed as a practical guide for students, instructors, and self-taught developers who want to
build a strong foundation in web development. Whether you're preparing for KNEC exams, working on
School-Based Assessments (SBAs), or exploring freelance and personal projects, this book provides both
theoretical insight and hands-on skills.
What You’ll Learn
• HTML & CSS for structuring and styling content
• JavaScript, PHP & MySQL for dynamic, interactive, and data-driven web pages
• Web Authoring Tools like Dreamweaver and WordPress
• Embedding Multimedia & Validated Forms
• Navigation, Hyperlinks, Hosting & Domains
• Emerging Trends such as AI in design, Progressive Web Apps, and cloud tools
• Web Security threats like ransomware, malware, and phishing—and how to prevent them
• Sample Questions & Projects to reinforce your learning
Who This Book Is For
• TVET and college students pursuing Computer Studies and Internet Programming
• Lecturers and trainers seeking KNEC-aligned content
• Self-learners and entrepreneurs creating modern websites
• Tech clubs and innovation hubs growing web skills in communities
Each chapter breaks down complex concepts into simple explanations, with code examples, illustrations, and
assessment questions to reinforce learning. This book empowers you not just to build websites—but to build
your future.
Welcome aboard the journey to becoming a web developer.
Mr. Felix Mumo
Trainer – Computer Science
NIBS Technical College, Nairobi, Kenya
3
Prepared By: Mr. Felix Mumo –NIBS.
, Contents
Foreword. ................................................................................................................................................................................ 2
Introduction. ............................................................................................................................................................................ 3
What You’ll Learn .......................................................................................................................................................... 3
Who This Book Is For ..................................................................................................................................................... 3
1.0 Introduction to Internet Based Programming. ................................................................................................................. 11
1.1 Definition .................................................................................................................................................................... 11
1.2 Relevance in Today’s World....................................................................................................................................... 11
1.3 The World Wide Web (WWW) .................................................................................................................................. 11
1.3.1 Overview .............................................................................................................................................................. 11
1.3.2 Key Features ........................................................................................................................................................ 11
1.4 Role of a Website in Organizations ............................................................................................................................ 11
1.5 Web Programming ...................................................................................................................................................... 11
1.5.1 Definition ............................................................................................................................................................. 11
1.5.2 Common Technologies ........................................................................................................................................ 12
1.6 Approaches to Web Programming .............................................................................................................................. 12
1.6.1 Static Web Programming ..................................................................................................................................... 12
1.6.2 Dynamic Web Programming ............................................................................................................................... 12
1.6.3 Full Stack Development ....................................................................................................................................... 12
1.7 Web Programming Languages .................................................................................................................................... 12
1.8 Web Programming Interfaces ..................................................................................................................................... 12
1.8.1 APIs (Application Programming Interfaces)........................................................................................................ 13
1.8.2 GUI (Graphical User Interfaces) .......................................................................................................................... 13
1.8.3 RESTful Web Services ........................................................................................................................................ 13
1.9 Criteria for Choosing a Web Programming Language ............................................................................................... 13
1.10 DNS (Domain Name System) ................................................................................................................................... 13
1.10.1 Definition ........................................................................................................................................................... 13
1.10.2 Functions of DNS............................................................................................................................................... 13
1.11 Key Terms and Definitions ....................................................................................................................................... 13
1.12 Common Gateway Interface (CGI). .......................................................................................................................... 14
1.12.1 Definition ........................................................................................................................................................... 14
1.12.2 How CGI Works ................................................................................................................................................ 15
1.12.3 CGI vs. Modern Alternatives ............................................................................................................................. 15
1.12.4 Advantages of CGI............................................................................................................................................. 15
1.12.5 Limitations of CGI ............................................................................................................................................. 15
1.13 Real-World Use Case (Historical Context) ............................................................................................................... 15
1.14 Modern Alternatives to CGI ..................................................................................................................................... 15
4
Prepared By: Mr. Felix Mumo –NIBS.