Michael B. Gousie - Wheaton College, MA

Comp 212 - Web Development (Fall 2025)

Introductory Information


  • Phoenix Code - one of the free IDE options. This can be used online (can be slow) or downloaded to your computer. Did I mention FREE?
  • Komodo IDE - free IDE for web development.
  • FileZilla - free FTP (file transfer protocol) application. Download the client, not the server.
  • XAMPP - free software to set up a development server on your computer (Apache, MySQL, PHP, and Perl).

Coding & Design Resources


Colors

  • ColorPicker - applet to show colors and their numerical equivalents (in hexadecimal).
  • 4096 Color Wheel - choose safe (and unsafe) web colors from 4096 choices.

Fonts

Projects/Exams

Sample final exam problems


Projects

  • Web5 - due December 7.
  • Web4 - due November 24.
Cartoon showing dependencies in large CS projects

In-Class Examples (Newer)

PHP and mySQL

Authentication

  • loginPass.php - PHP file to generate a hashed password and to show how to verify a password (loginPass.txt). This is magic.
  • authenticate.html - HTML file that creates a form to input user credentials. JavaScript then sends those credentials to a PHP file for verification with the hashed password in the database.
  • userAuth.php - PHP file to get credentials from authenticate.html and compare to the user's database hashed password (userAuth.txt).

Cookies

Basic cookies in PHP

Similar to the above, we can set and use session variables rather than cookies.

Cookies can also be created/used in JavaScript

  • cookiesStart.html - using JavaScript to set/use cookies. Note that you won't see anything happening when running this; you'll want to look at the code. The pages below use the code to implement some functionality.
  • cookies0.html - using the above to count number of times page is accessed using a session cookie.
  • cookies1.html - using the above using a persistent cookie.
  • cookiesAndPHP.html - very contrived example showing how to use cookies to store one item number via JavaScript and then compare to a "database" in PHP to get the item description. This uses the PHP file that looks like cookiesPHP.txt.

Responsive Design

In-Class Examples

HTML and CSS

JavaScript

Forms

  • postFormPlain.html - starting code for forms.
  • postForm.html - completed form to interact with the server using GET. To use POST, change the function call to "postFormPost.php" and the method to "POST".
  • validateFormPHP.html - check that data in input form is in range before posting; uses predefined PHP file.
  • inputData.html - get input data via text box and a button.
  • inputData2.html - get input data via text box only; data is returned when key is pressed.
  • jsonStart.html - starting code for in-class JSON exercise.
  • json.html - answer for previous problem.

jQuery

Image Formats

animated gif

Animated GIF

jpg image

Photographic image in JPEG format

gif image

Photographic image in GIF format

jpg image

Small portion of JPEG image

gif image

Small portion of GIF image


jpg image

JPEG line image

gif image

GIF line image

jpg image

Zoomed JPEG line image

gif image

Zoomed GIF line image

png image

PNC with transparency

jpg image

Plain ol' JPG

svg image small

SVG at 100px

svg image large

SVG at 300px

WEBP format - 36KiB

JPG format - 69KiB

png image

Uncompressed PNG (8.2K)

png image

Compressed PNG (8.2K)

webp image

Uncompressed WEBP (2.9K)

webp image

Compressed WEBP (1.3K)

jpg image

Uncompressed (no smoothing) JPG (29K)

jpg image

Compressed (no smoothing) JPG (8.6K)

Last updated