Introduction to Web Technology Basics
Introduction to Web Technology Basics
Introduction to HTML
Overview and Objectives
• Web Technology refers to the tools, techniques and standards
used to create, manage and use websites and web
applications. It includes everything that helps users interact
with the internet — from designing web pages to managing
data on the server.
• Objectives:
1. Understand Internet & Web Concepts
2. Develop Client-Side Web Pages
3. Learn Server-Side Programming
4. Database Connectivity
5. Web Application Development
6. Understand Web Standards & Security
7. Enhance User Experience (UX)
Introduction to Web Technology
• Web technologies refers to the way computers/devices
communicate with each other using mark up languages.
• It is communication across the web, and create, deliver or
manage web content using hypertext markup language
(HTML).
• A web page is a web document which is written in HTML
(hypertext markup language).
• It is said to have brought the world into a small village where
people and devices can communicate to each other
seamlessly.
• WWW has allowed for the access of information that would
have been impossible to find or may have been difficult to find
without the www.
The Internet & World Wide Web(WWW)
• The terms Internet and the World Wide Web are synonymous
in the minds of many, but they have different meanings.
• The Internet is a massive network of networks that connects
millions of computers worldwide.
• Computers connected to the Internet can communicate with
one another with a number of protocols such as HTTP, SMTP
(Simple Mail Transfer Protocol), FTP (File Transfer Protocol),
IRC (Internet relay chat), IM (instant messaging), Telnet and
P2P (peer-to-peer).
• The World Wide Web is a system of interlinked hypertext
documents and programs that can be accessed via the
Internet primarily by using HTTP
Important terms of Web Technology
• Web page
• HTML
• Web Server
• Web Browser
• URL
• Protocol
• Internet Protocol (IP) Address
• HTTP
• XML
• Gateway
• API
Client-Server Model
Continued.....
• Client-server model is a distributed application structure that
partitions tasks or workloads between the providers of a
resource or service, called servers, and service requesters,
called clients Often clients and servers communicate over
a computer network on separate hardware, but both client
and server may reside in the same system.
• A server host runs one or more server programs, which share
their resources with clients.
• A client usually does not share any of its resources, but it
requests content or service from a server.
• Clients, therefore, initiate communication sessions with
servers, which await incoming requests. Examples of
computer applications that use the client-server model
are email, network printing, and the World Wide Web.
Web Browsers
• A Web Browser is an application software used to access, retrieve,
and view information from the World Wide Web (WWW).
• It acts as an interface between the user (client) and the web server,
enabling users to open websites, watch videos, read documents, and
interact with online services.
• The browser sends a request to the web server using HTTP/HTTPS
protocols, receives the response (usually HTML, CSS, JavaScript,
images, etc.) and then renders (displays) the web page on the
screen.
• A web browser allows tab management, bookmarking, history
tracking and extensions for added functionality, while ensuring
security through HTTPS, SSL, and safe browsing features.
• Examples of Popular Web Browsers: Include Google Chrome, Mozilla
Firefox, Microsoft Edge, Apple Safari and Opera, known for their
speed, security, privacy, and advanced browsing features.
History of Web Browsers
• The first web browser, World Wide Web, was invented by
Tim Berners-Lee in 1990 and later renamed Nexus.
• In 1993, Mark Andreessen and his team developed
Mosaic, the first browser to display text and images
together.
• He later created Netscape in 1994. Microsoft introduced
Internet Explorer in 1995, bundled with Windows.
• This led to the development of other browsers like
Mozilla Firefox, Google Chrome, Safari and Opera, each
offering unique features.
How Does It Works?
• When a user accesses a website by typing a URL like https://
[Link]/ into the browser, the browser first
contacts a DNS (Domain Name System) server to translate the
domain name into an IP address, such as [Link]. After
obtaining the IP address, the browser sends a request to the
corresponding web server. The web server processes this
request and responds with the required content, including
HTML, CSS, Images and scripts. The browser then uses this
content to display the webpage to the user.
Web Servers
• A web server is a system either software, hardware or both that
stores, processes, and delivers web content to users over the
Internet using the HTTP or HTTPS protocol.
• When a user’s browser sends a request (like visiting a website),
the web server responds by delivering the appropriate resources,
such as HTML pages, images, videos, or data.
• An HTTP server is a specific type of web server which is
responsible for handling HTTP requests and responses.
• While all HTTP servers are web servers, not all web servers are
limited to HTTP.
• Some web servers may support additional protocols like FTP or
SMTP.
How Does It Works?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Text Formatting</title>
</head>
<body>
<p><b>Bold text:</b> This is <b>National College MCA
Department</b>.</p>
<p><strong>Important text:</strong> <strong>Admissions are now open!
</strong></p>
<p><i>Italic text:</i> Learn <i>Web Technologies</i> and <i>Database
Systems</i>.</p>
<p><em>Emphasized text:</em> <em>Education is the key to
success.</em></p>
<p><mark>Marked text:</mark> <mark>Don’t miss the
registration deadline!</mark></p>
<p><small>Smaller text:</small> <small>This information is
subject to change.</small></p>
<p><del>Deleted text:</del> <del>Old syllabus no longer
applicable.</del></p>
<p><ins>Inserted text:</ins> <ins>New syllabus introduced for
MCA 2025 batch.</ins></p>
<p><sub>Subscript text:</sub> H<sub>2</sub>O (Water)</p>
<p><sup>Superscript text:</sup> X<sup>2</sup> +
Y<sup>2</sup> = Z<sup>2</sup></p>
</body>
</html>
HTML LINK
• HTML Links, also known as Hyperlinks, are used to connect one
web page to another, allowing users to navigate easily between
different pages, websites, or sections within the same page.
• Defined using the <a> (anchor) tag.
• The href attribute specifies the destination URL.
• Links can open in the same tab or a new tab using
the target attribute.
• Can be used to link text, images, or buttons for navigation.
Syntax: <a href="">..........</a>
Example: <a href=“https\\D:\pooja\[Link]”>College
Logo </a>
Images
• The HTML <img> tag is used to embed an image in web
pages by linking them. It creates a placeholder for the
image, defined by attributes like src, width, height, and
alt, and does not require a closing tag.
• There are two ways to insert the images into a webpage:
• By providing a full path or address (URL) to access an
internet file.
• By providing the file path relative to the location of the
current web page file
Syntax: <img>
Example: <img src=“.........” alt=“........”>
• Example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>Image Example</title>
</head>
<body>
<h2>National College MCA Department</h2>
<img src="[Link]" alt="National College Building" width="400"
height="250">
</body>
</html>
Image Attributes
1. Src: Specifies the path or URL of the image.
Example: "images/[Link]“
2. Width: Sets the width of the image (in pixels or %). Example:
"300" or "50%“
3. Height: Sets the height of the image (in pixels or %). Example:
"200" or "30%“
4. Alt: Alternative text shown if the image fails to load. Example:
"Beautiful Landscape“
5. Usemap: Links the image to an image map.
6. Ismap: Indicates image is part of a server-side image map.
7. Decoding: Suggests how browser should decode the image.
Example: "async", "sync", "auto“
8. Referrerpolicy: Controls what referrer info is sent with image
requests. Example: "no-referrer"
<!DOCTYPE html>
<html>
<head>
<title>HTML Image Attributes Example</title>
</head>
<body>
<h2>Example of Image with All Attributes</h2>
<img
src="[Link]
alt="Beautiful nature scenery"
width="400"
height="250"
title="Nature Image"
usemap="#naturemap"
referrerpolicy="no-referrer"
decoding="async"
>
<map name="naturemap">
<area shape="rect" coords="0,0,100,100"
href="[Link] alt="Trees">
<area shape="circle" coords="200,150,50"
href="[Link] alt="River">
</map>
</body>
</html>
LISTS
• An HTML List allows you to organize data on web pages into an
ordered or unordered format to make the information easier to
read and visually appealing.
• HTML Lists are very helpful for creating structured, accessible
content in web development.
• HTML lists organize content using tags like <ul>, <ol> & <li>.
• They improve readability by presenting data in a structured
format.
• There are three types in html list
[Link] List(ul)
[Link] List(ol)
[Link] List(dl)
Unordered List
• An unordered list in HTML is used to display a group of related
items where the order does not matter.
• It is created using the <ul> (unordered list) tag. Each item in the
list is defined using the <li> (list item) tag.
• By default, browsers display unordered lists with bullet points
(•) before each item. The bullet style can be changed to
circles,squares or discs using the type attribute or CSS.
• Unordered lists are often used for navigation menus, feature
lists, and to show information neatly.
• The <ul> tag acts as a container, and the <li> tags represent
individual list items.
• Syntax: <ul type="bullet_style">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li> </ul>
<!DOCTYPE html>
<html>
<head>
<title>Unordered List Example</title>
</head>
<body>
<h2>My Favorite Fruits</h2>
<ul type=“circle”>
<li>Apple</li>
<li>Banana</li>
<li>Orange</li>
<li>Mango</li>
</ul>
</body>
</html>
Ordered List
• An ordered list in HTML is used to display items in a specific
sequence or order
• It is created using the <ol> (ordered list) tag. Each item in the list
is defined using the <li> (list item) tag.
• By default, numbering starts from 1, but it can be changed using
the start attribute. The type attribute allows you to change the
numbering style (e.g., numbers, letters, or Roman numerals).
• Ordered lists are commonly used for step-by-step instructions,
rankings, or procedures.
• You can nest lists inside one another to create multi-level
ordered lists.
• Syntax: <ol type=“ ”>
<li> List1 </li>
<li> List2 </li>
<li> List3 </li> </ol>
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Coffee Menu</title>
</head>
<body>
<h2>☕ Coffee Menu</h2>
<ol type="1">
<li>Espresso</li>
<li>Cappuccino</li>
<li>Latte</li>
<li>Mocha</li>
<li>Americano</li>
</ol>
<h3>Special Menu (Alphabetical Order)</h3>
<ol type="A">
<li>Cold Coffee</li>
<li>Caramel Macchiato</li>
<li>Vanilla Latte</li>
</ol>
<dt>Mocha</dt>
<dd>A chocolate-flavored coffee made with espresso, milk,
and cocoa or chocolate syrup.</dd>
<dt>Americano</dt>
<dd>Espresso diluted with hot water for a lighter flavor and
larger cup size.</dd>
</dl>
</body>
</html>
HTML TABLES
• An HTML table is used to organize and display data in rows and
columns. It helps present information in a structured, grid-like
format — similar to an Excel sheet.
• Tables are created using the <table> tag along with <tr> (table
row), <th> (table header), and <td> (table data).
Syntax: <table>
<tr>
<th>Heading 1</th>
<th>Heading 2</th> </tr>
<tr>
<td>Data 1</td>
<td>Data 2</td> </tr>
</table>
• Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML Table Example</title>
</head>
<body>
<h2>National College MCA Department - Student Details</h2>
<table border="1">
<tr>
<th>Student Name</th>
<th>Register Number</th>
<th>Branch</th>
</tr>
<tr>
<td>Priya Sharma</td>
<td>21MCA01</td>
<td>MCA</td>
</tr>
<tr>
<td>Rahul Kumar</td>
<td>21MCA02</td>
<td>MCA</td>
</tr>
<tr>
<td>Neha Patil</td>
<td>21MCA03</td>
<td>MCA</td>
</tr>
</table>
</body>
</html>
Progress Tags
• The <progress> tag in HTML is used to display the progress of
a task — such as file downloading, uploading or loading
completion — in a visual progress bar format.
• It represents how much of a task has been completed out of a
total value.
Syntax: <progress value="current" max="total"></progress>
• value → specifies how much of the task is completed.
• max → specifies the total value (the full completion point).
• Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Progress Tag Example</title>
</head>
<body>
<h3>File Download Progress:</h3>
<progress value="70" max="100"> 70% </progress> 70%
</body>
</html>
Media Tags
• Media tags in HTML are used to embed multimedia content such as
audio, video, and images directly into a web page.
• They make web pages more interactive and engaging by allowing
users to listen to music, watch videos or view visuals without leaving
the page.
• Common Media Tags in HTML:
– <audio> → Used to embed sound or music.
– <video> → Used to embed video clips or movies.
– <source> → Specifies the media file path and type (used inside
<audio> or <video>).
Syntax: 1. Audio Tag Syntax
<audio controls>
<source src="audiofile.mp3" type="audio/mpeg">
Your browser does not support the audio element. </audio>
2. Video Tag Syntax
<video controls width="400" height="250">
<source src="videofile.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
• Explanation:
– controls → adds play, pause, and volume buttons.
– src → specifies the file path of the media.
– type → defines the file format.
– The fallback text (inside the tag) appears if the browser
doesn’t support the media element.
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Media Tags Example</title>
</head>
<body>
<h2>Media Tags Example - National College MCA
Department</h2>
<h3>🎵 Audio Example:</h3>
<audio controls>
<source src="college_song.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<h3>🎥 Video Example:</h3>
<video controls width="400" height="250">
<source src="campus_tour.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
</html>
HTML FORMS
• HTML forms let users send information from a web page to a
server (for signup, login, search, feedback, file upload, etc.).
• A form groups input controls (text fields, checkboxes, radio
buttons, selects, files, buttons) and tells the browser how and
where to send the data.
Syntax: <form action="/submit" method="post“
enctype="multipart/form-data" autocomplete="on"
novalidate> <!-- form controls --> </form>
— action — URL where the form data is sent. Example: /submit
or [Link]
– method — HTTP method: GET (data appended to URL) or
POST (data in request body). Use POST for sensitive or large
data.
– enctype — Encoding type for form data. Common values:
application/x-www-form-urlencoded (default)
multipart/form-data (use when uploading files) text/plain
– autocomplete — on or off — browser autofill behavior.
– novalidate — if present, disables browser's built-in validation.
• Common form controls / tags
i. <input> — the most used control
<input type="text" name="fullName" placeholder="Full name"
required>
• Important type values:
• text — single-line text
• password — masked input
• email — expects email format, built-in validation
• tel — telephone number
• number — numeric input with min, max, step
• url — expects URL
• date, datetime-local, time — date/time pickers
• checkbox — boolean option
• radio — choose one from a group (same name)
• file — file upload (enctype="multipart/form-data" required)
• hidden — hidden value
• submit — submit button
• reset — reset form fields
• button — generic button (use with JS)
Common attributes:
• name — key used when data is sent (required for submission)
• id — used to associate <label> and for scripting/CSS
• value — default or submitted value
• placeholder — hint text shown when empty
• required — field must be filled
• readonly / disabled
• min, max, step (for number, date)
• pattern — regex for client-side validation
• maxlength, minlength
ii. <label> — accessible labels
Syntax: <label for="email">Email address</label>
<input id="email" type="email" name="email">
Use <label> with for="id" or wrap the input
inside <label> for better accessibility
iii. <textarea> — multi-line text
Syntax: <textarea name="message" rows="5" cols="40"
placeholder="Your message"></textarea>
The <textarea> tag is used to create a multi-line text input
box where users can type longer messages or comments.
rows and cols set its size, and placeholder displays a hint
when the box is empty.
iv. <select> and <option> — dropdown lists
Syntax: <select name="course" required>
<option value="">Select course</option>
<option value="mca">MCA</option>
<option value="msc">MSc</option>
</select>
Add multiple attribute to allow multiple selections.
v. <fieldset> and <legend> — group related controls
Syntax: <fieldset>
<legend>Personal Details</legend>
<!-- inputs --> </fieldset>
The <fieldset> tag is used to group related form elements
together, creating a clear section in a form.
The <legend> tag provides a title for that group, making the form
more organized and readable.
vii. <button> — clickable buttons
Syntax: <button type="submit">Submit</button>
<button type="button" onclick="doSomething()">Click</button>
type="submit", type="reset", or type="button“
• type="submit" → Sends the form data to the server when
clicked.
• type="reset" → Clears all form fields and resets them to their
default values.
• type="button" → A normal button that performs a custom
action (usually with JavaScript), but does not submit the form.
viii. <input type="submit">
Syntax: <input type="submit" value="Send">
The <input type="submit"> tag creates a submit button that
sends the form data to the server.
The value="Send" sets the text displayed on the button.
3. Client-side validation attributes
• required → Makes the field mandatory; the form cannot be
submitted unless it is filled.
• pattern → Uses a regular expression to check if the input
follows a specific format (e.g., only letters).
• type="email" / type="url" → Automatically checks if the input
is a valid email address or URL.
• min, max, step → Used for number or date inputs to set
allowed minimum, maximum, and step values.
• maxlength, minlength → Restrict how many characters a user
can type into a field.
• Example:
<!DOCTYPE html>
<html lang="en">
<head>
<title>National College MCA - Admission Enquiry</title>
</head>
<body>
<h1>Admission Enquiry - National College MCA</h1>
<form action="/submit-enquiry" method="post"
enctype="application/x-www-form-urlencoded“
autocomplete="on">
<fieldset>
<legend>Personal Details</legend>
<label for="fullname">Full Name</label><br>
<input id="fullname" name="fullname" type="text"
placeholder="Pooja H S" required><br><br>
<label for="email">Email</label><br>
<input id="email" name="email" type="email"
placeholder="you@[Link]" required><br><br>
<label for="phone">Phone</label><br>
<input id="phone" name="phone" type="tel"
placeholder="9876543210" pattern="[0-9]{10}" required>
<small>Format: 10 digits</small><br><br>
</fieldset>
<fieldset>
<legend>Course Details</legend>
<label for="course">Interested Course</label><br>
<select id="course" name="course" required>
<option value="">-- Select --</option>
<option value="mca">MCA</option>
<option value="pgdca">PGDCA</option>
</select><br><br>
<label>Preferred Shift</label><br>
<input type="radio" id="shift_m" name="shift"
value="morning" checked>
<label for="shift_m">Morning</label>
<input type="radio" id="shift_e" name="shift"
value="evening">
<label for="shift_e">Evening</label><br><br>
</fieldset>
<fieldset>
<legend>Additional</legend>
</body>
</html>