Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

🤡

Unit.1
Q.1 Short notes

1.HTML Tables
The HTML Table is an arrangement of data in rows
and columns in tabular format. Tables are useful for
various tasks such as presenting text information
and numerical data. A table is a useful tool for
quickly and easily finding connections between
different types of data. Tables are also used to
create databases.

2.HTML Lists
HTML Lists are used to specify lists of information.
All lists may contain one or more list elements.
There are three different types of HTML lists:

Ordered List or Numbered List (ol)


Unordered List or Bulleted List (ul)
Description List or Definition List (dl)

3.HTML Frames
HTML Frames are used to divide the web browser
window into multiple sections where each section
🤡
can be loaded separately. A frameset tag is the
collection of frames in the browser window

4.xhtml syntax

XHTML Syntax

● All documents must have a DOCTYPE.


● All tags must be in lower case.
● All documents must be properly formed.
● All tags must be closed.
● All attributes must be added properly.
● The name attribute has changed.
● Attributes cannot be shortened.
● All tags must be properly nested.

Q.2 difference between client side and server side


scripting
Ans :
Client-side scripting Server-side scripting

Source code is visible to the user. Source code is not visible to the user
because its output
of server-sideside is an HTML page.

Its main function is to provide the Its primary function is to manipulate and
requested output to the end user. provide access to the respective
database as per the request.

It usually depends on the browser and its In this any server-side technology can be
version. used and it does not
🤡
depend on the client.

It runs on the user’s computer. It runs on the webserver.

There are many advantages linked with The primary advantage is its ability to
this like faster. highly customize, response
response times, a more interactive requirements, access rights based on
application. user.

It does not provide security for data. It provides more security for data.

It is a technique used in web It is a technique that uses scripts on the


development in which scripts run on the webserver to produce a response that is
client’s browser. customized for each client’s request.

HTML, CSS, and javascript are used. PHP, Python, Java, Ruby are used.

No need of interaction with the server. It is all about interacting with the servers.

It reduces load on processing unit of the It surge the processing load on the
server. server.
🤡
Q.3 web clients and web servers?
Ans:

● Client
A client can be a device or a machine.

A client program runs on the local machine,


requesting service from the server. A client program
is a finite program means that the service is started
by the user and terminates when the service is
completed. For instance, web browser.

A client device is a machine that the end-user uses


to access the web. Examples of clients are
smartphones, desktops, laptops, etc.

● Server
A server is like a computer program, which is used
to provide functionality to other programs. It can be
any computerized process called by a client to
distribute the work and share the resources.

It receives and responds to requests made over a


network. Server receives the request from the client
🤡
for a web document, and it sends the requested
information to the client's computer.

Q.4 fundamental of html


What is HTML?
HTML stands for Hyper Text Markup Language
HTML is the standard markup language for creating
Web pages
HTML describes the structure of a Web page
HTML consists of a series of elements
HTML elements tell the browser how to display the
content
HTML elements label pieces of content such as "this
is a heading", "this is a paragraph", "this is a link",
etc.
🤡

● creating html document?


1. Open a Text Editor:
Open a text editor like Notepad (Windows), TextEdit
(Mac), or any code editor of your
choice (e.g., VSCode, Sublime Text).
2. Write HTML Code:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>Hello, World!</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
3. Save the File:
Save the file with an ".html" extension, for example,
you can name it index.html.
4. Open in Browser:
Double-click on the saved HTML file, and it should
open in your default web browser,
🤡
displaying the "Hello, World!" message

Unit 2
Q.1 short note

1.JavaScript alert()
The alert() method in JavaScript is used to
display a virtual alert box. It is mostly used to
give a warning message to the users. It displays
an alert dialog box that consists of some
specified message (which is optional) and an
OK button. When the dialog box pops up, we
have to click "OK" to proceed.

2.JavaScript Form Validation


It is important to validate the form submitted by
the user because it can have inappropriate
values. So, validation is must to authenticate
user.

JavaScript provides facility to validate the form


on the client-side so data processing will be
faster than server-side validation. Most of the
🤡
web developers prefer JavaScript form
validation.

Q.2 Document Object Model


The Document Object Model (DOM) is a
programming interface for HTML(HyperText Markup
Language) and XML(Extensible markup language)
documents. It defines the logical structure of
documents and the way a document is accessed
and manipulated.

Structure of DOM
DOM can be thought of as a Tree or Forest(more
than one tree). The term structure model is
sometimes used to describe the tree-like
representation of a document. Each branch of the
tree ends in a node, and each node contains objects
Event listeners can be added to nodes and triggered
on an occurrence of a given event. One important
property of DOM structure models is structural
isomorphism: if any two DOM implementations are
used to create a representation of the same
document, they will create the same structure model,
with precisely the same objects and relationships.
🤡

Q.3 Basics of jQuery?


What is jQuery?
jQuery is a lightweight, "write less, do more",
JavaScript library.

The purpose of jQuery is to make it much easier to


use JavaScript on your website.

jQuery takes a lot of common tasks that require


many lines of JavaScript code to accomplish, and
🤡
wraps them into methods that you can call with a
single line of code.

jQuery also simplifies a lot of the complicated things


from JavaScript, like AJAX calls and DOM
manipulation.

The jQuery library contains the following features:

HTML/DOM manipulation
CSS manipulation
HTML event methods
Effects and animations
AJAX
Utilities

Unit .3
Q.1 Short notes
1.Xml
Extensible Markup Language (XML) is a markup
language that provides rules to define any data.
🤡
Unlike other programming languages, XML cannot
perform computing operations by itself. Instead, any
programming language or software can be
implemented for structured data management.

2.php
PHP (Hypertext Processor) is a general-purpose
scripting language and interpreter that is freely
available and widely used for web development. The
language is used primarily for server-side scripting,
although it can also be used for command-line
scripting and, to a limited degree, desktop
applications.

3.xsl
XSL (Extensible Stylesheet Language) is a family of
standards that specifies how to define Extensible
Markup Language (XML) document transformation
and presentation.

You might also like