Website Development and Web Technology – Important Questions & Answers UNIT 2

Simple Language Notes for Study and Examination

Q1. Explain client-side and server-side scripting. Differentiate between them with suitable examples and applications.

1. Client-Side Scripting

Client-side scripting is a programming technique in which scripts run on the user’s computer or web browser.

It is mainly used to make web pages interactive and attractive.

Examples of client-side scripting languages:

  • JavaScript
  • HTML (used for webpage structure)
  • CSS (used for webpage styling)

Working of Client-Side Scripting:

  1. The user opens a website in a browser.
  2. The browser downloads HTML, CSS, and JavaScript files.
  3. The browser executes JavaScript code.
  4. The script performs the required operations.
  5. The result is displayed to the user.

Example: When a user clicks a button and a message appears without reloading the page, client-side scripting is used.

Applications:

  • Form validation.
  • Creating dropdown menus.
  • Image sliders.
  • Interactive buttons.
  • Animations.
  • Updating webpage content without reloading.

2. Server-Side Scripting

Server-side scripting is a programming technique in which scripts run on a web server.

It is mainly used to process user requests, manage databases, and generate dynamic web pages.

Examples of server-side scripting languages:

  • PHP
  • Python
  • Java
  • ASP.NET
  • Node.js (JavaScript runtime)

Working of Server-Side Scripting:

  1. The user opens a website.
  2. The user submits a request or form.
  3. The request is sent to the web server.
  4. The server executes the required script.
  5. The script may communicate with a database.
  6. The server sends the result to the browser.

Example: When a user enters a username and password, the server checks the login details in the database and returns the result.

Applications:

  • User login and registration.
  • Online shopping websites.
  • Payment processing.
  • Database management.
  • User account management.
  • Content management systems.

3. Difference Between Client-Side and Server-Side Scripting

BasisClient-Side ScriptingServer-Side Scripting
ExecutionRuns in browserRuns on server
ProcessingUser’s deviceWeb server
Main purposeUser interactionData processing
SpeedUsually fast for local tasksDepends on server and network
Database accessUsually through server APIsCan directly access databases
SecurityCode is generally visible to usersServer code remains private
InternetSome tasks work offlineUsually requires server communication
LanguagesJavaScriptPHP, Python, Java, etc.
ExampleForm validationUser login

Conclusion: Client-side scripting improves the user experience, while server-side scripting manages data and performs important operations on the server.

Q2. What is web hosting? Explain the different types of web hosting with their features, advantages, and disadvantages.

1. Definition of Web Hosting

Web hosting is a service that provides storage space and resources on a server to store website files and make them available on the Internet.

When someone enters a website address in a browser, the hosting server sends the website files to the user’s browser.

Example: If we create a website for Aditya Institution, we need web hosting to make it available on the Internet.

2. Types of Web Hosting

There are several types of web hosting.

1. Shared Hosting

Shared hosting means multiple websites use the same physical server and share its resources.

Features:

  • Multiple websites share one server.
  • Low-cost hosting.
  • Easy to manage.
  • Suitable for small websites.

Advantages:

  • Very affordable.
  • Easy to set up.
  • No advanced technical knowledge required.

Disadvantages:

  • Limited resources.
  • Performance may be affected by other websites.
  • Less control over server settings.

Example: Small business websites and personal blogs.

2. VPS Hosting (Virtual Private Server)

VPS hosting divides one physical server into multiple virtual servers.

Each virtual server has its own allocated resources.

Features:

  • Dedicated virtual resources.
  • More control over server settings.
  • Better performance than basic shared hosting.
  • Supports custom software installation.

Advantages:

  • Better performance.
  • More control.
  • Better isolation from other users.

Disadvantages:

  • More expensive than shared hosting.
  • Requires technical knowledge.
  • Resources are still limited by the physical server.

Example: Medium-sized business websites and web applications.

3. Dedicated Hosting

Dedicated hosting means one complete physical server is provided to a single customer.

Features:

  • Complete server control.
  • Dedicated resources.
  • High performance.
  • Custom server configuration.

Advantages:

  • Excellent performance.
  • High level of control.
  • Better resource availability.
  • Suitable for large websites.

Disadvantages:

  • Very expensive.
  • Requires technical knowledge.
  • Server maintenance may be the customer’s responsibility.

Example: Large e-commerce websites and enterprise applications.

4. Cloud Hosting

Cloud hosting uses multiple connected servers to host websites and applications.

Features:

  • Uses multiple servers.
  • Resources can be increased when required.
  • Supports high traffic.
  • Often offers flexible pricing.

