1.26.2020

Web Programing


A. The <form> element formally defines a form and attributes that determine the form's behavior. Each time you want to create an HTML form, you must start it by using this element, nesting all the contents inside. Many assistive technologies and browser plugins can discover <form>elements and implement special hooks to make them easier to use.
It's always possible to use a form control outside of <form> element. If you do so, by default that control has nothing to do with any form unless you associate it with a form using the form attribute. HTML5 introduction the form attributes on html form elements letting you explicitly bind an element with a form even if it is not enclosed with a <form>.
A. Cascading Style Sheet(CSS) is used to set the style in web pages which contain HTML elements. It sets the background color, font-size, font-family, color, … etc property of elements in a web pages.
There are three types of CSS which are given below:
·         Inline CSS
·         Internal or Embedded CSS
·         External CSS
Inline CSS: Inline CSS contains the CSS property in the body section attached with element is known as inline CSS. This kind of style is specified within an HTML tag using style attribute.
Internal or Embedded CSS: This can be used when a single HTML document must be styled uniquely. The CSS rule set should be within the HTML file in the head section i.e the CSS is embedded within the HTML file.
External CSS: External CSS contains separate CSS file which contains only style property with the help of tag attributes (For example class, id, heading, … etc). CSS property written in a separate file with .css extension and should be linked to the HTML document using link tag. This means that for each element, style can be set only once and that will be applied across web pages.

<!DOCTYPE html>
<html>
      <head>
                  <title>Inline CSS</title>
      </head>
     
      <body>
                  <p style = "color:#009900; font-size:50px;
                                          font-style:italic; text-align:center;">
                              This Is A Test Page
                  </p>
      </body>
</html>                 




A. HTML Headings
The heading definition is a title at the head of a page or section of a book. It is very important to have different types of headings to structure the content of the web page. Headings help search engines to understand and index the structure of the web page.
Heading Tags
There are 6 levels of headings in HTML: <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.
The <h1> - <h6> tags are used to mark headings according to their importance. The <h1> tag stands for the most important heading of the web page and the <h6> stands for the least important and smallest one.

Importance of Heading

  • HTML headings emphasize important topics and the document structure thus improving user engagement.
  • Use only one <h1> tag on any web page. The tag should describe what your page is about and contain a keyword, as it helps to improve rankings in Google.
  • Search Engines use headings for indexing the structure and content of the webpage.

<!DOCTYPE html>
<html>
  <head>
    <title>Title of the document</title>
  </head>
  <body>
    <h1>This is heading 1</h1>
    <h2>This is heading 2</h2>
    <h3>This is heading 3</h3>
    <h4>This is heading 4</h4>
    <h5>This is heading 5</h5>
    <h6>This is heading 6</h6>
  </body>
</html>
HTML | Text Formatting
HTML provides us with the ability for formatting text just like we do it in MS Word or any text editing software. In this article, we would go through few such options.
1.    Making text Bold or Strong: We can make the text bold using the <b> tag. The tag uses both opening and closing tag. The text that needs to be made bold must be within <b> and </b> tag.
We can also use the <strong> tag to make the text strong, with added semantic importance. It also opens with <strong> and ends with </strong> tag.
<b> - Bold text
<strong> - Important text
<i> - Italic text
<em> - Emphasized text
<mark> - Marked text
<small> - Small text
<del> - Deleted text
<ins> - Inserted text
<sub> - Subscript text
<sup> - Superscript text

<!DOCTYPE html>
<html>
<head>
            <title>Bold</title>
</head>
<body>
            <!--Normal text-->
            <p>Hello This is test page</p>
            <!--Text in Bold-->
            <p><b> Hello This is test page </b></p>
            <!--Text in Strong-->  
            <p><strong> Hello This is test page </strong></p>
<!--Text in Emphasize-->    
            <p><em>Hello GeeksforGeeks</em></p>
             <!--Text in Highlight-->    
            <p><mark>Hello GeeksforGeeks</mark></p>
<!--Text in Superscript-->    
<p>Hello <sup>GeeksforGeeks</sup></p>
 <!--Text in Subcript-->    
 <p>Hello <sub>GeeksforGeeks</sub></p>
<!--Text in Delete-->    
             <p><del>Hello GeeksforGeeks</del></p>

 </body>
</html>

