Review Questions


What is the difference between static and dynamic Web pages?


Static Web pages are built from HTML scripts that never changes. Dynamic Web pages have HTML scripts that can change in response to the needs of the viewer or other considerations. Dynamic Web pages have this capability because special tags in the HTML can be used to call other scripting languages, such as Visual Basic .NET and JavaScript, to generate new HTML script based on the inputs supplied to the scripting language.


What is a URL ?


A URL is a Uniform Resource Locator, which is used to locate the Web server that will provide the HTML for the Web site.


With respect to HTML scripts, what is a tag ?


HTML uses tags to determine what action is to be taken by the script. Most of the tags are used in pairs; the first part turns the tag's attribute on and the second part turns the attribute off. For example, the <title> tag turns on printing of a page title, whereas the </title> tag turns it off.


What is meant by client-side versus server-side scripting?


These terms simply describe where the processing of the script is performed. The trend is for less client-side scripting in favor of more server-side scripting.


What is a serious limitation of client-side scripting?


Client-side scripting relies on the resources that are available on the client side. Because these resources cannot be known with certainty , the client machine might not have all the resources necessary to process your scripts. For example, not all browsers support VBScript, but most do support JavaScript. Server-side scripting eliminates this problem because you can control the server-side resources.


What benefits are gained if all clients have the same resource base?


If you could assume that every client machine has the resources necessary to process all Web pages, you could push a large part of the processing burden off the (already) overloaded servers onto the ( underutilized ) clients. It seems terribly wasteful to have a client with a 3GHz machine doing nothing more that displaying HTML scripts at the same time the server is logjammed trying to keep up with the demands that are placed on the server.


Suppose that you want the title bar on the Web browser to read My name 's Web Site (where you supply your own name), and then have the words I collect 5 dollar bills in fairly large letters . And in normal-size print display

 Send your old 5 dollar bills to:  Your Name 123 Your Street YourCity, YourState, YourZip 

This could be written as a static script:

 <html>  <title>My Name's Web Site</title> <body>  <h1>I collect 5 dollar bills</h1>  <br><br>  Send your old 5 dollar bills to:<br>  Your Name<br>  123 Your Street<br>  YourCity, YourState, YourZip<br> </body> </html> 

If you want to insert some Visual Basic .NET into an HTML document, what tags are necessary in the HTML document?


You might use

 <script language=vbscript>  <!-- --> </script> 

and place whatever code is needed between the comment markers.


What are meta tags ?


Meta tags are special scripting tags that Visual Basic .NET uses to extend the normal HTML scripting. These tags are not portable to other environments.


What tags does Visual Basic .NET use to denote server-side script tags?


The tags are <% and %> . Everything that appears between these two tags is to be processed on the server. These tags are also used by older ASP scripting files.

Visual Basic .NET. Primer Plus
Visual Basic .NET Primer Plus
ISBN: 0672324857
EAN: 2147483647
Year: 2003
Pages: 238
Authors: Jack Purdum

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: