Lecture 1 URL, TLD and WEB 1.0 and 2.0
Lecture 1 URL, TLD and WEB 1.0 and 2.0
A website is a collection of related web pages, typically identified by a common domain name,
that are accessible via the internet. Websites are hosted on servers and can be accessed by users
using web browsers, like Google Chrome, Safari, or Firefox. A website can serve various
purposes, such as providing information, offering services, selling products, or facilitating
communication.
Websites are an essential part of the internet, functioning as platforms where individuals,
businesses, organizations, and governments can share information, deliver services, and interact
with users across the globe. The content on a website can include text, images, audio, video, and
interactive elements, depending on the site’s purpose.
Components of a Website
Domain Name: The domain name is the unique address of a website (e.g., www.example.com).
It helps users locate the site on the web. Domain names often reflect the name or function of the
site and include a Top-Level Domain (TLD) (e.g., .com, .org, .net).
Web Hosting: A website must be hosted on a web server, which stores the site’s files and
makes them accessible over the internet. Web hosting services provide the infrastructure needed
to store website data and deliver it to users when requested.
Web Pages: A website is made up of multiple web pages, which are individual documents
typically written in HTML (HyperText Markup Language). Each page can include various forms
of media and content, such as text, images, videos, and interactive features like forms and
buttons.
Website Structure: Websites are usually organized in a hierarchical structure, where the
homepage is the main entry point, and other pages branch off from it. These pages are often
categorized into sections like "About," "Services," "Blog," and "Contact."
Types of Websites
Personal Websites: Created by individuals for personal use, such as blogs, portfolios, or
personal resumes. These sites are often used to share personal experiences, hobbies, or
professional accomplishments.
Business Websites: Companies create business websites to promote their products or services.
These websites can serve as online storefronts, service portals, or platforms for customer
engagement.
E-commerce Websites: These websites are designed for buying and selling goods or services
online. E-commerce platforms like Amazon and eBay enable businesses and individuals to sell
products directly to consumers.
Non-profit Websites: Non-profit organizations often have websites to share their mission,
gather support, and collect donations. These websites help engage the public with their causes
and projects.
Importance of Websites
Global Reach: Websites provide businesses, organizations, and individuals the ability to reach a
global audience, allowing for communication, commerce, and information sharing across
borders.
24/7 Availability: Websites are accessible around the clock, providing information and services
at any time. This is especially important for businesses, as customers can browse products or
access services outside of traditional business hours.
Cost-Effective Marketing: Websites serve as an essential tool for digital marketing, enabling
businesses to promote their products or services more cost-effectively than traditional marketing
methods. Search engines and social media platforms drive traffic to websites, increasing
visibility.
Enhanced User Experience: Websites offer users a convenient way to access information,
services, or products. Businesses can use websites to provide personalized content, interactive
features, and tailored recommendations to improve customer satisfaction.
A URL (Uniform Resource Locator) is the web address used to access resources on the
internet. It is a fundamental building block of the World Wide Web, as it directs browsers to the
location of web pages, images, videos, documents, and other content available online.
In a more formal sense, a URL is a reference to a web resource that specifies its location on a
computer network and a mechanism for retrieving it. Think of a URL as the "address" of the
website, file, or resource on the internet, allowing users to interact with it.
Components of a URL
1. Scheme/Protocol
o Definition: The scheme (or protocol) specifies the communication method the
browser should use to request the resource. It’s the first part of the URL before
the :// symbols.
o Examples:
http (HyperText Transfer Protocol): Used for websites.
https (HyperText Transfer Protocol Secure): The secure version of http,
ensuring data encryption for privacy.
ftp (File Transfer Protocol): Used to transfer files between client and
server.
mailto (Mail Protocol): Opens a mail client with a pre-filled email address.
Example:
https://www.example.com
Here, https is the scheme/protocol.
2. Domain Name
o Definition: The domain name specifies the server where the resource is located. It
is a readable name that users type into browsers to visit a website.
o Structure:
Subdomain: (Optional) Appears before the main domain, such as www
(e.g., www.example.com). Other subdomains like blog.example.com or
shop.example.com represent different sections of a website.
Main Domain: This is the core name of the website, chosen by the owner.
In example.com, "example" is the main domain.
Example:
https://www.google.com
Here, google.com is the domain name.
Example:
https://www.kist.ac.tz
Here, .ac, .tz is the TLD, indicating a an Academic in Tanzania
Example:
http://localhost:8080
Here, 8080 is the port number.
5. Path/Directory Structure
o Definition: The path indicates the specific location on the server where the
requested resource resides. It often represents folders (directories) and files within
the website's hierarchy.
o Structure: The path follows the domain name, beginning with a / and specifying
folders and files in a hierarchical order.
Example:
https://www.example.com/folder/page.html
In this case, /folder/page.html is the directory path leading to a specific HTML page
within the website.
Example:
https://www.example.com/search?q=shoes&category=men
Here, ?q=shoes&category=men is the query string, passing "shoes" and "men" as search
parameters.
7. Fragment/Anchor (Optional)
o Definition: The fragment (also called an anchor) is used to navigate to a specific
section or element within a webpage. It follows a # symbol.
Example:
https://www.example.com/page.html#section2
Here, #section2 directs the browser to a specific section within the page.html file.
https://www.kist.ac.tz/folder/page.html?search=keyword#section1
https://www.techtarget.com/searchnetworking/definition/URL
https://www.library.uneswa.ac.sz/pastpapers/elemain.html
https://www.circuit-diagram.org/circuits/4da7d939180e4a4bb6d229bef110da8e#google_vignette
Types of URLs
1. Absolute URL:
o An absolute URL contains all components needed to locate a resource, including
the protocol, domain name, path, and optional elements like the query string.
o Example: https://www.example.com/folder/page.html
2. Relative URL:
o A relative URL omits the protocol and domain name, specifying only the path and
optional elements. These are used for internal linking within the same website.
o Example: /folder/page.html
1. Resource Identification: URLs provide a unique way to identify resources on the web,
whether it’s a webpage, image, video, or file.
2. Navigation: URLs are essential for navigation, allowing users and search engines to
access and traverse content.
3. SEO (Search Engine Optimization): The structure of URLs can impact how search
engines understand and rank a website. Descriptive URLs with meaningful paths and
keywords can improve search engine rankings.
4. Security: URLs using https (secure protocol) ensure data transmission is encrypted,
protecting sensitive information like passwords or payment details.
5. Bookmarking and Sharing: Users can easily share URLs to specific resources via social
media, email, or other platforms.
Types of TLDs
TLDs are classified into various categories based on their purpose and scope. The main types
are:
1. Generic Top-Level Domains (gTLDs):
o Description: These are the most commonly used TLDs, not tied to any specific
country or region. They are available for a wide range of entities and are usually
not restricted by industry or location.
o Examples: .com, .org, .net
.com: Originally intended for commercial businesses, but now widely
used by any type of organization.
.org: Primarily used by non-profit organizations, though it is not
restricted to them.
.net: Originally designed for networking organizations such as internet
service providers, but now used broadly like .com.
o Usage: These gTLDs are globally accessible and do not have strict restrictions.
They are the most widely recognized and used across the internet.
2. Country Code Top-Level Domains (ccTLDs):
o Description: These TLDs are assigned to countries or specific geographic
territories, consisting of two letters based on the country code defined by the
International Organization for Standardization (ISO).
o Examples: .us (United States), .uk (United Kingdom), .de (Germany), .ca
(Canada), .in (India) .cn (China) , .tz (Tanzania)
o Usage:
Websites using ccTLDs often indicate a geographic association with a
specific country. For example, a business operating primarily in Germany
might use example.de to show its German presence.
In some countries, these ccTLDs are strictly regulated (e.g., .uk for the
United Kingdom), while in others, they are sold without restrictions
(e.g., .co for Colombia, but often used globally by startups).
3. Sponsored Top-Level Domains (sTLDs):
o Description: These are specialized TLDs that are sponsored and restricted for
use by specific communities or organizations. Access to these domains is
typically limited to entities that meet specific criteria.
o Examples:
.edu: Restricted to accredited educational institutions (universities,
colleges, schools).
.gov: Reserved for government agencies
.mil: Reserved for the military.
o Usage: sTLDs are tightly controlled and require organizations to meet certain
qualifications before they can register under these TLDs. For instance:
To register .edu, an institution must be an accredited post-secondary
institution in the United States.
The .gov TLD is restricted to government entities.
4. Infrastructure Top-Level Domains (iTLDs):
o Description: These TLDs are used for internet infrastructure and
administrative purposes, serving specific technical functions rather than public
website hosting.
o Example: .arpa
.arpa: Stands for Address and Routing Parameter Area and is managed
by the Internet Assigned Numbers Authority (IANA). It is used
primarily for internet infrastructure, such as reverse DNS lookups and
other technical functions.
o Usage: The .arpa domain is part of the technical foundation of the internet, and its
usage is restricted to infrastructure support tasks.
Importance of TLDs
The Top-Level Domain plays a significant role in website identification, categorization, and
trust. It is important for several reasons:
1. Classification and Organization:
o TLDs help classify websites, making it easier for users and search engines to
understand the nature and purpose of a website. For example:
.edu instantly signals that the website is related to education.
.org may suggest that the website belongs to a non-profit organization.
o Country-based TLDs (ccTLDs) allow businesses and organizations to localize
their online presence, which can be helpful for targeting specific regions or
creating distinct geographic identities for their operations.
2. Trust and Authority:
o Certain TLDs carry a sense of trust and authority, especially those that are
restricted, such as .gov or .edu. A user is more likely to trust a website ending
in .gov because it is restricted to government entities.
o Similarly, an educational institution with a .edu domain is more likely to be seen
as a legitimate and recognized entity compared to one using a generic domain like
.com.
3. SEO and Marketing:
o TLDs can influence search engine optimization (SEO). Search engines like
Google factor in the TLD when determining the relevance of a website in search
results.
For instance, a website using a country-specific TLD like .fr (France) may
rank higher in searches within France.
Additionally, SEO-friendly gTLDs can help enhance the visibility of
websites across international markets.
o Many businesses and marketers use specific TLDs to create memorable branding
or convey trust to users. For example, the use of .com is often preferred for
commercial businesses because it’s universally recognized.
4. Perception and Branding:
o The choice of TLD can have a strong impact on brand perception. Companies
and organizations often select TLDs that align with their mission, geographic
location, or organizational type.
A company looking to build a global brand might opt for .com, whereas a
regional business might prefer a country-specific TLD like .au (Australia).
o New gTLDs (e.g., .tech, .store, .blog) offer opportunities for businesses to create
domain names that directly relate to their industries or services.
New gTLDs:
o In recent years, the number of TLDs has expanded significantly with the
introduction of new gTLDs, such as .app, .shop, .tech, .travel, and many others.
o These new TLDs provide opportunities for more specialized and memorable
domain names, giving businesses and individuals more options for branding and
marketing.
Types of Websites
Websites have evolved dramatically since the inception of the World Wide Web, moving from
static, read-only pages (Web 1.0) to dynamic, user-interactive platforms (Web 2.0).
Understanding the differences between these phases highlights how web development has
transformed how we use the internet. Here is a detailed explanation of both Web 1.0 and Web
2.0, including key features, examples, and differences.
Web 1.0
Web 1.0 refers to the earliest iteration of the internet, spanning from its creation in the early
1990s until the early 2000s. It was a time when websites were primarily static, and users played a
passive role, simply consuming information without interacting with the website.
Characteristics:
1. Static Pages: Content was generally read-only with little to no interactivity. Websites
displayed information in a fixed format.
2. Simple Design: Pages were basic, consisting primarily of HTML, with limited use of
multimedia (images and basic hyperlinks).
3. Slow Loading Times: Due to simple technology and bandwidth constraints, pages often
loaded slowly by modern standards.
4. Content Delivery: Information was provided in a one-way stream—from the webmaster
to the user. The focus was on providing information or marketing materials, similar to a
digital brochure.
5. Limited User Engagement: There was little to no user interaction; visitors could read or
view content but had no ability to engage with it (e.g., no forms, comments, or user
accounts).
Focus:
Web 1.0 websites primarily served as information repositories. They were used to
display static content that rarely changed, serving as an online brochure or catalog.
Companies or individuals with technical skills (webmasters) created and maintained
websites, as updating content required knowledge of HTML and server-side technologies.
Web 1.0 offered minimal interaction and focused on providing static information.
Web 2.0 revolutionized the internet by enabling users to create content, engage with
others, and build online communities.