A.Object reference can be used exactly lick the linked object.
Object referencing in java is basically a address in memory where all methods and variables associated with object resides. When you create an object like this
            The concept of object reference become clear when assigning the same object to more then one property. Rather then holding a copy of the object ,each assigned property hold object references that link to the same object, so that when the object change all properties referring to the object reflect the change.
            The collection in java is a framework that provides an architecture to store and manipulate the group of object
            Java  collections can achieve all the operations that you perform on a data such as search sorting, insertion manipulation and deletion
            Java collections means a single unit of object Java collection  framework provide many interfaces and classes
A. OnClick:- 
                        This event is raised when the user click the user click on an object, example: button,image,hyperlinks..etc..

<!DOCTYPE html>
<html>
<body>
<h1>The onclick Event</h1>
<p>The onclick event is used to trigger a function when an element is clicked on.</p>
<p>Click the button to trigger a function that will output "Hello World" in a p element with id="demo".</p>
<button onclick="myFunction()">Click me</button>
<p id="demo"></p>
<script>
function myFunction() {
  document.getElementById("demo").innerHTML = "Hello World";
}
</script>
</body>
</html>

ONFOCUS:-This event is raised when a selection text or text area items is selected on a html form

<!DOCTYPE html>
<html>
<body>
Enter your name: <input type="text" onfocus="myFunction(this)">
<p>When the input field gets focus, a function is triggered which changes the background-color.</p>
<script>
function myFunction(x) {
  x.style.background = "yellow";
}
</script>
</body>
</html>
ONBLUR:-This event is raised when a select text ,or text area  from item is acted upon and them moved off by the user. in other words, when the items loosed focous the on blur event is raised
<!DOCTYPE html>
<html>
<body>
<p>This example demonstrates how to assign an "onblur" event to an input element.</p>
<p>Write something in the input field, and then click outside the field to lose focus (blur).</p>
<input type="text" onblur="myFunction()">
<script>
function myFunction() {
  alert("Input field lost focus.");
}
</script>
</body>
</html>

A. Applying filters to text and images causes changes that are persistent. Transitions are temporary phenomena: applying a transition allows you to transfer from one page to another with a pleasant visual effect such as a random dissolve. Filters and transitions do not add content to your page; rather, they present existing content into an engaging manner to help hold the user’s-attention. Each, of the visual effects achievable with filters and transitions programmable: so these effects may be adjusted dynamically by programs that respond to user Initiated events like mouse clicks and keystrokes. When Internet Explorer renders your page, it applies all the special effects and does this while running on the client computer without lengthy waits for files to download from the server. The flipv and fliph filters mirror text or images vertically and horizontally, respectively. Filters are applied in the STYLE attribute. The filter properties value is the name of the filter.
One filter can be applied at once. Enter multiple filters as values of the filter attribute, separated by spaces. The chroma filter allows you to apply transparency effects dynamically, without using a graphics editor to hard code transparency into the image. Using transparency on images that have anti-aliasing often produces unsightly effects.
· Use the parseInt function to convert a string to a hexadecimal integer for setting the color property of the  chroma filter. The second parameter of parseInt specifies the base of the integer.
· Each filter has a property named enabled. If this property is set to true, the filter is applied. If its set to false, the filter is not applied.
· The ONCHANGE event fires whenever the VALUE of a form field changes. . Applying the mask filter to an image allows you to create an image mask, in which the back ground of an element is a solid color and the foreground of an element is transparent to the image or color behind it.
· Parameters for filters are always specified in the format param = value.
· The invert filter applies a negative image effects dark areas become light, and light areas become dark. The gray filter applies a grayscale image effect, in which all color is stripped from the image and all that remains is brightness data. The x-ray filter applies an x-ray effect which is basically just an inversion of the grayscale effect. FLIP
· Chorma Filter
· Mask Filter:
· Miscellaneous Image Filters: Invert , Gray, And X-ray
· Alpha Filter
· Glow Filter
· Blur Filter
· Wave Filter
· Dropshadow Filter
· Blend Transition
Chroma Filter
  1. chroma filter applies transparency effects dynamically
    1. Without using a graphics editor to hard-code transparency into the image
  2. onchange
    1. Fires when the value of a form changes
