CMSC 122
Intro to Programming via the Web

09/23/17   Attention Mac users: If you are using the Safari browser, you may find that it is not uploading files successfully to the HTML validator! It appears to be uploading an empty file instead of the file you have specified. If this happens, you'll get three errors that look like this screenshot. What can you do about it? Install a browser that works! I strongly recommend installing and using Google Chrome.

09/22/17   A list of topics to study for Quiz #2 (which is on Wednesday) is here.

09/21/17   Regarding photos in the project: If your photos are being displayed "sideways" (rotated 90 degrees from how they appear in other applications) it is due to the presence of EXIF data recorded with the photo that "suggests" a proper orientation. Most browsers ignore this information. I suggest removing the EXIF data from the photo and then using a photo editing tool to rotate the photo, as needed. Here is an online tool that you can use to remove the EXIF data from a photo.

09/12/17   Project #1 has been posted. You will find a link to the project description under the "Assignments" tab, above. This project will take a significant amount of time, so get started right away!

09/08/17   Amin's office hour on Wednesday 9/13 from 11 to 12 is cancelled for next week. He will still be there from 10 to 11, but not from 11 to 12.

09/01/17   If you have a laptop, please install Komodo Edit on it (available under the "Resources" tab), and bring it to class on Wednesday, 9/6. We will be doing an in-class exercise.

08/25/17   All students are required to attend the lecture for which they are registered. Sorry, but the course is quite full, so we will be adhering to this policy very strictly.

08/25/17   Welcome to CMSC 122 for the Fall 2017 Semester. Important announcements will appear here as the semester goes on. Be sure to look every day.

Welcome to CMSC 122. This course provides an introduction to the internet/web capabilities and trends, and to computer programming in the context of building simple web pages. Intended for students with no previous programming experience who wish to understand the technologies making web sites possible, this course will provide a set of practical problem solving skills necessary for the development of dynamic client-side web content. This class provides non-majors with a basic skill set for leveraging web technologies and limits of such resources.

Topical Content
  • History of the Web/Internet
  • Internet and Society
  • Web/Internet Fundamentals
  • HTML/CSS for dynamic web sites
  • Web authoring tools
  • Design (pseudocode)
  • Input/Output/Expressions in JavaScript
  • Conditional/Iteration Statements in JavaScript
  • Testing/Debugging
  • Aggregate types in JavaScript
  • Web Page Evaluation
  • Research-Quality Web Searching
  • Basics of usability and art theory in web page design
  • Basics of e-commerce and tool integration in the web

Fawzi Emad

Recommended Textbooks

There is no required textbook for this course and no assignments will refer to a textbook.

The web is full of useful information that can help you learn the material we will be covering, and we will suggest many (free) web resources as references as we go along. For students who like having a textbook as a secondary source of explanations and for practice problems, we recommend those listed below. Older editions of these books are just as useful as the newest editions, and there are many vendors selling these materials online for reasonable prices.

A textbook may be available as an eBook (EBK). This version is the actual text, costs less than the text,and is available for 180 days. It is downloaded directly to the student's computer.

Title Authors ISBN
JavaScript: A Beginner's Guide, Second Edition John Pollack 9780071809375
HTML and XHTML Pocket Reference Jennifer Niederst Robbins 9781449363352
CSS Pocket Reference (Any Edition) Eric A. Meyer 9781449399030

Course Grades

Final grades will be computed according the following weights.

35% Projects
8% Research Paper
10% Quizzes (Some Pop Quizzes)
12% Midterm #1
12% Midterm #2
23% Final Exam

Due dates

Programming Projects

The due dates for these assignments are rigid. Programming assignments will be due at 11:00PM on the date specified at the top of the project description. You may submit a programming assignment up to 24 hours after the due date, but you will be penalized 20 points (we will subtract 20 points from your total). No assignments will be accepted after the late deadline. Exceptional circumstances will be considered only if discussed with the instructor before the assignment is due. These assignments are to be submitted electronically according to the instructions provided in the project description. We will not accept programming assignments via email.

