Web Technology Notes Btech Csvtu 6th Sem
Web Technology Notes Btech Csvtu 6th Sem
Web Technology Notes Btech Csvtu 6th Sem
unit 1 wt
❓ What is DNS?
1. Introduction to DNS:
DNS is like an address book for the internet. It helps translate website names (like
www.example.com) into computer addresses (like 192.168.0.1).
It makes it easier for us to remember and access websites using names instead of numbers.
DNS is important because it helps computers find each other on the internet. It converts the
names we type in web browsers into the numbers that computers understand.
When you type a website name, your computer asks a DNS server to find the associated number
(IP address).
The DNS server checks its address book and returns the correct number to your computer.
4. DNS Hierarchy:
At the top are root servers, then servers for different types of websites (.com, .org, etc.), and
finally servers for specific domains.
DNS servers remember the number information they find to be faster next time.
DNS records store this information, like matching website names with IP addresses.
unit 1 wt 1
6. DNS Propagation:
This process is called propagation, and it ensures that the updated information reaches all DNS
servers.
Dynamic DNS helps devices with changing numbers (like home networks) keep their records up
to date automatically.
It's useful when your computer's address changes, but you want it to stay connected to the same
website name.
8. DNS Security:
It adds digital signatures to DNS records, protecting against fake or manipulated information.
In summary, DNS is like an address book for the internet, translating website names into computer
addresses. It uses a hierarchical structure, caching for speed, and supports security measures like
DNSSEC. Understanding DNS is essential for smooth internet communication and easy website access.
1. Introduction to HTTP:
HTTP is the language computers use to talk to each other on the web.
It allows web browsers (like Chrome or Firefox) to ask web servers for information and receive it
back.
2. Client-Server Communication:
In HTTP, there are clients (web browsers) and servers (where websites are stored).
The client sends a request to the server, asking for something like a web page.
The server processes the request and sends back a response with the requested data.
3. Request-Response Cycle:
The client asks for something by sending an HTTP request to the server.
The server receives the request, does what was asked, and sends back an HTTP response with
the requested data.
4. Stateless Protocol:
HTTP doesn't remember previous interactions. Each request-response cycle is separate and
doesn't hold onto past information.
5. HTTP Methods:
unit 1 wt 2
For example, GET is used to get a webpage, POST is used to send data to the server, PUT is
used to update something, and DELETE is used to remove something.
In an HTTP request, the client includes a URL that specifies what it wants from the server.
The request can also include headers, which provide extra information like the type of content
being sent or authentication credentials.
1. Introduction to HTTPS:
HTTPS is a safer version of HTTP. It adds an extra layer of protection to keep data secure when
it's being sent between the client and server.
2. SSL/TLS Encryption:
HTTPS uses encryption to make sure that data sent between the client and server is hidden from
anyone who might try to intercept it.
It uses SSL or TLS, which are technologies that scramble the data so that only the intended
recipient can understand it.
3. SSL/TLS Handshake:
When the client and server want to establish a secure connection, they go through a process
called the SSL/TLS handshake.
During the handshake, they exchange encryption keys, verify each other's identity using digital
certificates, and agree on the encryption method to use.
4. HTTPS Benefits:
Encryption: HTTPS keeps data safe during transmission so that unauthorized people can't read it.
Data Integrity: HTTPS ensures that the data sent and received remains unchanged and hasn't
been tampered with.
Authentication: HTTPS verifies the identity of the server, ensuring that the client is talking to the
intended server.
User Trust: HTTPS shows visual cues, like a padlock icon and "https://" in the URL, to let users
know that the connection is secure and build their trust.
5. HTTPS Implementation:
To use HTTPS, website owners need to obtain an SSL/TLS certificate from a trusted authority.
Web servers also need to be set up to support HTTPS and properly configure the certificate.
In summary, HTTP is the language computers use to communicate on the web. HTTPS is the secure
version of HTTP, protecting data with encryption. It ensures that data is safe, can't be tampered with,
verifies the identity of servers, and builds trust with users.
unit 1 wt 3
1. Introduction to Three-Tier Architecture:
Three-tier architecture is a way of building web applications by dividing them into three parts or
layers.
Each layer has a specific role and handles different tasks in the application.
The presentation layer is the part that users see and interact with.
It includes the visual elements like web pages, buttons, forms, and menus.
Its job is to make the application look nice and allow users to use it easily.
Developers use technologies like HTML, CSS, and JavaScript to create the presentation layer.
It takes care of the behind-the-scenes tasks and processes the user's requests.
Developers use programming languages and frameworks to build the application logic layer.
The data layer is where the application stores and manages its data.
This layer is responsible for tasks like saving, retrieving, updating, and deleting data.
Developers use technologies like SQL or data access libraries to work with the data layer.
Each layer communicates and interacts with the layers above and below it.
The presentation layer talks to the application logic layer to send user requests and get
responses.
The application logic layer talks to the data layer to retrieve or update data.
Scalability: It allows the application to handle more users and data by distributing the workload across
different layers.
Modularity and Reusability: Each layer can be developed and maintained separately, making it easier
to reuse code and add new features.
Security: It provides an added layer of security by controlling access to data and implementing
security measures at each tier.
Maintainability: It makes it easier to update and maintain the application without affecting other parts.
Flexibility: It gives developers the freedom to choose different technologies for each layer based on
their needs.
In summary, three-tier architecture divides a web application into three layers: presentation, application
logic, and data. The presentation layer handles the user interface, the application logic layer manages the
unit 1 wt 4
functionality, and the data layer stores and manages the data. This architecture helps in building scalable,
modular, secure, maintainable, and flexible web applications.
Here's a comparison table explaining the differences between the Internet, Intranet, and Extranet:
In summary, the Internet is a global network accessible to everyone, an intranet is a private network for
internal organization use, and an extranet extends access to selected external users. They differ in
accessibility, user base, purpose, security, and examples of usage.
1. Introduction to ISP:
An ISP, or Internet Service Provider, is a company that gives you access to the internet.
They use different technologies like DSL, cable, or wireless connections to connect you to the
internet.
Internet Connectivity: ISPs let you connect to the internet using broadband or dial-up connections.
Email Services: Some ISPs provide email accounts so you can send and receive emails.
Web Hosting: Certain ISPs offer web hosting, which means they can host your website on their
servers.
Additional Services: Some ISPs may offer extras like VPNs for secure browsing, cloud storage, or
streaming services.
unit 1 wt 5
Connection Type: Check what types of connections are available in your area, like DSL, cable, or
fiber-optic, and choose one that works best for you.
Speed and Bandwidth: Decide how fast you need your internet to be based on your activities, like
web browsing, streaming, or gaming.
Reliability and Uptime: Look for ISPs with a good track record of reliable service and less
downtime.
Customer Support: Consider the quality and availability of customer support, like having 24/7 help
and different ways to contact them.
Pricing and Packages: Compare the prices and packages offered by different ISPs, including
monthly fees, installation costs, and any additional charges.
Service Coverage: Make sure the ISP covers your area and provides service where you live.
Value-Added Services: See if the ISP offers any extra services that you might find useful, like
email accounts or web hosting.
Reputation and Reviews: Read reviews from other customers to get an idea of the ISP's
reputation and customer satisfaction.
Service Level Agreements (SLAs): For businesses, check if the ISP offers SLAs that guarantee
things like uptime and response time.
Scalability: Make sure the ISP can handle your business's growth and increased internet needs.
Business Support: Look for ISPs that provide specialized support for businesses and tailored
solutions.
5. Trial or Pilot:
Some ISPs offer trial periods where you can try their service before committing. Take advantage
of this to see if the ISP meets your needs.
In summary, when choosing an ISP, consider things like the connection type, speed, reliability, customer
support, pricing, coverage, value-added services, and reputation. For businesses, also think about SLAs,
scalability, and specialized support. Do your research, compare options, and consider trials to make the
best choice.
1. Introduction to IP Addressing:
It helps devices communicate with each other using the Internet Protocol (IP).
IPv4 addresses are made up of four sets of numbers (e.g., 192.168.0.1) and are used for most
devices.
unit 1 wt 6
3. Components of an IP Address:
IP addresses have two parts: the network portion and the host portion.
The network portion identifies the network, and the host portion identifies the specific device
within that network.
Dynamic IP addresses are assigned automatically by a server and can change over time.
NAT allows multiple devices on a local network to share a single public IP address.
Private IP addresses are used within private networks, like home or office networks.
7. Role of IP Addressing:
Routers use IP addresses to determine the best path for data to reach its destination.
8. IP Version Transition:
In summary, IP addressing is a system that assigns unique identification numbers (IP addresses) to
devices on a network. IPv4 and IPv6 are the two versions of IP addresses. IP addressing allows devices
to communicate, routers to route data, and enables sharing of internet connections.
1. Introduction to TCP/IP:
TCP/IP is a set of rules that devices use to talk to each other over networks like the internet.
It helps devices communicate by dividing data into smaller parts, sending them, and then putting
them back together.
TCP makes sure that data gets to its destination without any errors.
It breaks data into small pieces called packets and puts them back together at the other end.
TCP also checks if all the packets arrived and asks for any missing ones to be sent again.
3. IP (Internet Protocol):
It gives each device a unique number called an IP address so they can find each other.
unit 1 wt 7
IP decides how to send packets from the source device to the destination device.
Besides TCP and IP, there are other protocols like UDP and ICMP that help with different aspects
of communication.
The Application Layer supports specific services like web browsing or email.
It allows devices all over the world to communicate with each other.
It promotes compatibility and lets different devices and networks work together.
In summary, TCP/IP is a set of rules that devices use to communicate over networks. TCP ensures data
gets to its destination correctly, while IP handles addressing and routing. TCP/IP is important for the
internet and allows devices to work together.
1. Introduction to UDP:
UDP is a way for devices to quickly send data to each other over networks.
UDP is great for applications that need speed but don't require every piece of data to arrive
perfectly.
UDP breaks data into small packets and sends them separately.
Each packet has a header that includes the source and destination port numbers.
The packets keep their original structure and don't need to be put back together.
UDP is faster and more efficient than some other protocols, like TCP.
It doesn't spend a lot of time checking for errors or making sure every packet arrives.
This makes UDP great for applications that need speed and don't mind if some data gets lost.
unit 1 wt 8
4. Uses of UDP:
Real-Time Applications: UDP is commonly used for things like live video streaming, online
gaming, and voice over IP (VoIP).
DNS: UDP helps convert domain names (like google.com) into IP addresses quickly.
IoT Devices: UDP is good for small devices that send small amounts of data, like temperature
sensors or smart home devices.
5. Advantages of UDP:
Low Delay: UDP is fast because it doesn't spend time on extra checks and verifications.
Less Overhead: UDP uses fewer resources and is efficient for devices with limited processing
power.
Broadcasting and Multicasting: UDP can send data to multiple devices at once, which is useful for
things like video broadcasts.
6. Disadvantages of UDP:
Not Reliable: UDP doesn't guarantee that every packet will arrive, so some data might be lost.
No Flow Control: UDP doesn't slow down the data transmission rate, which can lead to
congestion or packet loss in busy networks.
In summary, UDP is a fast and lightweight protocol for sending data over networks. It's great for real-time
applications, DNS queries, and IoT devices. While UDP doesn't ensure perfect delivery, it prioritizes
speed and efficiency.
There are different ways you can connect to the internet. Let's look at some of the common methods:
1. Dial-up Connection:
This is an older way where you connect to the internet using your phone line and a special device
called a modem.
It's slower than other methods and ties up your phone line while you're connected.
2. Broadband:
It's faster than dial-up and doesn't interfere with your phone line.
b. Cable Internet:
Cable internet uses the same cables that deliver cable TV signals to provide internet access.
c. Fiber Optic:
unit 1 wt 9
Fiber optic connections use thin glass or plastic fibers to transmit data using light.
3. Wireless Connections:
Wi-Fi connects your devices to a local network that's connected to the internet.
You can find Wi-Fi in homes, cafes, offices, and public places.
b. Mobile Data:
Mobile data allows you to access the internet using cellular networks on your smartphone or
tablet.
It's useful when you're on the go and don't have access to Wi-Fi.
4. Satellite Internet:
It's mainly used in remote or rural areas where other options might not be available.
5. Public Networks:
Public networks, like Wi-Fi hotspots, provide internet access in specific places like airports, cafes,
and libraries.
You can use these networks if you're in range and sometimes they're free.
When choosing an internet connection, think about factors like speed, availability, reliability, and cost. The
options available to you may depend on where you live. It's a good idea to check with local internet
service providers to see what options are available in your area.
IPv4 IPv6
Provides around 4.3 billion unique addresses Provides approximately 340 undecillion unique addresses
Widely deployed and used Increasing adoption but not as prevalent as IPv4
Address format: 4 sets of numbers (0-255) Address format: 8 sets of hexadecimal numbers separated by
separated by dots colons
Headers include fewer fields Headers include additional fields for improved functionality
Limited support for security and encryption Built-in support for security features, such as IPsec
unit 1 wt 10
IPv4 IPv6
In simpler terms, IPv4 and IPv6 are different versions of the Internet Protocol that define how devices
communicate on the internet. IPv4 uses 32-bit addresses and provides a limited number of unique
addresses, whereas IPv6 uses 128-bit addresses and offers a much larger address space. IPv4 is widely
used and deployed, while IPv6 adoption is growing but not as prevalent. IPv6 has built-in security features
and a more efficient header structure compared to IPv4. IPv4 requires Network Address Translation (NAT)
for address conservation, while IPv6 has a significantly larger address space that eliminates the need for
NAT in most cases.
The World Wide Web (WWW) is like a big collection of interconnected documents and resources that you
can access using the internet. It's how we find and share information online. Here are some important
things to know about the WWW:
Web Servers: These are special computers that store and give out web pages when you ask for
them.
Web Browsers: These are the programs you use to look at web pages. Examples include
Chrome, Firefox, and Safari.
Web Pages: These are the documents you see on the web. They can have text, pictures, videos,
and links to other pages.
Hyperlinks: These are clickable links that take you from one web page to another.
URLs: These are the addresses that tell your browser where to find a specific web page.
Hypertext Transfer Protocol (HTTP): It's the way web browsers and servers talk to each other. It
lets them exchange information and get the right web pages for you.
Secure HTTP (HTTPS): It's like a safer version of HTTP. It adds extra protection when you're
doing things like online shopping or banking.
HTML (Hypertext Markup Language): It's the language used to create web pages. It's like the
building blocks that tell the browser how to show the page.
CSS (Cascading Style Sheets): It's a special language that helps make web pages look good. It
controls things like colors, fonts, and how things are laid out.
JavaScript: It's a programming language that makes web pages interactive. It can do things like
show pop-up messages, validate forms, and make animations.
Understanding these things helps you work with web technologies and create your own websites. It's all
about how information is organized, how pages look, and how you can interact with them on the World
Wide Web.
unit 1 wt 11
❓ Web Browsers
Web browsers are like special programs that help you look at websites on the internet. They have
important roles and cool features. Let's break it down:
Web browsers are like middlemen between you and the websites you want to see. They fetch
web pages from servers and show them to you on your computer or phone.
Browsers know how to read the code that makes up web pages, like HTML, CSS, and JavaScript.
This way, they can show you the pages with all the pictures, videos, and interactive stuff.
Tabbed Browsing: You can open many websites at the same time in different tabs, like having
multiple pages open in one window.
Bookmarks and Favorites: You can save websites you like, so you can easily go back to them
later without searching.
History: Browsers keep a list of the websites you've visited, so you can find them again.
Extensions and Add-ons: These are extra things you can add to your browser, like ad
blockers or tools that help with passwords or translations.
Private Browsing: This mode lets you browse without the browser remembering what you did,
like your history or cookies, for more privacy.
Synchronization: Some browsers let you sync your bookmarks, settings, and history across
different devices, so you can access them from anywhere.
Developer Tools: These are special tools for people who build websites. They help with
testing, fixing problems, and understanding how web pages work.
There are many web browsers to choose from, but here are some popular ones:
Google Chrome: It's fast, has lots of features, and works on different devices.
Mozilla Firefox: It focuses on privacy and lets you customize things to your liking.
Apple Safari: It's the default browser on Apple devices and works well with them.
Microsoft Edge: It's made by Microsoft and works smoothly on Windows computers.
Opera: It's known for its speed and comes with built-in tools like a free VPN and ad blocker.
Understanding web browsers and their features helps you pick the one that suits you best for browsing
the internet and checking out all the cool websites out there.
unit 1 wt 12
Servers are like special computers that help make websites available on the internet. Let's learn about
different types of servers and how to set up web servers on UNIX and Linux systems.
Web servers are like helpers that store and send web pages to people who want to see them.
Their job is to listen for requests from web browsers, find the requested web pages, and send
them back to the users so they can see the content.
Web servers use a special language called HTTP to talk to the web browsers and make sure the
information gets delivered correctly.
HTTP Servers: These servers are experts in delivering web pages using the HTTP language.
They handle requests for static web pages that don't change much.
Application Servers: These servers can do more than just deliver web pages. They can run
special programs and process data for interactive web applications.
Database Servers: These servers store and manage data for web applications. They handle
storing and retrieving information from databases.
Mail Servers: Mail servers help with sending and receiving emails. They make sure your emails
get to the right place.
UNIX and Linux systems are popular choices for hosting web servers. Here's a simple overview
of setting up a web server:
Install the web server software, like Apache, Nginx, or Lighttpd, on your UNIX or Linux
system.
Configure the web server by telling it where to find the web pages and other important
settings.
Create your web pages or upload them to the server. These are the pages that people will
see when they visit your website.
Make sure the server has the right permissions to access and show the web pages.
Start the web server, so it's ready to serve your web pages to visitors.
Test the web server by opening a web browser and entering the server's address. If
everything is set up correctly, you should see your web pages.
Setting up web servers requires some technical knowledge, but following installation and configuration
instructions will help you do it right. It's important to make sure your server is secure and works well to
provide a good experience for your website visitors.
Web design principles help make websites look good and easy to use. Some important principles are:
unit 1 wt 13
Simplicity: Keep things simple and not too crowded.
Choose colors, fonts, and images that match the website's purpose.
By following these principles and planning carefully, you can create a website that looks great and is easy
to use.
unit 1 wt 14