Workshop


This workshop contains some questions about HTML validation, as well as a quiz and exercises that will refresh your memory on what you've learned.

Q&A

Q

How do I figure out which web server I use?

A

If you don't know which web server your web pages reside on, you can ask the system administrator responsible for making sure it's up and running; he'll certainly know. Or you can use Netcraft's site to figure out the server software and operating system for your site. Just go to http://uptime.netcraft.com/up/graph/.

Enter the hostname of the computer where your pages are stored to get information about the software running on your server.

Q

Does using the web application platforms require me to be a programmer?

A

No more so than learning to use Dynamic HTML or JavaScript. There are some really simple things you can do to take advantage of these platforms, and at the same time you can write really complex applications as well, like the ones that power huge sites like Amazon.com and Yahoo!.

Quiz

1.

What's the relationship between the web server and CGI programs?

2.

What are the two standard languages associated with programming in Active Server Pages?

3.

What are the two types of includes in the J2EE world?

4.

In PHP, how do the require() and include() functions differ?

5.

When using server-side includes, how do virtual and file includes differ?

Quiz Answers

1.

CGI programs are standalone programs that are invoked by the web server. They produce data in a format that the web server understands how to send to the browser.

2.

The two standard languages that can be used with ASP are VBScript and JavaScript.

3.

In the J2EE world, there are compile-time includes and runtime includes. Code in compile-time includes can interact with code in the including file. Runtime includes must be independent.

4.

If the file cannot be included when you use the require() function to include a file in PHP, the page fails to load. If include() is used, PHP proceeds with a warning.

5.

When you use virtual includes with SSI, the file can exist anywhere under the document root. When you use file, the file must be in or below the current directory.

Exercises

1.

Find out which web server you use and figure out how to apply includes to your website.

2.

If you have a web application environment available for your server, find a site that offers free sample programs and take a look at some.




Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day (5th Edition)
ISBN: 0672328860
EAN: 2147483647
Year: 2007
Pages: 305

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net