Advantages:

  • High availability.
  • Easy scalability.
  • Good performance.
  • Reduced dependence on a single physical server.

Disadvantages:

  • Costs may increase with usage.
  • Requires technical knowledge for advanced setup.
  • Depends on the cloud provider.

Example: Large online applications and shopping websites.

5. Reseller Hosting

Reseller hosting allows a person or company to purchase hosting resources and sell them to other customers.

Features:

  • Hosting resources can be divided among customers.
  • Suitable for hosting businesses.
  • Allows management of multiple websites.

Advantages:

  • Opportunity to start a hosting business.
  • No need to own physical servers.
  • Can generate income.

Disadvantages:

  • Depends on the main hosting provider.
  • Limited server control.
  • Customer support responsibilities.

Example: A web development company providing hosting to its clients.

3. Comparison of Different Web Hosting Types

Hosting TypeCostPerformanceBest For
SharedLowBasicSmall websites
VPSMediumGoodGrowing websites
DedicatedHighVery highLarge websites
CloudVariableScalableHigh-traffic websites
ResellerVariableDepends on providerHosting businesses

Conclusion: Web hosting makes websites accessible on the Internet. The hosting type should be selected according to website size, traffic, budget, and requirements.

Q3. Explain the concept of web publishing. Describe the steps involved in publishing a website on the Internet.

1. Definition of Web Publishing

Web publishing is the process of creating, uploading, and making website content available on the Internet.

It includes designing web pages, purchasing a domain name, selecting web hosting, uploading website files, and testing the website.

Example: Creating a website for Aditya Institution and making it available at www.adityakumarsingh.co.in is an example of web publishing.

2. Steps Involved in Web Publishing

Step 1: Website Planning

  • Decide the purpose of the website.
  • Identify the target audience.
  • Decide what information will be displayed.
  • Prepare a list of required pages.

Example: Home, About Us, Courses, Services, and Contact Us.

Step 2: Website Designing

  • Create the layout of the website.
  • Select colours and fonts.
  • Design menus, buttons, and images.
  • Make the website user-friendly.

Step 3: Website Development

  • Write HTML for webpage structure.
  • Use CSS for designing.
  • Use JavaScript for interactive features.
  • Use PHP or other server-side languages if required.
  • Connect the website to a database if necessary.

Step 4: Register a Domain Name

A domain name is the address of a website on the Internet.

Examples:

  • google.com
  • amazon.in
  • adityakumarsingh.co.in

A domain name must be registered through a domain registrar.

Step 5: Purchase Web Hosting

  • Select a suitable hosting provider.
  • Purchase a hosting plan.
  • Get access to the hosting control panel.
  • Configure the hosting account.

Step 6: Upload Website Files

  • Connect to the hosting server.
  • Upload website files using cPanel File Manager or FTP.
  • Place the files in the correct website directory.
  • Configure database settings if required.

Step 7: Configure DNS

  • Connect the domain name to the hosting server.
  • Update the required DNS records.
  • Wait for DNS changes to become available.

Step 8: Test the Website

  • Check all web pages.
  • Test links and navigation.
  • Check forms and buttons.
  • Test on mobile and desktop devices.
  • Check website loading speed.

Step 9: Publish the Website

After successful testing, the website becomes available to Internet users through its domain name.

Step 10: Website Maintenance

  • Update website content.
  • Fix errors.
  • Install security updates.
  • Take regular backups.
  • Improve website performance.

3. Web Publishing Process Diagram

4. Requirements for Web Publishing

  1. Computer or laptop.
  2. Internet connection.
  3. Domain name.
  4. Web hosting.
  5. Website files.
  6. Web browser.
  7. FTP software or hosting control panel.

Conclusion: Web publishing is the process of making a website available to people worldwide through the Internet.

Q4. Explain the World Wide Web in detail. Discuss its working, important components, web browsers, web servers, websites, and web pages with suitable examples.

1. Definition of World Wide Web

WWW stands for World Wide Web.

The World Wide Web is a collection of interconnected web pages and websites that can be accessed through the Internet using web browsers.

It provides information in the form of text, images, audio, video, and other multimedia content.

Examples: Google, Wikipedia, Amazon, and YouTube.

Important: The Internet and WWW are not the same. The Internet is a worldwide network of connected computers, while the WWW is a service that operates over the Internet.

2. Working of the World Wide Web