Example program
<?xml version=”1.0”?>
<! DOCTYPE html PUBLIC “-//w3c//DTD XHTML 1.0 Transitional//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
<html xmlns=http://www.w3.org/1999/xhtml>
<head>
<title>Chroma Filter</title>
<script type=”text/javascript”>
<!—
function changecolor(theColor)
{
if (thecolor ){
chromaImg.filters(“chroma” ).color= theColor;
chromaImg.filters(“chroma” ).enabled= true;
}
else
chromaImg.filters(“chroma” ).enabled= false;
}
</script>
</head>
<body>
<h1> Chroma Filter </h1>
<img id =”chromaImg” src=”trans.gif” style=”position: absolute; filter:chroma” alt =”Transparent Image” />
<form action = “ “>
<select onchange=”changecolor(this.value)”>
<option value= “ “>None</option>
<option value= “#00FFFF “>Cyan</option>
<option value= “ #FFFF00“>Yellow</option>
<option value= “#FF00FF “>Magenta</option>
<option value=”#000000” selected=”selected”>Black</option>
</select>
</form>
</body>
</html>
A. Structural graphics established and continues to lead the interactive print marketing industry. For over four decodes, we’ve helped many of the world’s most influential brand market their products and services
1. Education and Training: Computer-generated model of the physical, financial and economic system is often used as educational aids. Model of physical systems, physiological system, population trends or equipment can help trainees to understand the operation of the system.
For some training applications, particular systems are designed. For example Flight Simulator.
Flight Simulator: It helps in giving training to the pilots of airplanes. These pilots spend much of their training not in a real aircraft but on the ground at the controls of a Flight Simulator.

Advantages:

  1. Fuel Saving
  2. Safety
  3. Ability to familiarize the training with a large number of the world's airports.
2. Use in Biology: Molecular biologist can display a picture of molecules and gain insight into their structure with the help of computer graphics.
3. Computer-Generated Maps: Town planners and transportation engineers can use computer-generated maps which display data useful to them in their planning work.
4. Architect: Architect can explore an alternative solution to design problems at an interactive graphics terminal. In this way, they can test many more solutions that would not be possible without the computer.
5. Presentation Graphics: Example of presentation Graphics are bar charts, line graphs, pie charts and other displays showing relationships between multiple parameters. Presentation Graphics is commonly used to summarize
  • Financial Reports
  • Statistical Reports
  • Mathematical Reports
  • Scientific Reports
  • Economic Data for research reports
  • Managerial Reports
  • Consumer Information Bulletins
  • And other types of reports
6. Computer Art: Computer Graphics are also used in the field of commercial arts. It is used to generate television and advertising commercial.
7. Entertainment: Computer Graphics are now commonly used in making motion pictures, music videos and television shows.
8. Visualization: It is used for visualization of scientists, engineers, medical personnel, business analysts for the study of a large amount of information.
9. Educational Software: Computer Graphics is used in the development of educational software for making computer-aided instruction.
10. Printing Technology: Computer Graphics is used for printing technology and textile design.

Example of Computer Graphics Packages:

  1. LOGO
  2. COREL DRAW
  3. AUTO CAD
  4. 3D STUDIO
  5. CORE
  6. GKS (Graphics Kernel System)
  7. PHIGS
  8. CAM (Computer Graphics Metafile)
  9. CGI (Computer Graphics Interface)
A. <!doctype html>
<html>
<head>
<script>
function palin()
{
var a,no,b,temp=0;
no=Number(document.getElementById("no_input").value);
b=no;
while(no>0)
{
a=no%10;
no=parseInt(no/10);
temp=temp*10+a;
}
alert(temp);
}
</script>
</head>
<body>
Enter any Number: <input id="no_input">
<button onclick="palin()">Check</button></br></br>
</body>
</html>

A.
FOR
WHILE
for(initialization; condition; iteration){
//body of 'for' loop
}
while ( condition) {
statements; //body of loop
}
Initialization, condition checking, iteration statement are written at the top of the loop.
Only initialization and condition checking is done at the top of the loop.
The 'for' loop used only when we already knew the number of iterations.
The 'while' loop used only when the number of iteration are not exactly known.
If the condition is not put up in 'for' loop, then loop iterates infinite times.
If the condition is not put up in 'while' loop, it provides compilation error.
In 'for' loop the initialization once done is never repeated.
In while loop if initialization is done during condition checking, then initialization is done each time the loop iterate.
In 'for' loop iteration statement is written at top, hence, executes only after all statements in loop are executed.
In 'while' loop, the iteration statement can be written anywhere in the loop.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JavaScript For Loop</title>
</head>
<body>
    <script>
    for(var i=1; i<=5; i++) {
        document.write("<p>The number is " + i + "</p>");
    }
    </script>
</body>
</html>                           
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JavaScript While Loop</title>
</head>
<body>
    <script>
    var i = 1;
    while(i <= 5) {   
        document.write("<p>The number is " + i + "</p>");
        i++;
    }
    </script>
</body>
</html>      

A. <html>
   <head>
      <title>JavaScript Prime</title>
   </head>
 
   <body>
      <script>
         <script> 
 
var array = new Array(100); 
 
for ( var index = 0 ; index < =array.length; index++){ 
array[index]=1; 
 
for ( var i = 2 ; i < =array.length; i++){ 
if ( array[i]) 
for ( var j=i+i; j<array.length; j+=i){ 
array[j]=0; 
} 
} 
for (var index=2; index >< array.length; index++){ 
if (array[index]) 
 
document.window(index); 
} 
 
} 
      </script>
   </body>
</html>

A. Using the apply() method: The apply() method is used to call a function with the given arguments as an array or array-like object. It contains two parameters. The thisvalue provides a call to the function and the arguments array contains the array of arguments to be passed.
The apply() method is used on the function that has to be passed as the arguments array. The first parameter is specified as ‘null’ and the second parameter is specified with the arguments array. This will call the function with the specified arguments array.
<!DOCTYPE html>
<html>

<head>
            <title>
                        How to pass an array as a function
                        parameter in JavaScript ?
            </title>
</head>
<body>
            <h1 style="color: green">
                        GeeksforGeeks
            </h1>
           
            <b>
                        JavaScript | Passing an array
                        as a function parameter.
            </b>
           
            <p>
                        The arguments passed
                        are '1, "Two", 3'
            </p>
            <button onclick="passToFunction()">
                        Pass to function
            </button>
           
            <script type="text/javascript">
                       
                        function passToFunction() {
                                    arrayToPass = [1, "Two", 3];
                       
                                    unmodifiableFunction.apply(null, arrayToPass);
                        }
           
                        function unmodifiableFunction(a, b, c) {
                                    console.log("First value is: ", a);
                                    console.log("Second value is: ", b);
                                    console.log("Third value is: ", c);
                        }
            </script>
</body>
</html>

A. While JavaScript has many applications, working with string values is one of the most popular. Strings are objects within the JavaScript language. They are not stored as character arrays, so built-in functions must be used to manipulate their values. The functions provide various ways to access the contents of a string variable. Let's take a closer look at these functions.

Everything included
Manipulating string values is a common developer chore. This ranges from extracting portions of a string to determining if a string contains a specific character. The following JavaScript functions provide developers with everything they need:

·         concat() - Combines the text of two or more strings and returns a new string.
·         indexOf() – Returns the starting index of a substring within another string. A –1 is returned if no match is found.
·         charAt() – Returns the character at the specified location.
·         lastIndexOf() - Returns the index within the string of the last occurrence of the specified value, or -1 if not found.
·         match() - Used to match a regular expression against a string.
·         substring() – A portion of a string is returned. A starting and ending location are passed to this function.
·         replace() – Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.
·         search() - Executes the search for a match of a regular expression. If successful, search returns the index of the match inside the string. Otherwise, it returns -1.
·         slice() - Extracts a section of a string and returns a new string.
·         split() - Splits a string into an array of strings by separating the string into substrings.
·         length() – The length of the string is returned as the count of the number of characters it contains.
·         toLowerCase() – Converts the entire string to lower case.
·         toUpperCase() – Converts the entire string to upper case.
<!DOCTYPE html>
<html>
<body>

<h2>JavaScript String Properties</h2>

<p>The length property returns the length of a string:</p>

<p id="demo"></p>

<script>
var txt = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
document.getElementById("demo").innerHTML = txt.length;
</script>

</body>
</html>


A.

Imports System.Collections.Generic
Module Module1
     Sub Main()
        Dim n1 As Integer
        Dim n2 As Integer
        n1 = 1
        n2 = 1
        Console.WriteLine("{0}", n1)
        While n2 < 300
            Console.WriteLine(n2)
            n2 = n2 + n1
            n1 = n2 - n1
        End While
        Console.ReadLine()
     End Sub
End Module

