Web Technologies - Solved Important Topics & Questions: Compulsory Short Notes (Question 1)
Web Technologies - Solved Important Topics & Questions: Compulsory Short Notes (Question 1)
& Questions
This document provides detailed explanations for the frequently asked Web Technology
topics identified from the 2021, 2022, and 2023 exam papers, presented in an exam-like
style.
Definition: A URL is the unique address used to locate resources (web pages,
images, files) on the Internet.
Structure: Typically includes:
Protocol/Scheme: http , https , ftp (defines how to access).
Host/Domain Name: www.example.com (identifies the server).
Port: (Optional) e.g., :80 (specific gate).
Path: /path/to/resource.html (location on the server).
Query String: (Optional) ?param=value (sends data to the server).
Fragment: (Optional) #section (points to a specific part of the page).
6. Web Server
Definition: Software and/or hardware that stores website files and responds to
requests from web browsers (clients) using HTTP.
Function: Listens for HTTP requests, processes them (locating files or running
scripts like PHP), and sends back HTTP responses containing the requested
resources (HTML, CSS, images, etc.).
Examples: Apache HTTP Server, Nginx, Microsoft IIS.
7. Internet
Definition: The standard markup language for creating web pages and defining
their structure and content.
Mechanism: Uses tags (e.g., <h1> , <p> , <a> ) to structure content, which
browsers interpret to render the page.
Definition Lists: Created using <dl> (list), <dt> (term), and <dd>
(description) tags to present items and their definitions.
13. Network
14. Query
Cascading & Specificity: The "cascade" refers to the order rules are
applied: Browser defaults -> User styles -> Author styles (External ->
Internal -> Inline). Specificity determines which rule wins if multiple
rules target the same element (e.g., ID selectors are more specific than
class selectors, which are more specific than type selectors).
!important can override specificity.
Selectors: Patterns to target HTML elements: Type ( p ), Class ( .info ),
ID ( #header ), Attribute ( [type="text"] ), Pseudo-classes ( :hover ),
Pseudo-elements ( ::before ), Combinators (descendant , child > ,
adjacent + , sibling ~ ), Universal ( * ), Grouping ( , ).
Protocols:
SMTP (Simple Mail Transfer Protocol): For sending emails between
servers. Ports 25, 587, 465.
POP3 (Post Office Protocol version 3): For retrieving emails
(typically downloads and deletes from server). Ports 110, 995.
IMAP (Internet Message Access Protocol): For accessing emails on
the server (keeps emails on server, syncs state). Ports 143, 993.
Planning Steps: Define Goals -> Target Audience -> Content Strategy ->
Sitemap/IA -> Wireframing/Mockups -> Technology Selection ->
Design/Development -> Testing -> Deployment & Maintenance.
Navigation Principles: Clarity, Consistency, Simplicity, Context
(feedback), Accessibility.
Navigation Types: Global (main menu), Local (sub-menu), Contextual (in-
content links), Breadcrumbs (path), Footer.
Syntax Rules: Must have one root element; all elements need closing tags
or be self-closing ( <tag/> ); properly nested; case-sensitive tags;
attribute values quoted; special characters ( < , > , & , etc.) escaped
( < , > , & ).
Tags & Elements: Elements are the structural units (e.g., <book>...
</book> ). Tags ( <book> , </book> ) mark the start and end. Elements
contain content (text, other elements) and optionally attributes. Empty
elements can use self-closing tags ( <image/> ).
Attributes: Provide metadata within the start tag ( <book isbn="123"> ).
Values must be quoted.
XML Declaration: Optional first line: <?xml version="1.0" encoding="UTF-
8" standalone="yes"?> . Specifies XML version (required if decl.
present), character encoding (optional, UTF-8 default), and if external
DTD is needed (standalone, optional).
Concept: This is a specific use case of AJAX with PHP (or other server-
side tech) where the core server-side task involves interacting with a
database.
PHP+DB Role: The PHP script connects to a database (e.g., MySQL using
mysqli/PDO). It constructs and executes SQL queries (SELECT, INSERT,
UPDATE, DELETE) based on data received from the AJAX request, using
prepared statements to prevent SQL injection. It fetches results (for
SELECT) or checks success (for others), processes these results, formats
them (usually as JSON), closes the DB connection, and echoes the JSON
response.
JS Role: The JavaScript callback receives the JSON data (e.g., an array
of search results, status message), parses it, and updates the DOM to
display the information (e.g., populate a table, show success/error
message).