The WWW works on a client-server model.

  1. The user opens a web browser.
  2. The user enters a website URL.
  3. DNS finds the IP address of the web server.
  4. The browser sends an HTTP or HTTPS request.
  5. The web server receives the request.
  6. The server sends the requested web page.
  7. The browser displays the web page.

3. Important Components of WWW

1. Web Browser

A web browser is software used to access and display web pages.

Examples:

  • Google Chrome.
  • Mozilla Firefox.
  • Microsoft Edge.
  • Apple Safari.

2. Web Server

A web server is a computer or software that stores, processes, and delivers website content to users.

Examples:

  • Apache HTTP Server.
  • Nginx.
  • Microsoft IIS.

3. Website

A website is a collection of related web pages available under a common domain name.

Examples:

  • www.google.com
  • www.wikipedia.org
  • www.amazon.in

4. Web Page

A web page is a single document available on the World Wide Web.

It may contain text, images, videos, links, and other information.

Examples:

  • Home page.
  • About Us page.
  • Contact Us page.

5. HTML

HTML stands for HyperText Markup Language.

It is used to create the structure of web pages.

6. HTTP/HTTPS

HTTP and HTTPS are communication protocols used to transfer information between browsers and web servers.

7. URL

URL stands for Uniform Resource Locator.

It is the address used to access a web page or Internet resource.

8. Hyperlinks

Hyperlinks are clickable text or images that connect one web page to another.

4. Difference Between Website and Web Page

WebsiteWeb Page
Collection of related web pagesSingle document
Contains multiple pagesContains specific information
Has a domain nameHas its own URL
Example: Amazon websiteExample: Amazon product page

5. Applications of WWW

  • Online education.
  • Online shopping.
  • Social networking.
  • Online banking.
  • News and information.
  • Entertainment.
  • Business promotion.
  • Online communication.

Conclusion: The World Wide Web makes it easy to access and share information through websites and web pages using the Internet.

Q5. Differentiate between static and dynamic websites. Explain their working, characteristics, advantages, disadvantages, and applications with suitable examples.

1. Static Website

A static website is a website in which web pages display fixed content to users.

The content usually remains the same unless a developer manually changes the website files.

Technologies Used:

  • HTML
  • CSS
  • JavaScript

Example: A simple personal portfolio website containing About, Services, and Contact pages.

Working of a Static Website

  1. The user enters the website address.
  2. The browser sends a request to the web server.
  3. The server finds the requested HTML file.
  4. The server sends the file to the browser.
  5. The browser displays the web page.

Characteristics of Static Websites

  • Fixed content.
  • Simple structure.
  • Fast loading.
  • Usually does not require a database.
  • Easy to develop.
  • Changes require editing website files.

Advantages

  • Low development cost.
  • Fast loading speed.
  • Easy hosting.
  • Simple maintenance.
  • Fewer server-side security risks.

Disadvantages

  • Content is not automatically updated.
  • Limited user interaction.
  • Difficult to manage many pages.
  • Changes may require technical knowledge.

Applications

  • Personal portfolio websites.
  • Small business websites.
  • Company information websites.
  • Simple landing pages.
  • Digital brochures.

2. Dynamic Website

A dynamic website is a website in which content can change according to user input, database information, or other conditions.

It uses server-side programming and may use a database to store and retrieve information.

Technologies Used:

  • PHP
  • Python
  • JavaScript
  • ASP.NET
  • MySQL
  • HTML and CSS

Example: Facebook, Amazon, and online banking websites.

Working of a Dynamic Website

  1. The user opens a website.
  2. The browser sends a request to the web server.
  3. The server-side program processes the request.
  4. The program retrieves or updates information from the database if required.
  5. The server generates the required web page.
  6. The browser displays the result.

Characteristics of Dynamic Websites

  • Content can change automatically.
  • Supports user accounts.
  • Can connect to databases.
  • Provides interactive features.
  • Supports online transactions.
  • Content can be managed through an admin panel.

Advantages

  • Highly interactive.
  • Easy content management.
  • Supports multiple users.
  • Provides personalized information.
  • Suitable for large applications.

Disadvantages

  • More expensive to develop.
  • Requires server-side programming.
  • May require database management.
  • Needs regular security maintenance.
  • Performance depends on server processing.

Applications

  • E-commerce websites.
  • Social networking websites.
  • Online banking systems.
  • Educational portals.
  • News portals.
  • Content management systems.

3. Difference Between Static and Dynamic Websites

