CPT 112 - Introduction to the Internet
CPT 112 - Introduction to the Internet
Introduction
The World Wide Web has become an integral part of our daily lives, serving as a platform for
communication, information sharing, entertainment, and business. Understanding how the web
works and how to create functional, visually appealing websites is a foundational skill for anyone
interested in technology or design.
This module introduces you to the core concepts of the web, including the roles of web servers
and browsers, the tools required for web development, and the best practices for organising
files and planning websites. By the end of this section, you will have a solid understanding of the
building blocks of web development and be ready to dive deeper into creating your websites.
Learning Outcomes
1. Understand the fundamentals of the Internet and the World Wide Web
It uses the standard Internet protocol TCP/IP. Every computer on the internet is identified by a
unique IP address. An IP address is a unique set of numbers that identifies a computer location.
A domain name server (DNS) is used to give a name to the IP address so that the user can
locate a computer by its name.
For example, a DNS server will resolve the name http://www.google.com to a particular IP
address to uniquely identify the computer on which this website is hosted.
The Internet is accessible to every user all over the world. So, the Internet is a network of
networks.
2. Real-Time Updates: Information is updated instantly, allowing people to stay informed
about current events and trends.
1.2.2. Communication
1. Global Connectivity: The internet enables instant communication with people
worldwide through email, messaging apps, and social media.
2. Cost-effective: Many communication methods, such as VoIP and messaging services,
are free or low-cost compared to traditional methods.
1.2.3. Education
1. E-Learning: Online courses and resources make education more accessible, allowing
people to learn at their own pace.
2. Diverse Learning Tools: Multimedia resources, from videos to interactive exercises,
cater to various learning styles.
2. Community Building: Online forums and groups allow individuals to connect over
shared interests and causes.
2. Surveillance: Governments and companies may monitor online activities, leading to a
loss of privacy.
2. Identity Theft: Criminals can impersonate individuals to commit fraud, impacting victims'
finances and reputation.
2. Social Isolation: Despite connecting people, heavy internet use can result in feelings of
loneliness and disconnection in real life.
2.0 Terminologies
Learning about the Internet can be a bit confusing at first, but it becomes a lot simpler if you can
become familiar with some of the terminology used when talking about the Internet. Here is a list
of common words and phrases that you might hear.
1. On-line: You may sometimes hear people talk about “being on-line”. This is just
another way of saying that they are using the Internet.
3. Web browser: A web browser is a program that runs on users' computers and allows
them to view and interact with the web pages on the World Wide Web. A web browser
retrieves, presents, and transmits information from web servers, enabling users to view
websites, videos, and other online content.
4. Hypertext: Hypertext is a text document that contains links to other text documents. It
allows a user to move from one web page to another by using a mouse to click on
special hypertext links. For example, a user viewing web pages that describe aeroplanes
might encounter a link to jet engines from one of those pages. By clicking on that link,
the user automatically jumps to a page that describes jet engines.
5. Webpage: A web page is a single document that may contain text, graphics, and an
icon. They are created using HTML.
6. Website: Is a collection of related web pages that are accessed through the internet and
identified by a common domain name.
7. Uniform Resource Locator (URL): To visit a website, users type the URL, which is the
site's address, into the web browser. An example of a URL is www.futminna.edu.ng. A
complete URL is generally made up of three components: the protocol, the site name,
and the absolute path to the document or resource as shown in the figure below:
8. Web server: A web server is a computer that stores a website, and is responsible for
checking requests for viewing that website. Client computers send requests for particular
URLs to the web server, which then finds the appropriate web page and sends it back to
the client computer. A web server on the Internet must have a permanent Internet
connection so that whenever a client computer requests a URL, the web server can
respond right away.
9. Internet Service Provider (ISP): A company that provides Internet connections to
customers.
10.Protocol: It is a set of rules that govern the communication.
12.Hypertext Markup Language (HTML): It is the language used to write web pages on
the WWW.
The World Wide Web (WWW), commonly referred to as the Web, is a vast network of
interconnected documents and resources accessible via the internet. It allows users to
access information, communicate, and share data globally.
What happens when a browser requests an HTML document over the Internet?
1. The user types a URL into the Web browser to identify which Web page they would like
to view.
2. The browser parses the URL and requests a DNS server using broadcast IP. It then
sends the URL to the DNS to resolve the IP address. In other words, it converts
appdev.com to 206.191.222.239.
3. The browser then uses the IP address to send the HTTP packet to the browser’s ISP
connection, which passes it to the next server, routing it from server to server until it
reaches the destination Web server.
Figure 1: A request is made to the server.
4. The Web server locates the request page either on its hard drive or cached in memory.
5. The Web server sends its contents back to the requested browser.
6. The browser interprets the HTML formatting instructions and displays the
content to the user.
Code editors are software used to write and edit code. Some popular options include:
2. Sublime Text: A lightweight and powerful editor with syntax highlighting and
plugins.
3. Dreamweaver: A more advanced tool with visual design features and code
editing capabilities.
4. VS Code: A highly recommended, free, and feature-rich editor with extensions
for web development.
Browsers are essential for testing and viewing your web pages. Common browsers
include:
1. Google Chrome: Known for its developer tools and performance.
2. Mozilla Firefox: Offers excellent developer tools and supports open-source
standards.
3. Microsoft Edge: A modern browser with good compatibility and performance.
a. HTML Files: Contain the structure and content of a web page.
b. CSS Files: Define the styling and layout of the web page.
c. JavaScript Files: Add interactivity and dynamic behavior to the web page.
d. Asset Files: Include images, icons, fonts, and other media used on the website.
a. Create a clear folder structure to store related files. For example:
project-folder/
├── index.html
├── styles/
│ └── style.css
├── scripts/
│ └── script.js
└── assets/
├── images/
└── fonts/
b. Use meaningful file names and avoid spaces or special characters.
a. Define the purpose of your website (e.g., portfolio, blog, e-commerce).
b. Outline the pages you need (e.g., Home, About, Contact).
a. Choose fonts that are easy to read and align with your website’s theme.
b. Select a colour palette that reflects your brand or design goals. Use tools like
Adobe Colour to create harmonious colour schemes.
b. Optimise images for the web to ensure fast loading times.
1. The Web is a network of interconnected resources accessed via web servers and
browsers.
2. Web development requires tools like code editors and browsers.
3. Organise your files into a clear folder structure for better management.
4. Plan your website’s content, design, and media before starting development.
5.0 Exercises
1. Set Up Your Development Environment:
a. Install a code editor (e.g., VS Code) and a browser (e.g., Chrome).
b. Create a project folder and set up the directory structure for a simple
website.
a. Choose a topic for your website (e.g., personal portfolio, blog).
b. Write a brief outline of the pages and content you’ll include.