A. A web server is software that listens for requests and returns data (usually a file). When you type “www.mysite.com”, the request is forwarded to a machine running web server software which returns a file back to your browser, e.g. the contents of index.html. The browser might then make further requests based on the HTML content, e.g. CSS, JavaScript, and graphic files.
An excellent official .msi installation wizard is available from the Apache download page. This option is certainly recommended for novice users or perhaps those installing Apache for the first time.
Apache listens for requests on TCP/IP port 80. The default installation of Skype also listens on this port and will cause conflicts. To switch it off, start Skype and choose Tools > Options > Advanced > Connection. Ensure you untick “Use port 80 and 443 as alternatives for incoming connections”.
Apache is configured with the text file confhttpd.conf contained in the Apache folder. Open it with your favourite text editor.

Install Apache:-

cd \Apache24\bin

httpd -k install

httpd -k start

configure Apache

change the web page root (optional)

test your installation

Your Apache configuration can now be tested. Open a command box (Start > Run > cmd) and enter: cd Apache2bin (enter)httpd –t (enter)
install Apache as a Windows service :-cd Apache2bin  (enter)httpd -k install (enter)

test the web server

<html>
<head><title>testing Apache</title></head>
<body><p>Apache is working!</p></body>
</html>

A. ASP is also an abbreviation for application service provider.
An Active Server Page (ASP) is an HTML page that includes one or more scripts (small embedded programs) that are processed on a Microsoft Web server before the page is sent to the user. An ASP is somewhat similar to a server-side include or a common gateway interface (CGI) application in that all involve programs that run on the server, usually tailoring a page for the user. Typically, the script in the Web page at the server uses input received as the result of the user's request for the page to access data from a database and then builds or customizes the page on the fly before sending it to the requestor.
ASP is a feature of the Microsoft Internet Information Server (IIS), but, since the server-side script is just building a regular HTML page, it can be delivered to almost any browser. You can create an ASP file by including a script written in VBScript or JScript in an HTML file or by using ActiveX Data Objects (ADOs) program statements in the HTML file. You name the HTML file with the ".asp" file suffix. Microsoft recommends the use of the server-side ASP rather than a client-side script, where there is actually a choice, because the server-side script will result in an easily displayable HTML page. Client-side scripts (for example, with JavaScript) may not work as intended on older browsers.
For Web service applications, Microsoft provides a new version of ASP support called ASP.NET.

A.  XML parser :
parser is a piece of program that takes a physical representation of some data and converts it into an in-memory form for the program as a whole to use. Parsers are used everywhere in software. An XML Parser is a parser that is designed to read XML and create a way for programs to use XML. There are different types, and each has its advantages. Unless a program simply and blindly copies the whole XML file as a unit, every program must implement or call on an XML parser.
The main types of parsers are known by some funny names: SAX, DOM and pull. For each type, there are some excellent implementations freely available for a variety of languages, including Java, C++, C#, VB# (in fact, any .Net language), PHP, Perl, Python, Ruby and so on.
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
var parser, xmlDoc;
var text = "<bookstore><book>" +
"<title>Everyday Italian</title>" +
"<author>Giada De Laurentiis</author>" +
"<year>2005</year>" +
"</book></bookstore>";
parser = new DOMParser();
xmlDoc = parser.parseFromString(text,"text/xml");
document.getElementById("demo").innerHTML =
xmlDoc.getElementsByTagName("title")[0].childNodes[0].nodeValue;
</script>
</body>
</html>
Cookies:- cookie (called an Internet or Web cookie) is the term given to describe a type of message that is given to a web browser by a web server. The main purpose of a cookie is to identify users and possibly prepare customized Web pages or to save site login information for you.
When you enter a website using cookies, you may be asked to fill out a form providing personal information; like your name, email address, and interests. This information is packaged into a cookie and sent to your Web browser, which then stores the information for later use. The next time you go to the same Web site, your browser will send the cookie to the Web server. The message is sent back to the server each time the browser requests a page from the server.
A web server has no memory so the hosted website you are visiting transfers a cookie file of the browser on your computer's hard disk so that the site can remember who you are and your preferences. This message exchange allows the Web server to use this information to present you with customized Web pages. So, for example, instead of seeing just a generic welcome page you might see a welcome page with your name on it.





A.
Attribute
Value
Description
abbr
abbreviated_text
Specifies an abbreviated version of the content in a cell.
align

right
left
center
justify
char
Visual alignment.
bgcolor
rgb(x,x,x)
#hexcode
colorname
Specifies the background color of the table.
border
pixels
Specifies the border width. A value of "0" means no border.
cellpadding
pixels or %
Specifies the space between the cell borders and their contents.
cellspacing
pixels or %
Specifies the space between cells.
frame
void
above
below
hsides
lhs
rhs
vsides
box
border

