Lec 1
Lec 1
Lecture 1
1
Course Contents
• HTML (to define the content of web pages)
• CSS (to specify the layout of web pages)
• Bootstrap (to develop responsive web pages)
• JavaScript (to program the behavior of web pages)
• PHP (Use for database)
2
Recommended Text Books:
4
Web Server
– Install a web server on your own PC and then
install PHP & MYSQL
– WAMP: Window, Apache, MYSQL, PHP
– XAMPP: All OS, Apache, MYSQL, PHP, Perl
Note: Install the web server start as services &
then type localhost in your browser to check
whether it is running or not
– LAMP: used for Linux Machines users
5
Web Application?
A software application that runs on web servers and is accessed through web browsers over the internet. Unlike
traditional desktop applications, web applications do not require installation on a user's device and can be used on
various platforms and devices with an internet connection. These applications can perform a wide range of tasks,
from simple data entry forms to complex, interactive systems.
• A web application consists of both front-end and back-end components. The front-end, also known as the
client-side, is the part of the application that users interact with through their web browsers. It typically
includes the user interface (UI) elements, such as web pages, forms, buttons, and other interactive elements.
• The back-end, or server-side, is responsible for processing requests, managing data, and performing the core
functionality of the application. It communicates with the front-end, often using APIs (Application
Programming Interfaces), to retrieve or send data and perform various operations.
Example: Online Email Service
1. User Interface (Front-end):
• When you open your web browser and go to Gmail's website, you interact with the front-end of the web
application.
• The Gmail interface includes elements like the login page, inbox, email composition forms, buttons, and
folders.
2. Functionality (Back-end):
• On the back-end, Gmail's servers are responsible for handling user authentication, storing and retrieving
emails, sending emails, and managing user accounts.
• When you log in, the back-end verifies your credentials, retrieves your emails from the server, and
displays them in your inbox.
• When you compose and send an email, the back-end processes your message, stores it, and delivers it to
the recipient. 6
Web platforms
Web platforms, are the environments that provide tools, libraries, and services for building and deploying web applications
and websites. These platforms simplify the development process by offering pre-built components, design templates, and
infrastructure, allowing developers to focus on creating features and functionality rather than starting from scratch.
1. Content Management Systems (CMS):
1. Examples: WordPress, Joomla, Drupal
2. CMS platforms are widely used for building and managing websites. They provide a user-friendly interface for
content creation and editing, making it easy for non-technical users to maintain a website.
2. E-commerce Platforms:
1. Examples: Shopify, WooCommerce, Magento
2. E-commerce platforms are tailored for creating online stores. They include features like product catalogs, shopping
carts, payment processing, and inventory management.
3. Web Development Frameworks:
1. Examples: Ruby on Rails, Django, Express.js
2. Web development frameworks are libraries and tools for building web applications from the ground up. They offer
greater flexibility and customization but require more technical expertise.
4. Front-end Development Tools:
1. Examples: React, Angular,
2. Front-end frameworks and libraries help build interactive and responsive user interfaces. They focus on client-side
development and can be integrated with various back-end technologies.
5. Mobile App Development Platforms:
1. Examples: React Native, Flutter
2. These platforms enable developers to create mobile applications using web development skills, often with a single
7
codebase that works on multiple platforms.
Web Communication Protocol
1. HTTP, which stands for Hypertext Transfer Protocol, is a fundamental communication
protocol used for web applications and websites. It defines how data is formatted and
transmitted between a web server and a web client, typically a web browser.
• HTTP operates on a client-server model. When you open a web page or use a web application, your web
browser (the client) sends HTTP requests to a web server, which hosts the web application.
• The web server processes these requests and sends back HTTP responses containing the requested data, such
as HTML files, images, JavaScript, or JSON data.
13
HTML – Hypertext Markup Language
(cont.)
<html>
<head>
<title>First Web Page</title>
Head Tag
</head>
<body> HTML Tag
<h1>Heading</h1>
<p>Paragraph</p> Body Tag
</body>
</html>
15
HTML Headings
<!DOCTYPE html>
<html>
<body>
</body>
</html> 16
HTML Paragraphs
• HTML paragraphs are defined with the <p> tag:
<!DOCTYPE html>
<html>
<body>
<p>First paragraph.</p>
<p>This is second paragraph.</p>
</body>
</html>
17
HTML Links
• HTML links are defined with the <a> tag:
<!DOCTYPE html>
<html>
<body>
<h2>HTML Links</h2>
<p>HTML link is given below:</p>
</body>
18
</html>
HTML Images
• HTML images are defined with the <img> tag.
• The source file (src), alternative text (alt), width, and height are provided
as attributes:
<!DOCTYPE html>
<html>
<body>
<h2>HTML Images</h2>
<p>HTML images are defined with the img tag:</p>
</body> 19
HTML Buttons
• HTML buttons are defined with the <button> tag:
<!DOCTYPE html>
<html>
<body>
<h2>HTML Buttons</h2>
<p>HTML buttons are defined with the button tag:</p>
<button>Click me</button>
</body> 20
Lab Task
21