BasisStatic WebsiteDynamic Website
ContentFixedChanges according to data or user input
DevelopmentSimpleMore complex
DatabaseUsually not requiredOften required
SpeedGenerally fasterDepends on processing
InteractionLimitedHigh
UpdatingManual file editingCan be automated
CostUsually lowUsually higher
TechnologyHTML, CSS, JSPHP, Python, JS, databases
ExamplePortfolio websiteAmazon

4. Examples of Static and Dynamic Websites

Static Website

Fixed information and simple pages.

Dynamic Website

Products, accounts, search, and shopping cart.

Conclusion: Static websites are suitable for simple information-based websites, while dynamic websites are suitable for interactive applications that require databases and user management.

Q6. Explain the different phases of website development in detail, including planning, designing, development, testing, publishing, and maintenance.

1. Introduction

Website development is the process of creating, designing, building, testing, and maintaining a website.

It involves several steps to make a website useful, attractive, secure, and user-friendly.

2. Different Phases of Website Development

Phase 1: Planning

Planning is the first phase of website development.

In this phase, we decide what type of website we want to create and what purpose it will serve.

Activities:

  • Decide the purpose of the website.
  • Identify the target audience.
  • Collect required information.
  • Decide the website structure.
  • Select the technologies.
  • Estimate the budget and time.

Example: Planning a website for Aditya Institution with Home, About, Courses, and Contact pages.

Phase 2: Website Designing

In this phase, the appearance and layout of the website are created.

Activities:

  • Select colours and fonts.
  • Design the homepage.
  • Create menus and navigation.
  • Arrange images and text.
  • Prepare page layouts.
  • Design mobile-friendly interfaces.

Technologies:

  • Figma.
  • Adobe Photoshop.
  • HTML.
  • CSS.
  • Bootstrap.

Phase 3: Website Development

In this phase, the actual website is created using programming languages and tools.

Activities:

  • Create web pages using HTML.
  • Apply styling using CSS.
  • Add interactive features using JavaScript.
  • Develop server-side functionality.
  • Connect the database if required.
  • Create login and registration systems if needed.

Technologies:

  • HTML
  • CSS
  • JavaScript
  • PHP
  • Python
  • MySQL
  • Bootstrap

Phase 4: Website Testing

Testing is performed to find and correct errors before publishing the website.

Activities:

  • Check all web pages.
  • Test links and buttons.
  • Check forms.
  • Test website on different browsers.
  • Test mobile responsiveness.
  • Check website loading speed.
  • Check basic security.

Example: Checking whether the Contact Us form correctly sends user information.

Phase 5: Website Publishing

Publishing means making the website available on the Internet.

Activities:

  • Register a domain name.
  • Purchase web hosting.
  • Upload website files.
  • Configure DNS settings.
  • Install an SSL certificate.
  • Test the live website.

Example: Publishing a website at www.adityakumarsingh.co.in.

Phase 6: Website Maintenance

Website maintenance means regularly updating and improving the website after publishing.

Activities:

  • Update website content.
  • Fix errors and bugs.
  • Take regular backups.
  • Update software and plugins.
  • Improve website security.
  • Monitor website performance.
  • Add new features when required.

Example: Adding new courses and updating contact details on an institution’s website.

3. Website Development Life Cycle Diagram

4. Importance of Website Development Phases

  • Helps complete projects systematically.
  • Reduces development errors.
  • Saves time and cost.
  • Improves website quality.
  • Provides better user experience.
  • Makes website maintenance easier.

Conclusion: Website development involves planning, designing, development, testing, publishing, and maintenance. Following these phases helps create a successful and reliable website.

Quick Revision – Important Full Forms

Short FormFull Form
HTMLHyperText Markup Language
CSSCascading Style Sheets
PHPPHP: Hypertext Preprocessor
WWWWorld Wide Web
URLUniform Resource Locator
HTTPHyperText Transfer Protocol
HTTPSHyperText Transfer Protocol Secure
FTPFile Transfer Protocol
SQLStructured Query Language
UIUser Interface
UXUser Experience
DNSDomain Name System
ISPInternet Service Provider
VPSVirtual Private Server
SSLSecure Sockets Layer

Important Questions for Exam Revision

QuestionMain Topics to Remember
Q1Client-side vs Server-side scripting
Q2Shared, VPS, Dedicated, Cloud, Reseller Hosting
Q3Steps of Web Publishing
Q4WWW, Browser, Server, Website, Web Page
Q5Static vs Dynamic Websites
Q6Website Development Life Cycle

Study Tip: Give special attention to the differences between client-side and server-side scripting, static and dynamic websites, and the types of web hosting. Practise the diagrams of website publishing, WWW working, and the website development life cycle for better examination preparation.