Used in conjunction with the border attribute, specifies which side of the frame that makes up the border surrounding the table is displayed.
rules
none
groups
rows
cols
all
Used in conjunction with the border attribute, specifies which rules appear between the cells of the table.

summary
text
Specifies the summary of the content.
width
pixels or %
Specifies the width of the table.

A. Variables form the basis of programming. Variables are used to hold value or an expression. Whenever you have a piece of data to work with, you will have to declare a variable.
VB script data types are:
  • Empty: A special subtype to represent a variable that has not been assigned with any value yet.
  • Null: A special subtype to represent a variable assigned with a null value.
  • Integer: Using 2 bytes to express signed integer in the range -32,768 to 32,767.
  • Long: Using 4 bytes to express signed integers ranging from -2,147,483,648 to 2,147,483,647.
  • Single: Using 4 bytes to express real numbers in floating-point format ranging from -3.402823e38 to -1.401298e-45 for negative values, and from 1.401298e-45 to 3.402823e38 for positive value.
  • Double: Using 8 bytes to express real numbers in floating-point format ranging from -1.79769313486232e308 to -4.94065645841247e-324 for negative values, and from 4.94065645841247e-324 to 1.79769313486232e308 for positive values.
  • Currency: Using 8 bytes to express real numbers in decimal format ranging from -922,337,293,685,477.5808 to 922,337,293,685,477.5807.
  • Date: Using 8 bytes to express dates ranging from January 1, 100 to December 31, 9999.
  • String: Using 1 byte per character to express a sequence of characters that can be up to approximately 2 billion characters.
  • Object: A special subtype to represent a reference to an object.
  • Error: A special subtype to represent an error number.
  • Boolean: Using 2 bytes to contain either True or False.
  • Byte: Using 1 byte to express integer in the range 0 to 255.

VBScript – Constants:

            Constant is a named memory location used to hold a value that CANNOT be changed during the script execution. If a user tries to change a Constant Value, the Script execution ends up with an error. Constants are declared the same way the variables are declared.

[Public | Private] Const Constant_Name = Value

The Constant can be of type Public or Private. The Use of Public or Private is Optional. The Public constants are available for all the scripts and procedures while the Private Constants are available within the procedure or Class. One can assign any value such as number, String or Date to the declared Constant.

A. Active Server Pages (also known as ASP or classic ASP) is Microsoft’s first server-side script engine that enabled dynamically-generated web pages. While the initial release was an add-on to the Internet Information Services (IIS) component of Windows NT 4.0, it was later incorporated into the Windows Server operating system.
ASP employs server-side scripting to dynamically produce web pages based on a specific request from the client. The result is a HTML webpage sent back to the client for display. VBScript is the default scripting language used for writing ASP, although other scripting languages can be used.
ASP was Microsoft’ alternative to Common Gateway Interface (CGI) scripts and Java Server Pages (JSPs), both intended to allow clients to interact with server-side databases and enterprise services. ASP has gone through three major releases: ASP 1.0 in 1996 (included with IIS 3.0), ASP 2.0 in 1997 (IIS 4.0) and ASP 3.0 in 2000 (IIS 5.0). ASP 3.0 becomes part of IIS 6.0 on Windows Server 2003 and part of IIS 7.0 on Windows Server 2008.
ASP is now obsolete and replaced with ASP.NET. Though, ASP.NET is not strictly an enhanced version of ASP; the two technologies have completely different underlying implementations. ASP.NET is a compiled language and relies on the .NET Framework, while ASP is strictly an interpreted language. As with any older technology, you can certainly find ASP in production, but you'd be hard-pressed to make the case to use it for a new project.

A. An array is a data structure that contains a group of elements. Typically these elements are all of the same data type, such as an integer or string. Arrays are commonly used in computer programs to organize data so that a related set of values can be easily sorted or searched.
search engine may use an array to store Web pages found in a search performed by the user. When displaying the results, the program will output one element of the array at a time. This may be done for a specified number of values or until all the values stored in the array have been output. While the program could create a new variable for each result found, storing the results in an array is much more efficient way to manage memory.

Declaration of an Array can be done in the same manner in which Variables are declared but with the difference that array variable is declared by using parenthesis ‘()’.
The Dim keyword is used to declare an Array.
Ways to declare an Array:
There are 3 ways in which an Array can be declared.
They are as follows:

