0% found this document useful (0 votes)
30 views10 pages

Ip Notes

janxsx

Uploaded by

Anam Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views10 pages

Ip Notes

janxsx

Uploaded by

Anam Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

IP NOTES

1] What is Internet? an explain any two application in brief?


Ans:
1) The Internet is the foremost important tool and the prominent resource that is
being used by almost every person across the globe.
2) It connects millions of computers, webpages, websites, and servers.
3) Using the internet we can send emails, photos, videos, and messages
4) Other words, the Internet is a widespread interconnected network of computers
and electronic device
Application of Internet are as follows :
1) On-line communication:
Computer users around the world use the E-mail services to communicate with
each other extensively.
2) On-line shopping:
The Internet has also facilitated the introduction of a new market concept,
which consists of virtual shops. These shops remain open 24 hrs all the year
round and are accessible to make purchase all around the world.
2] List the features of HTML5?
Ans:
1) Intro of audio and video
2) Vector graphics
3) Header and footer
4) Figure and fig caption
5) Progress tag
6) NAv tag
7) Placeholder attribute
8) Storage
9) easy to use
3] Differentiate between class selector and ID selector?
Ans :

4] Write a short note on: Drag and drop in HTML5?


Ans:
DRAG:
1) To make a part draggable we have to line the draggable attributE= true
2) The on drag start attribute calls function drag(event)That specifies what data
to be dragged.
3) The data transfer. set data()Method sets the information type. But
4) this is done by calling the event prevent default()
5) When the drag data is dropped a drop event occurs.
DROP:
1) The dragenter event, which is used to determine whether or not the drop
target is to accept the drop. If the drop is to be accepted, then this event has
to be canceled.
2) The dragover event, which is used to determine what feedback is to be
shown to the user. If the event is canceled, then the feedback (typically the
cursor) is updated
3) Finally, the drop event, which allows the actual drop to be performed.
5] What is cell spacing and cell padding?
Ans:
Cells spacing:
1) Cellspacing is again an attribute of table tag in HTML.
2) It is used to control the distance between two adjacent cells.
3) Thus, a web developer can easily change the space between edges of
different adjacent cells.
4) It is primary used to improve the clarity of the table.
5) Syntax:<table cellspacing=”value” >…..</table>
Cell padding:
1) Cellpadding is the attribute which is used to set the whitespace between the
cell edge and the cell content.
2) In simple words, cellpadding is the attribute of the table tag (<table>) that
set the distance between the cell border and cell content.
3) <table cellpadding=”value” >…..</table>

6] List and describe any four text formatting tags in HTML5?


Ans:
1) <b> and <strong> Tags: Both tags are used to make the text bold. The text
content of the tag is shown as important information on the webpage.
2) <i> and <em> Tags: Both tags are used to make the text italic and
emphasized. Both the element have opening and closing tags.
3) <small> and <big> Tags: The <small> tag is used to set small font-size
where as <big> tag is used to set big font-size.
4) <sup> and <sub> Tags: The <sup> tag is used to superscript a text whereas
<sub> tag is used to subscript a text.
7] What is HTTP? explain types of messages?
Ans:
1) HTTP Message is used to show how data is exchanged between the client
and the server.
2) It is based on client-server architecture.
3) An HTTP client is a program that establishes a connection to a server to send
one or more HTTP request messages.
The HTTP Messages can be classified as follows:
1)Message Type:
HTTP message consists of an initial request line and an initial response
line.
A)Initial Request Line: A request-line consists of three parts: a method
name, requested resource’s local path, and the HTTP version being used.

B)Initial Response Line: The initial Response line is also known as the
status line. It also has three parts: the HTTP version, a response status
code
2) Message Headers:
The Message header provides information about the request and
response. It also provides information about the object which is sent in
the message body.
3) Message Body:
The message body of an HTTP message is used to carry the entire body
associated with the request and response.
4) Message Length:
The transfer-length of a message is the length of the message-body, and it
appears in the message.
8] Differentiate between HTML and XML?
Ans:
9] Explain semantics elements in HTML5?
Ans :
1) A semantic element clearly describes its meaning to both the browser and
the developer.
2) In HTML there are some semantic elements that can be used to define
different parts of a web page:
a. <article>
b. <aside>
c. <details>
d. <figcaption>
e. <figure>
f. <footer>
g. <header>
h. <main>
i. <mark>
j. <nav>
k. <section>
l. <summ>

1)HTML <section> Element


The <section> element defines a section in a document.
2) HTML <article> Element:
The <article> element specifies independent, self-contained content.
3)HTML <header> Element:
The <header> element represents a container for introductory content or a
set of navigational links.
10] Explain JavaScript function with example?
Ans :
1) A function is a block of code that performs a specific task.
2) JavaScript supports functions. You must already have seen some
commonly used functions in JavaScript like alert(),
3) Which is a built-in function in JavaScript. But JavaScript allows us to
create user-defined functions also. We can create functions in JavaScript
using the keyword function.
4) To create a function in JavaScript, we have to first use the keyword
function.
5) Syntax: The basic syntax to create a function in JavaScript is shown
below.

Function functionName(Parameter1, Parameter2, …)

{
// Function body
}

11] Explain string object in JavaScript?


Ans:
1) A JavaScript string stores a series of characters like “John Doe”.
2) A string can be any text inside double or single quotes:
3) let carName1 = "Volvo XC60"; // Double quotes
4) let carName2 = 'Volvo XC60'; // Single quotes
12] Differentiate between client side Java scripting and server side Java
scripting?
Ans:

13] Explain javascript and it’s features?


Ans:
JavaScript is a dynamic computer programming language. It is lightweight and
most commonly used as a part of web pages, whose implementations allow client-
side script to interact with the user and make dynamic pages. It is an interpreted
programming language with object-oriented capabilities.
1) Less server interaction -This saves server traffic, which means less load on
your server.
2) Immediate feedback to the visitors – They don’t have to wait for a page
reload
3) Increased interactivity – You can create interfaces that react when the user
hovers over them
4) Richer interfaces – drag-and-drop components and sliders to give a Rich
Interface to your site.
14] Explain javascript operators?
Ans:
1) The Assignment Operator (=) assigns a value to a variable let x = 10;:
2) The Addition Operator (+) adds numbers: let x = 5;
Let y = 2;
Let z = x + y;

3) The Multiplication Operator (*) multiplies numbers:let x = 5;


Let y = 2;
Let z = x * y;
4) JavaScript Comparison Operators
The JavaScript comparison operator compares the two operands. The
comparison operators
5) The bitwise operators perform bitwise operations on operands

15] Explain two event handling in javascript?


Ans :
1) Javascript has events to provide a dynamic interface to a webpage. These
events are hooked to elements in the Document Object Model(DOM).
2) JavaScript onclick events: This is a mouse event and provokes any logic
defined if the user clicks on the element it is bound to
3) JavaScript onload event: When an element is loaded completely, this event is
evoked.

16] What is JSON


Ans :
1) JSON stands for JavaScript Object Notation
2) JSON is a lightweight data interchange format
3) JSON is language independent *
4) JSON is “self-describing” and easy to understand
5) JSON is a format for storing and transporting data.
6) JSON is often used when data is sent from a server to a web page.

You might also like