Iwt Pyq
Iwt Pyq
j) What is the importance of Q) Explain the use of Active X browser sends an HTTP request to
XML (eXtensible Markup Frame tag in HTML? controls in dynamic web pages the server, which processes it and
Language) is a markup language The <frame> tag was used to ActiveX controls enhance returns the web page content.
used to store and transport data. divide the browser window into functionality like file access, This modular, layered architecture
It is both human-readable and multiple sections, each loading a media playback, and form allows global access to
machine-readable, and supports separate HTML document. It’s controls in Internet Explorer but distributed content using a
custom tags. deprecated in HTML5 for better are platform-dependent and pose standardized protocol.
layout practices. security risks; now largely
b) What is Cascading Style deprecated. B) How ASP request differ from
Sheet? K) Differentiate between a static HTML request?
Cascading Style Sheets (CSS) and dynamic website with R) How can you integrate ASP (Active Server Pages)
define how HTML elements are examples Animations using CSS3? Give requests differ from HTML
displayed. They control layout, Static websites show fixed example requests primarily in server-side
fonts, colors, and design, allowing content (e.g., portfolio.html). Use @keyframes and animation processing. An HTML request
separation of content and visual Dynamic websites generate properties to animate elements. simply retrieves a static file (e.g.,
presentation. content on-the-fly using server- Example: @keyframes fade { .html) from the server and
side scripting (e.g., news site like from {opacity: 0;} to {opacity: 1;} } displays it. No server-side logic is
c) What is website Hosting? BBC, social media like Facebook). div { animation: fade 2s; } executed.
Website hosting is a service that In contrast, an ASP request
stores website files on a server, L) State the advantages of S) What is the purpose XML, targets a .asp file containing
making them accessible on the TCP/IP over UDP for normalization? server-side scripts (usually
internet via a domain name for applications XML normalization ensures VBScript or JavaScript). When a
users to view. TCP/IP provides reliable, ordered, consistency by removing client requests an ASP page, the
and error-checked delivery of redundant or insignificant server processes the embedded
d) What is HTTP? data, making it ideal for differences in structure or scripts first, generates HTML
HTTP (HyperText Transfer applications like web browsing, formatting, aiding data output dynamically, and then
Protocol) is the protocol used for email, and file transfers, unlike comparison, parsing, validation, sends the result to the browser.
transmitting web pages over the UDP, which is connectionless and and standardized communication The client never sees the script—
internet. It defines how messages unreliable. across platforms. only the rendered HTML.
are formatted and transmitted
Key differences:
between clients and servers. M) How external style sheet is T) Write the function PHP used
-HTML is static; ASP is dynamic.
useful in webpage design to find position of a character in
e) What is client side scripting? External CSS separates content string? Give example -HTML files are sent directly; ASP
Client-side scripting runs scripts from design, allows reusability Use strpos() to find character files are processed before
in the user’s browser, enabling across multiple pages, simplifies position. sending.
dynamic content changes without maintenance, reduces code Example: -ASP supports server-side
server interaction. JavaScript is a redundancy, and ensures a echo strpos("Welcome", "e"); // database interaction; HTML does
common language used for client- consistent look and feel for the Output: 1 not.
side scripting. entire website. It returns the index of the first
occurrence. C) How web request works?
f) How web request works? N) How the HTTPS works Explain.
A user sends a request via differently from HTTP for 6 Marks When a user enters a URL in a
browser to a web server using websites? browser, a web request is
HTTP. The server processes it and HTTPS encrypts data using A) Explain the architecture of
initiated. Here’s how it works
sends back the appropriate web SSL/TLS, ensuring secure WWW in details.
step-by-step:
page or data response. communication between browser The World Wide Web (WWW) is a
DNS Resolution – The browser
and server, while HTTP sends data system of interlinked hypertext
g) What is IIS? translates the domain into an IP
as plain text, which can be documents accessed through the
IIS (Internet Information Services) address via DNS.
intercepted or altered during internet. Its architecture is client-
is a web server software created TCP Connection – A TCP
transmission. server based. Clients (usually
by Microsoft for hosting websites connection is established
browsers) send requests to
and web applications on Windows between client and server.
O) How to perform text servers, which respond with
servers using protocols like HTTP, HTTP Request – The browser
manipulation in CSS? resources like HTML, CSS, and
HTTPS, FTP. sends an HTTP (or HTTPS) request
CSS provides properties like text- JavaScript. The core components
for the resource.
transform, letter-spacing, text- include:
h) What is the use of Global asa Server Processing – The web
align, text-decoration, and white- Web Clients – Software like
file? server receives the request and
space to manipulate text browsers that initiate requests.
Global.asa is used in ASP processes it (e.g., executing
appearance such as case, Web Servers – Host web
applications to declare objects, scripts or retrieving files).
spacing, alignment, and resources and respond to client
variables, and include event- HTTP Response – The server
underlining. requests.
handling procedures for sends back a response containing
HTTP Protocol – Facilitates
application-level and session- P) Differentiate between Java status code (e.g., 200 OK),
communication between clients
level events like start and end. Applet and a Web Application headers, and content (HTML,
and servers.
Java Applets run in a browser's CSS, etc.).
i) What is cookie? URLs – Uniform Resource
JVM, now obsolete. Web Rendering – The browser
A cookie is a small piece of data Locators uniquely identify
applications use interprets and displays the
stored in the user’s browser by a resources.
HTML/CSS/JavaScript with server- content.
website to remember HTML – The primary language for
side logic, platform-independent, Modern web requests may involve
preferences, login status, or track web page structure.
and are widely used in modern additional calls (AJAX, APIs,
user behavior across sessions. DNS – Translates domain names
web development. CDNs). The entire process takes
into IP addresses.
The client types in a URL, the
milliseconds, enabling a useful in web and data-driven Services) is a web server all browser interactions in
seamless user experience. applications. developed by Microsoft for JavaScript.
hosting websites and web
D) What is MMC? Explain F) What is Apache? Explain the applications on Windows. K) What is URL Re-Write?
features of MMC. architecture of Apache server Features: Explain with example.
MMC (Microsoft Management Apache is an open-source web Support for Multiple Protocols – URL rewriting is the process of
Console) is a Windows-based server software maintained by the HTTP, HTTPS, FTP, SMTP. altering the structure of a URL to
framework that provides system Apache Software Foundation. It’s ASP.NET Integration – Runs .NET make it more readable and SEO-
administrators with a centralized one of the most widely used applications seamlessly. friendly without changing the
interface to manage hardware, servers globally, known for Security Features – actual file path.
software, and network flexibility and performance. Authentication, authorization, Example:
components. Architecture: SSL, request filtering. Original URL:
Features of MMC: Modular Design – Core server Application Pools – Isolate example.com/product.php?id=12
Snap-in Architecture – Supports functionality is minimal, with applications for better 3
various tools (snap-ins) like Event features added via modules (e.g., performance and security. Rewritten URL:
Viewer, Device Manager, and IIS. mod_ssl, mod_rewrite). Logging and Diagnostics – example.com/product/123
Unified Interface – Provides a Multi-Processing Modules Monitors request processing and Using Apache's .htaccess:
consistent GUI for managing (MPMs) – Handle request errors. RewriteEngine On
different services. processing using different models FTP Server – Built-in support for RewriteRule ^product/([0-9]+)$
Custom Consoles – Admins can (e.g., prefork, worker). file transfer. product.php?id=$1
create customized consoles for Configuration Files – Managed Remote Management – Benefits:
specific tasks. using httpd.conf and .htaccess for Administered via IIS Manager or -Better user experience.
Role-Based Access – Allows fine-tuned control. PowerShell. -Improved search engine
delegation of control to different Request Processing – Follows IIS is used in enterprise optimization (SEO).
users. phases: URI translation, environments for its integration -Hides internal script logic.
Remote Management – Supports authentication, authorization, with Windows services and URL rewriting is supported in IIS,
managing other computers over response generation. security capabilities. Apache, and many frameworks.
the network. Port Listener – Listens on ports
Extensibility – Developers can (default 80 for HTTP, 443 for I) Explain importance of Frame L) Explain how Request-
build custom snap-ins. HTTPS). tag in HTML Response mechanism works
MMC is accessed by running Virtual Hosts – Supports multiple The <frame> tag was used in over internet
mmc.exe and is widely used for websites on a single server. HTML to divide the browser The request-response
centralized system management, window into multiple sections, mechanism is fundamental to
reducing administrative overhead. Apache is highly customizable each displaying a different web communication. When a user
and supports dynamic content via document. It allowed navigation types a URL and presses Enter,
E) Explain XSL and XSLT in detail CGI, PHP, and other interfaces. menus to stay static while content the browser initiates an HTTP
with example. changed. request:
XSL (eXtensible Stylesheet G) Explain AJAX briefly. DNS Lookup – Resolves the
Importance:
Language) is a family of AJAX (Asynchronous JavaScript domain to an IP address.
-Enabled multi-panel layouts
languages used to transform and and XML) is a web development TCP Connection – Browser opens
without reloading the whole page.
render XML documents. XSLT technique that allows data to be a connection to the server.
-Simplified navigation with
(XSL Transformations) is a part of sent and retrieved from a server Request Sent – HTTP GET (or
persistent menus.
XSL used to transform XML into asynchronously without reloading POST) request is sent to the
Drawbacks:
HTML, plain text, or another XML the page. server.
-Poor SEO and bookmarking.
format. Key Features: Server Processes – The server
-Complex to maintain.
Example: -Uses JavaScript and handles the request, possibly
-Deprecated in HTML5 in favor of
XML: XMLHttpRequest object. querying databases or executing
<iframe> and modern CSS/JS
<book> -Enables dynamic, interactive scripts.
frameworks for layout.
<title>Web Technologies</title> web applications. Response Sent – The server
Although outdated, frames
<author>John Doe</author> -Reduces server load and sends back an HTTP response
influenced the development of
</book> improves user experience. with a status code and content.
modular web design.
XSLT: Example: Browser Renders – Browser
<xsl:stylesheet let xhr = new XMLHttpRequest(); J) Explain Java Script Object: parses and displays the content.
xmlns:xsl="http://www.w3.org/19 xhr.open("GET", "data.json", true); Window, Document. This cycle is stateless and
99/XSL/Transform" version="1.0"> xhr.onload = function() { 1. Window Object repeated for each request unless
<xsl:template match="/book"> if (xhr.status == 200) { The global object representing the sessions or cookies are used. It’s
<html> document.getElementById("outp browser window. It provides the foundation of all web
<body> ut").innerHTML = methods like alert(), setTimeout(), interactions, ensuring data flow
<h1><xsl:value-of xhr.responseText; and properties like innerWidth. between clients and servers over
select="title"/></h1> } Example: window.alert("Hello!"); the internet.
<p>Author: <xsl:value-of }; 2. Document Object
select="author"/></p> xhr.send(); Represents the HTML content of m) What is the building model
</body> AJAX is widely used in real-time the page. It allows access and and structure of a website?
</html> applications like live search, chat manipulation of elements, A website's structure includes a
</xsl:template> systems, and dynamic content attributes, and events. front-end (UI) and back-end
</xsl:stylesheet> loading. Example: (server/database). The building
This transforms XML into a document.getElementById("demo model involves:
H) What is IIS? Explain different -HTML for content structure
readable HTML format. XSLT ").innerHTML = "Updated!";
features of IIS -CSS for styling
enables XML content These two are essential in the
IIS (Internet Information
presentation in various formats, DOM hierarchy and control nearly
-JavaScript for interactivity finally: Executes always console.log(user); // john Validation ensures secure and
Server-side scripting (e.g., PHP) Example: localStorage persists across formatted data before
for logic try { let x = y + 5; // y not defined sessions submission.
-Database (e.g., MySQL) for data } catch (err) { sessionStorage lasts until tab
storage console.log("Error: " + closes v) Explain the concept of Box
A typical structure includes: err.message); Pure HTML can't handle sessions, sizing and Flexbox with
Home page: Entry point } finally { but JavaScript bridges the gap on example.
Navigation: Menu or header console.log("Execution the client side. Box-sizing: Controls how
Content pages: About, Contact, complete."); } dimensions are calculated.
Services, etc. This mechanism prevents crashes s) Explain the usage of APIs in .box {
Footer: Legal and contact info and helps manage unexpected Web pages with an example box-sizing: border-box;
All files are organized in conditions during runtime. APIs (Application Programming width: 100px;
directories (images, CSS, JS, etc.) Interfaces) allow web pages to padding: 10px; }
and linked via hyperlinks. A clear P) Explain the concept of communicate with external data Flexbox: Makes layout alignment
structure enhances usability, objects of JavaScript. Discuss or services. easier.
SEO, and scalability. its different types with Example: Fetching weather .container {
examples data: display: flex;
n) Compare and ContrastHTML Objects in JavaScript are key- fetch("https://api.weatherapi.com justify-content: center;
and SGML with examples value pairs used to store /v1/current.json?key=APIKEY&q=L align-items: center; }
SGML (Standard Generalized collections of data and ondon") It’s used for responsive design,
Markup Language) is a meta- functionality. .then(res => res.json()) aligning elements dynamically in
language used to define markup Types of Objects: .then(data => console.log(data)); rows or columns.
languages like HTML and XML. It’s Built-in: Math, Date, String APIs are used for real-time data
complex and designed for large, User-defined: (weather, maps, payments) and w) Discuss presentation
technical documents. let person = { enhance functionality without standards in XML with
HTML (HyperText Markup name: "John", storing data locally. examples.
Language) is a predefined SGML age: 30, XML does not present data
application designed for greet: function() { t) Explain the file upload using visually. Use XSLT to transform
displaying documents in web return "Hello " + this.name; } PHP with example XML into HTML.
browsers. }; To upload files, use an HTML form Example XML:
DOM objects: Represent HTML and PHP script. <book><title>XML
Featur SGML HTML elements (document, window) HTML: Guide</title></book>
e Objects allow organized code and <form action="upload.php" XSLT:
dynamic data access. method="post" <xsl:template match="book">
Type Meta Marku enctype="multipart/form-data"> <h1><xsl:value-of
language p q) Discuss the role and <input type="file" name="file"> select="title"/></h1>
langua significance of CSS in web <input type="submit" </xsl:template>
ge designing. DifferentiateClass value="Upload"> This separates content (XML) from
and Id selector in CSS with </form> presentation (HTML via XSLT),
Flexibil Highly Fixed
example. PHP (upload.php): ensuring reusable, styled data
ity customiz tags
CSS (Cascading Style Sheets) if(move_uploaded_file($_FILES['fil outputs.
able and
controls presentation—layout, e']['tmp_name'], "uploads/" .
struct x) How to connect MySQL
colors, fonts—making websites $_FILES['file']['name'])) {
ure database to PHP? Explain with
visually appealing and consistent. echo "File uploaded.";
Benefits: } else { an example
Use Tech Web
-Separates content from design echo "Upload failed."; } PHP connects to MySQL using
Case publishin page
-Reduces redundancy $_FILES handles uploaded file mysqli or PDO.
g, creatio
-Supports responsive design data, and move_uploaded_file() Example (mysqli):
database n
Class vs ID: saves it to the server. $conn = new mysqli("localhost",
s
Class: Reusable, denoted by . "root", "", "testdb");
Example SGML: ID: Unique, denoted by # u) illustrate the concept of if ($conn->connect_error) {
<!ELEMENT doc (#PCDATA)> Example: Email and Password validation die("Connection failed: " . $conn-
<doc>This is SGML.</doc> .box { color: red; } in webpages. >connect_error); }
Example HTML: #header { font-size: 20px; } Use HTML5 and JavaScript to $sql = "SELECT * FROM users";
<p>This is HTML.</p> <div class="box">Text</div> validate. $result = $conn->query($sql);
HTML is widely used, whereas <div id="header">Heading</div> HTML: while($row = $result-
SGML is mostly historical or for <input type="email" required> >fetch_assoc()) {
specialized documentation. r) Is session handling in HTML <input type="password" echo "Name: " . $row["username"]
Page possible with the help of minlength="6"> . "<br>"; }
o) What is Exception Handling in JavaScript? Justify your answer JavaScript: $conn->close();
JavaScript? How do try, catch, with examples. let email = This script connects to testdb,
throw blocks operate explain Yes, using Web Storage APIs: document.getElementById("email fetches all users, and displays
using a programs? localStorage and sessionStorage. ").value; usernames. mysqli provides
JavaScript uses try, catch, throw, Example: let password = methods for querying and error
and finally for error handling. sessionStorage.setItem("usernam document.getElementById("pass" handling. Always validate and
try: Code that might cause an e", "john"); ).value; sanitize input for security.
error let user = if (!email.includes("@"))
catch: Handles the error sessionStorage.getItem("usernam alert("Invalid email");
throw: Custom error e"); if (password.length < 6)
alert("Password too short");
16 Marks Writing XML: ASP (Active Server Pages) is a You can write JavaScript directly
<student> server-side scripting technology within HTML using the <script> tag
Q1. Give the difference between <name>John</name> developed by Microsoft. or in separate .js files.
Client Side Scripting and Server <age>21</age> Benefits of ASP: Example:
Side Scripting. Write a short <course>Web -Supports dynamic content and <!DOCTYPE html>
note on HTML Technology</course> database connectivity. <html>
Client-Side Scripting refers to </student> -Executes on the server; keeps <head><title>JavaScript
code executed in the user’s Rules: source code hidden. Example</title></head>
browser after the page is loaded. -One root element. -Easy integration with Microsoft <body>
It is used for form validation, -Tags must be properly closed. technologies like IIS and SQL <p id="demo">Click the
dynamic content, UI interactivity, -Case-sensitive. Server. button!</p>
etc. JavaScript is the most -Must be well-formed. -Supports VBScript and JScript for <button
common language used. Goals of XML: scripting. onclick="changeText()">Click
Server-Side Scripting executes -Simple to use and understand. -Can manage sessions, cookies, Me</button>
on the web server before the -Support for a wide variety of and user authentication. <script>
content is sent to the browser. It applications. Drawbacks of ASP: function changeText()
handles database operations, -Compatible with SGML. -Platform dependency – Best document.getElementById("demo
session management, and -Platform- and language- suited for Windows. ").innerHTML = "Hello from
content generation. Examples independent data sharing. -Slower compared to newer JavaScript!"; }
include PHP, ASP.NET, and XML Schema: technologies like ASP.NET. </script>
Node.js. XML Schema defines the -Less secure if not coded </body>
structure and data types of an properly. </html>
Featur Client- Server-
XML document. It ensures data -Obsolete – Replaced largely by This simple script changes the
e Side Side
validity and consistency. Unlike ASP.NET and modern frameworks. paragraph text when the button is
Scriptin Scriptin
DTD, schemas support data types -Limited support and community clicked. JavaScript enables form
g g
(e.g., string, integer). due to its age. validation, dynamic content
Execution In the On Example: <xs:element loading (AJAX), animations, and
name="age" type="xs:integer"/> Q4 What is JavaScript? State the complex web application logic,
browser the
XML Parsing: difference between JavaScript making it a core technology in
server
Parsing means reading and and Java. How to develop Java modern web development.
Spee Fast, no Depend converting XML into readable or Script? Explain with example
d server s on usable form by applications. JavaScript is a lightweight, Q5. Discuss how mark-up
roundtri server DOM Parser reads the entire XML interpreted scripting language languages are different from
p load and stores it in memory as a tree. primarily used for enhancing web scripting languages? Create a
SAX Parser reads XML pages by making them interactive web page using HTML
Security Less More sequentially and is memory- and dynamic. It runs on the client containing image, hyperlink,
secure secure efficient. side and is supported by all marquee, table, frameset, radio
modern web browsers. button, textbox, username,
Example JavaScri ASP, XML parsing is essential for Differences between JavaScript password and forgot password,
s pt PHP, processing data in web services, and Java: submit fields.
Pytho configuration files, and Markup languages define the
n communication protocols. Feature JavaScript Java structure and presentation of
content. They use tags to format
Short Note on HTML: Q3 What is HTML file? List the Typ Scriptin Programmi
and organize text, images, links,
HTML (HyperText Markup Advantages and limitation of e g ng language
and other elements. HTML is the
Language) is the standard HTML State the benefits and languag
most common markup language
language for creating web pages. "drawback of ASP e
for web pages.
It structures content using An HTML file is a text file with Scripting languages, such as
elements like headings, Platfor Browse JVM
.html or .htm extension that JavaScript, provide logic and
paragraphs, links, and images. m r (Java
contains HTML code. It structures interactivity to web pages. They
HTML5 is the latest version, Virtual
web content using tags and is can manipulate the DOM, handle
supporting multimedia and Machine
interpreted by web browsers to events, perform calculations,
semantic elements. HTML is not a )
render websites. validate forms, and dynamically
programming language but a Advantages of HTML: update content without reloading
Compila Interpre Compi
markup language used with CSS -Easy to learn and implement. the page.
tion ted led
and JavaScript to build fully -Supported by all browsers.
functional web applications. -Platform-independent. Usa Web Applicatio Featur Marku Scriptin
-Integrates well with CSS and ge interacti n e p g
Q2. What is XML? Explain how to JavaScript. vity developm Langua Languag
write an XML document? What -Lightweight and fast to load. ent ge e (e.g.,
are the goals of XML? Clearly Limitations of HTML: (e.g., JavaScri
explain the XML Schema and -Static content – No real-time Synta Lightweig Verbose HTML) pt)
XML parsing in detail. processing. x ht and
XML (eXtensible Markup -Lacks security features. structur Functio Structu Logic
Language) is a markup language -Cannot connect to databases ed n re and and
used to store, transport, and directly. layout interacti
share data across different -Difficult to maintain large Though they share similar syntax on
systems. It is both human- and projects. (C-style), they are fundamentally
machine-readable and supports -Limited control over design different in functionality and use.
custom tags. without CSS. Developing JavaScript:
Executi Parsed Execute the precedence Rule for the Q7. Platfor Windo Cross-
on by d by same. What are subgroup m ws-only platform
browse browser selectors in CSS? Give example. a) Write down the conditions to
r (client- Ways to Add CSS: convert an XML document a well Securit Less More
side) Inline CSS: Directly in HTML tag formed XML document. Discuss y secure sandbox
using the style attribute. the difference between the XML ed
Syntax Tags Stateme <p style="color:red;">Hello</p> attributes and elements with
nts and examples. Write down the Langua Any Java
Internal CSS: Inside <style> tag in
function problems associated with using ge COM-
the HTML head.
s XML attributes. compli
<style> p { color: blue; } </style>
Conditions for Well-formed ant
External CSS: Using a separate
Output Visual Behavior XML:
.css file linked via <link> tag.
structu and One root element.
<link rel="stylesheet"
re interacti Properly nested tags.
href="style.css"> Q8. a ) What are variables in
vity Closing all tags.
Precedence Rule (Highest to PHP? Describe the rules for
Lowest): Case-sensitive tags. declaring and using variables in
HTML Code Example:
Inline CSS Quoted attribute values. PHP How error handling in PHP
<!DOCTYPE html>
Internal CSS Proper declaration (optional): does occur? Discuss the
<html>
External CSS <?xml version="1.0"?> functions used for it.
<head><title>Demo
Browser default styles Elements vs Attributes: Variables in PHP:
Page</title></head>
<frameset cols="70%,30%"> Subgroup Selectors in CSS: Begin with $ (e.g., $name).
Feat Element Attribu
<frame src="main.html" These refer to selectors that target Case-sensitive.
ure te
name="mainFrame"> specific groups of elements within Dynamically typed.
<frame src="side.html" a parent. Defi Holds Holds Rules:
name="sideFrame"> Example: nitio data/conte metada Start with a letter or _.
</frameset> div p { n nt ta Cannot start with a number.
</html> color: green; } about No spaces allowed.
main.html (main content): This targets all <p> inside <div> elemen Example: $name = "John";
<!DOCTYPE html> only. ts Error Handling in PHP:
<html> Types: Notice, Warning, Fatal.
b) Differentiate among static, Synt <name>Jo <user Functions:
<body>
dynamic, and active WebPages ax hn</name name=" error_reporting(): Set error levels.
<h1>HTML Demo</h1>
with suitable examples. > John"/> set_error_handler(): Custom
<img
src="https://via.placeholder.com/ handler.
Type Descript Exampl Problems with Attributes:
100" alt="Sample Image"> try...catch: For exceptions.
ion e Harder to extend or add nested
<p><a Example:
structures. try {
href="https://example.com">Visit Static Fixed about.h
Can’t have multiple values easily. throw new Exception("Error!");
Site</a></p> content, tml
Elements are better for } catch (Exception $e) {
<marquee>Welcome to the demo same for
hierarchical data. echo $e->getMessage(); }
page!</marquee> all users.
<table border="1"> Written b) What is Active X? Write down b) Compare GET and POST
<tr><th>ID</th><th>Name</th></ in HTML. its functionalities. How it is method in PHP? What is form
tr> different from a Java Applet?
Dyna Content news.ph validation in PHP? Discuss with
<tr><td>1</td><td>John</td></tr Explain with example.
mic changes p example.
> ActiveX:
based on showing GET Method:
</table> Microsoft technology.
server- user- Sends data via URL.
<form action="submit.php" Works only in Internet Explorer.
side specific Limited characters.
method="post"> Embedded using <object> tag.
code info Not secure.
Username: <input type="text" Can access Windows system
(e.g., POST Method:
name="username"><br> components (security risk).
PHP, Sends data in HTTP body.
Password: <input Java Applet:
ASP). More secure and supports large
type="password" Platform-independent. data.
name="password"><br> Runs inside a Java VM.
Active Client- A page Example Form:
Gender: <input type="radio" Embedded with <applet>
side with <form method="post">
name="gender" value="M">Male (deprecated) or <object>.
behavior JavaScri <input type="text"
<input type="radio" Example:
via pt name="username">
name="gender" <object
scripts validati </form>
value="F">Female<br> classid="CLSID:...">ActiveX</obje
(JavaScri on or Form Validation:
<a href="#">Forgot ct>
pt). animati Checks input data before
Password?</a><br> <applet code="App.class"
ons processing.
<input type="submit" width="300" Example in PHP:
value="Submit"> Static pages are fast but not height="200"></applet> if
</form> personalized. Difference: ($_SERVER["REQUEST_METHOD"]
</body> </html> Dynamic pages use databases to == "POST") {
serve user-specific content. Featur ActiveX Java
Q6. if (empty($_POST["username"])) {
Active pages react in real-time e Applet
echo "Username is required";
a) What are the different ways of (e.g., AJAX, animations). } else {
adding CSS to WebPages? Write echo "Welcome " .
htmlspecialchars($_POST["usern
ame"]); } }