Written Assignments

Assignments that are to be handed in on paper will be due at the beginning of class. These assignments will not be accepted after the due date unless there are very extraordinary circumstances. We will not accept written assignments via email.

Project Implementation
Projects in this class must be completed individually and collaboration is not permitted. All assignments can be done on the machine of your choice. You are welcome to do the work on a home computer if you have one. There should not be any machine-specific dependencies in your code. However, if we are not able to run your program because there is a difference between your and our computer environments, you must work with us to get your program to work in our environment.

Online Posting of Project Implementations Not Allowed

Class Announcements

You are responsible for reading the class announcements that are posted on this webpage often (at least once a day). Important information about the course (e.g., deadlines, project updates, etc.) will be posted in this section.

Excused Absences
  1. Any student who needs to be excused for an absence from a single class session , due to a medically necessitated absence shall:
    • Make a reasonable attempt to inform the instructor of his/her illness prior to the class. If you are going to miss an in-class assignment then we expect to hear from you (either email or a telephone message) before the class session begins.
    • Upon returning to the class, present their instructor with a self-signed note attesting to the date of their illness. The note must contain an acknowledgment by the student that the information provided is true and correct. Providing false information to University officials is prohibited under Part 9(h) of the Code of Student Conduct (V-1.00(B) University of Maryland Code of Student Conduct) and will result in disciplinary action.
    • This self-documentation may not be used for the Major Scheduled Grading Events as defined below and it may only be used for 1 class meeting during the course.

  2. Any student who needs to be excused for more than one absence, or for a "Major Scheduled Grading Event", must provide written documentation of the illness from the Health Center or from an outside health care provider. This documentation must verify dates of treatment and indicate the timeframe that the student was unable to meet academic responsibilities. The documentation should be given to the instructor, not the TA. We will not accept a "self-signed" note for "major scheduled grading events", as defined below, nor for multiple absences. The note must be signed by a health care professional.

    The Major Scheduled Grading Events for this course include:
    • Midterm #1
    • Midterm #2
    • Final Exam
    • Programming Projects
    • Research Paper
It is also the student's responsibility to inform the instructor of any intended absences from exams for religious observances in advance. Notice should be provided as soon as possible but no later than one week prior to the exam.

Academic Honesty

Note that academic dishonesty includes not only cheating, fabrication, and plagiarism, but also includes helping other students commit acts of academic dishonesty by allowing them to obtain copies of your work. You are allowed to use the Web for reference purposes, but you may not copy code from any website or any other source. In short, all submitted work must be your own.

Cases of academic dishonesty will be pursued to the fullest extent possible as stipulated by the Office of Student Conduct. Without exception every case of suspec\ ted academic dishonesty will be referred to the Office. If the student is found to be responsible of academic dishonesty, the typical sanction results in a special grade "XF", indicating that the course was failed due to academic dishonesty. More serious instances can result in expulsion from the university. If you have any doubt as to whether an act of yours might constitute academic dishonesty, please contact your TA or the course coordinator.

The University of Maryland, College Park has a nationally recognized Code of Academic Integrity, administered by the Student Honor Council.B This code sets standards for academic integrity at Maryland for all undergraduate and graduate students. As a student you are responsible for upholding these standards for this course. It is very important for you to be aware of the consequences of cheating, fabrication, facilitation, and plagiarism. For more information on the Code of Academic Integrity or the Student Honor Council, please visit

Examples of Academic Integrity Violations

The following are examples of academic integrity violations:

Course Evaluations
Your participation in the evaluation of courses through CourseEvalUM is a responsibility you hold as a student member of our academic community. Your feedback is confidential and important to the improvement of teaching and learning at the University as well as to the tenure and promotion process. Please go directly to the website ( to complete your evaluations.

Disability Support Services
Any student eligible for and requesting reasonable academic accommodations due to a disability is requested to provide, to the instructor in office hours, a letter of accommodation from the Office of Accessibility and Disability Service (ADS) within the first two weeks of the semester. If special accommodations are to be given for any exam, then the student is also required to schedule the exam at least four days before the date on which the exam will be taken. Exams scheduled through the ADS testing center must be scheduled for a time that overlaps with the student's actual class time. You may not schedule the exam for an alternate date or time.
Exam Dates:

Lecture Schedule (Approximate):
Week 1
Course overview, Intro to Networks
Lecture Slides
Servers, World Wide Web, DNS
Lecture Slides
URL's, HTML, tags
Lecture Slides
Coding Examples
Week 2
Labor Day Holiday (No Class) HTML validation, practice session
Lecture Slides
Comments, attributes, lists, links, etc.
Lecture Slides
Coding Examples
Week 3
Last day for schedule adjustment (drop/add)
Images, tables, block vs. inline elements
Lecture Slides
Coding Examples
Practice Session
Lecture Slides
Coding Examples
Quiz #1
Intro to CSS
Lecture Slides
Coding Examples
Week 4
CSS Children, parent, descendants; colors; size units; comments; selectors (universal, id)
Lecture Slides
Coding Examples
Class selectors; pseudo-classes
Lecture Slides
Coding Examples
Borders, box model, fonts, backgrounds, positioning
Lecture Slides
Coding Examples
Week 5
Research on the web; Validity of web resources; practice session
Quiz #2
Intro to JavaScript; output, comments
Strings, variables, user input (prompt), variable names, type conversions
Week 6
Math functions, comparison operators, boolean variables, if and if/else statements
Logical operators, Practice Session
Review for midterm
Week 7
Midterm #1 Return and go over Midterm
Java error console; While loops
Week 8
Nested loops, Do-while loops, Intro to functions
Nested loops, Do-while loops, Intro to functions
More functions, parameters, return values
Week 9
Local vs. global variables, Event driven programming, Javascript events and event handlers, dynamically updating HTML elements
Another dynamic example; "Pausing" with setTimeout; for loops
Quiz #3
Week 10
Modifying arrays; Practice Session (Event driven programming; dynamic updates)
Review; Practice functions and arrays
Intro to forms; buttons, text boxes
Week 11
Last day to Withdraw from a course.
Forms: Multi-line text box, checkboxes, radio buttons, selection boxes
Labels, Practice session (calculator)

Fieldset, Legend, Client-side form submission, get vs. post
Quiz #4
Week 12
Separating JavaScript form HTML, Measuring and Improving "Usability"
Intro to Color Theory; tips for becoming a better programmer!
Review for Midterm
Week 13
Midterm #2 Thanksgiving Break (No class)
Week 14
Go over Midterm Rounding errors, 2-dimenensional arrays, increment/decrement operators
Variations on assignment operator, break/continue, intro to Recursion
Week 15
Continue recursion
Continue recursion
Quiz #5

Review for final
Week 16
Review for final
Final Exam

Fawzi Emad
Office: 3265 A.V. Williams
Office Hours: Mon 2-3, Wed 2-3, Fri 3-4

Teaching Assistants
 EmailOffice Hours
Ioana Bercea (See table below)
Amin Ghiasi (See table below)
Rangfu Hu (See table below)
Pattara Sukprasert (See table below)

TA Office Hours Schedule

All TA office hours take place in room 1112 A.V. Williams. Please note that a TA may need to leave 5 minutes before the end of the hour in order to go to his/her class. Please be understanding of their schedules.

9:00 - 10:00 Ioana     Rangfu Rangfu
10:00 - 11:00 Ioana Pat Amin Rangfu Rangfu
11:00 - 12:00   Pat Amin    
12:00 - 1:00          
1:00 - 2:00         Amin
2:00 - 3:00 Pat   Ioana   Amin
3:00 - 4:00 Pat   Ioana    
Online Course Tools

Programming Resources

File Transfer Client

Online Tutorials
Term Assignments
Assignment Due Date

Focused Projects
Assignment Due Date
"My Life" Webpage Wednesday 09/27/15, 11:00PM