#1) Way 1: Dim array1()

Here, array1 is the name of an array and as parenthesis is empty it means that the size of an array is not defined here.
If you want to declare an array by mentioning its size then it can be done in the following way.

#2) Way 2: Dim array1(5)

In this, array1 is declared with the size as 5 which states it holds 6 values considering that the index of an array always starts from 0. These 5 values can be of integer type, string or character types.

#3) Way 3 : array1 = Array(1,2,3,4,5,6)

Here, Array Function is used to declare an array with a list of arguments inside the parenthesis and all integer values are passed directly inside the parenthesis without any need of mentioning the size of an array.
Note: Index value of an Array can never be a negative value.
Next, let’s discuss how to assign values to an array.
A. ASP stands for Active Server Page. It is a technology that enables you to make dynamic and interactive web pages. ASP uses server-side scripting to dynamically produce webpages that are not affected by the type of browser the visitor is using. 
ASP pages have the extension .asp.
ASP objects lets you interact with both the server and the browser, and you'll routinely use one or more objects within your ASP scripts. You don't have to install anything to use them, but you do have to remember to open and close them.
ASP components, on the other hand, are ActiveX controls that interface with ASP to simplify common procedures. Some commonly used objects and components are defined below.
Objects
Request Object
The Request object lets you tap into the information passed through an HTTP request. You can use the Request object to parse encoded URLs, access information from a form, and read cookies, client certificates, and the HTTP headers.
Response Object
The Response object is your key to sending information to the user. You can write to the screen, redirect to another page, and create cookies using the Response object.
Application Object
The running Web server is an application. Using the Application object, you can control features related to starting and stopping the application, as well as store information that should be accessed by the application as a whole.
Server Object
The Server object lets you perform routine functions, such as mapping a virtual path to a physical one and creating an instance of a component.
Session Object
Using the Session object, you can store information related to each user who is visiting your site.
Components
Ad Rotator
The Ad Rotator streamlines the process of setting up a delivery system for your banner ads. In a separate file, you store information regarding the banner. The component then delivers a randomly selected banner every time the page is loaded.
Browser Capabilities
The Browser component lets you determine what browser a user is using and what features are supported by that browser.
Collaboration Data Objects (CDO)
Tied in with the IIS SMTP server, CDO lets you send and receive email. With CDO, for example, you can process a form without relying upon a Perl script and CGI.
Content Linking
This is a handy object for creating a linear or sequential pathway through your site or a subsection of the site. You maintain a simple text file that lists the files in the proper sequence. Simple nextand previous links then can be added to the page, and a table of contents can be easily generated.
Content Rotator
If you have a need for rotating content, this will be a favorite component. It is easy to use and allows you to add dynamic content to any page without using a database. In a separate text file, you store chunks of HTML code that you want alternately dropped into a space on the page. The Content Rotator will display one of the chunks each time the page is reloaded.
Database Access
Using this component, you can hook into a database to write contents to the browser screen and to create or update existing database files.


A. There are two basic types of links in an XML document. Internal links are links to a section within the same document, much like hash URLs and anchor tags in an HTML document. External links, as the name implies, are links to other, external documents. This specification provides ways to state a link's type along several axes, but only provides a standard vocabulary for the first kind of typing, namely link relationships. The vocabulary of link types can be extended by creating sub-types at all levels.
  1. link relationships: Links express various kinds of relationships between the data objects or portions they connect, in terms of conceptual significance to the author and user. Some links may be criticisms, others add support or background, while others have a very different meaning such as providing access to demographic information about a data object (its author's name, version number, etc), or to navigational tools such as index, glossary, and summary.
  2. link topology: In-line and out-of-line links differ in their structure, as do links involving varying numbers of resources.
  3. locator language: Linking elements commonly differ in what formal language they specify locators. Different locators of the same linking element may use different languages.
  4. formatting: Links may be presented in a variety of ways. The discussion of this area is complicated by the fact that link formatting and link behavior are inextricably linked. This specification does not discuss, nor provide mechanisms for, the provision or use of link formatting information.
  5. link behavior: Links may have a wide variety of effects when traversed, such as opening, closing, or scrolling windows or panes; displaying the data from various resources in various ways; testing, authenticating, or logging user and context information; executing various programs. Ideally, link behavior should be determined by a semantic specification based on link types, resource roles, user circumstances, and other factors; just as element formatting is determined by a stylesheet based on element type, context, and other factors.