Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 5 November 2009

Similar documents
ANSWER KEY Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 2 April 2009

Sample Exam 2 (Version 1) CIS 228: The Internet Prof. St. John Lehman College City University of New York 7 November 2007

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Web Publishing Intermediate 2

<style type="text/css"> <!-- body {font-family: Verdana, Arial, sans-serif} ***set font family for entire Web page***

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Lab Introduction to Cascading Style Sheets

5 Snowdonia. 94 Web Applications with C#.ASP

Final Exam CIS 228: The Internet Prof. St. John Lehman College City University of New York 12 December 2007

CIS 228 (Fall 2011) Exam 2, 11/3/11

In the early days of the Web, designers just had the original 91 HTML tags to work with.

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

CSS.

HTMLnotesS15.notebook. January 25, 2015

Styles, Style Sheets, the Box Model and Liquid Layout

Introduction to Web Design CSS Reference

Introduction to Web Design CSS Reference

CSS. Lecture 16 COMPSCI 111/111G SS 2018

CREATING A WEBSITE USING CSS. Mrs. Procopio CTEC6 MYP1

Block & Inline Elements

CSS Lecture 16 COMPSCI 111/111G SS 2018

ICT IGCSE Practical Revision Presentation Web Authoring

Final Exam Study Guide

Lab 4 CSS CISC1600, Spring 2012

Introduction to WEB PROGRAMMING

Final Examination CIS 228: The Internet Prof. St. John Lehman College City University of New York 18 December 2008

CIS 228 (Fall, 2012) Exam 2, 11/20/12

What is the Box Model?

When you complete this chapter, you will be able to:

CSS Cascading Style Sheets

Module Contact: Dr Graeme Richards, CMP. Copyright of the University of East Anglia Version 1

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Assignments (4) Assessment as per Schedule (2)

CSS Design and Layout Basic Exercise instructions. Today's exercises. Part 1: Arrange Page into Sections. Part 1, details (screenshot below)

<body bgcolor=" " fgcolor=" " link=" " vlink=" " alink=" "> These body attributes have now been deprecated, and should not be used in XHTML.

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Introduction to using HTML to design webpages

CSCU9B2: Web Tech Lecture 3

Adding CSS to your HTML

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

The most important layout aspects that can be done with tables are:

Appendix D CSS Properties and Values

Web Design and Development Tutorial 03

COSC 2206 Internet Tools. CSS Cascading Style Sheets

Basic CSS Lecture 17

Guidelines for doing the short exercises

CS 350 Internet Applications I Name: Exam II (CSS) October 29, 2013

The default style for an unordered (bulleted) list is the bullet, or dot. You can change the style to either a square or a circle as follows:

ADDING CSS TO YOUR HTML DOCUMENT. A FEW CSS VALUES (colour, size and the box model)

CIS 228 (Spring, 2012) Final, 5/17/12

Programmazione Web a.a. 2017/2018 HTML5

Wanted! Introduction. Step 1: Styling your poster. Activity Checklist. In this project, you ll learn how to make your own poster.

HIERARCHICAL ORGANIZATION

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Exploring Computer Science Web Final - Website

Controlling Appearance the Old Way

COMP 101 Spring 2017 EXAM 2 2 March 2017

- The CSS1 specification was developed in CSSs provide the means to control and change presentation of HTML documents

3.1 Introduction. 3.2 Levels of Style Sheets. - The CSS1 specification was developed in There are three levels of style sheets

- The CSS1 specification was developed in CSS2 was released in CSS2.1 reflects browser implementations

Purpose of this doc. Most minimal. Start building your own portfolio page!

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

CSS: Cascading Style Sheets

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Wireframe :: tistory wireframe tistory.

Zen Garden. CSS Zen Garden

Title: Dec 11 3:40 PM (1 of 11)

1 Creating a simple HTML page

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

LING 408/508: Computational Techniques for Linguists. Lecture 14

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

CSS worksheet. JMC 105 Drake University

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Cascading Style Sheets Level 2

Class 9 / Instructor: Ira Epstein

CSS for Styling CS380

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

CSC 121 Computers and Scientific Thinking

Page Layout Using Tables

Creating a Job Aid using HTML and CSS

CSS

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

ICT IGCSE Practical Revision Presentation Web Authoring

CSS means Cascading Style Sheets. It is used to style HTML documents.

HTML and CSS. Data Technologies. HTML Headings. Background Reading

Creating and Building Websites

Getting Started with Eric Meyer's CSS Sculptor 1.0

c122sep2214.notebook September 22, 2014

Cascading Style Sheets (CSS)

HTML/XML. HTML Continued Introduction to CSS

Deccansoft Software Services

Using Advanced Cascading Style Sheets

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

Ministry of Higher Education and Scientific Research

ID1354 Internet Applications

Before you begin, make sure you have the images for these exercises saved in the location where you intend to create the Nuklear Family Website.

CSS: formatting webpages

Transcription:

Exam II CIS 228: The Internet Prof. St. John Lehman College City University of New York 5 November 2009 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade will be based on the work shown. The exam is closed book and closed notes. When taking the exam, you may have with you pens or pencils, and an 8 1/2 x 11 piece of paper filled with notes, programs, etc. You may not use a computer or calculator. All books and bags must be left at the front of the classroom during this exam. Do not open this exams until instructed to do so. Question 1 Question 2 Question 3 Question 4 Question 5 Question 6 Question 7 Question 8 Question 9 Question 10 TOTAL

1. True or False: (a) (b) (c) (d) (e) (f) (g) (h) (i) (j) In CSS, all properties and values in a rule go between < > brackets. The format #name is used to select any elements that belong to a class. An element can belong to at most one class. If you mix 0% red, 0% green, and 0% blue you will get black. Pseudoclasses must be defined in your HTML file to be used. The span element is used to style images only. The border property both control the amount of space around an element. Tables are defined in rows, using the <tr> element. The <th> element can only designate column headings. Every form must have a select element. 2. Answer in two sentences or less the following: (a) What does the style element do? Give an example. (b) What does link element do? How does it differ from the style element? 3. For each of the following, identify whether it would be done in HTML or CSS: (a) (b) (c) (d) (e) (f) (g) (h) (i) (j) use sans-serif fonts make a link s color red increase the margin around an element create an unordered list change the font color of the page change the bullets (or markers) for a list create a table inside a table create a link include contact information on a page set up a radio buttons

4. Fill in the following table with the corresponding decimal or hexcode representation of the number. For partial credit, show your work. Decimal 14 33 254 Hexcode #14 #ab 5. Write a complete CSS style sheet that: uses a cursive font throughout the page, has blue <h1> and <h2> headings that have a purple dashed bottom border, visited links are blue, and images inside a p element have solid silver thin borders.

6. Be the browser with the following HTML and CSS files. Draw the page and indicate any style (color, borders, etc) on your page: HTML: CSS: <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> img { <head> <title>favorite Artists</title> border: solid black 2px; <link type="text/css" rel="stylesheet" padding: 15px; href="artists.css" /> margin: 10px; </head> <body> } <h1>my Favorite Artists</h1> #sidebar { <div id="sidebar"> <h2>museums</h2> width: 200px; <ul> float: right; <li><a href="http://www.okeeffemuseum.org">o Keefe border: 4px solid #eeeeee; Museum</a></li> } <li><a href="http://www.moma.org">museum of #footer { Modern Art</a></li> </ul> clear: both; font-size: small; <div id="georgia"> <h2>georgia O Keefe</h2> text-align: center; <p><img src="poppies.jpg" width="250"> </p> } <p>american Painter, 1887-1986. </p> #georgia { color: #ee0000; <div id="jasper"> width: 400px; <h2>jasper Johns</h2> border: #ee0000 dotted 1px; <p><img src="map1961.jpg" width = "250"></p> <p>american Painter and Printmaker, born 1930.</p> } #jasper { <div id="footer"> color: #0000ee; <p>katherine St. John, width: 400px; <span class="email">stjohn@lehman.cuny.edu</span> border: #0000ee dotted 1px; </p> }.email { </body> </html> font-family: Courier,monospace; }

7. Write the HTML that does the following for a form: (a) sets up the web application to be http://hflabs.com/pizza.php and uses the POST method: (b) makes a text box where a name can be entered: (c) allows the user to crust for their pizza order from thin, deep dish, cheese crust (allow only one element to be selected): (d) makes a drop-down menu with a choice of: Delivery, Take Away, or Eat In.

8. Write the HTML code and the style sheet for the table with the following information: (Hint: Remember to align the text for each cell, borders and caption.) Lehman College: Total Enrollment Undergraduate Graduate Total Fall 2007 8,864 2,058 10,922 Fall 2008 9,570 2,291 11,861 HTML: CSS:

9. Write the style sheet that will arrange the following page: the overall left and right margins of the page should be 75 pixels, the nav section have a fixed position on the upper left hand side, list items should have no left margins, the text should be centered in the main section of the page, and the footer should clear both sections. (Hint: Do not change any of the HTML code.) <html> <head> <title>lehman College: Division of Natural & Social Sciences</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="../../css/natural_social.css" /> </head> <body> <div id="nav"> <ul class="division"> <li><a href="index.html">home</a></li> <li><a href="departments.html">departments and programs</a></li> <li><a href="http://www.sigmaxi.org">sigma xi honor society</a></li> <li><a href="http://www.lehman.edu">lehman home</a></li> </ul> <div id="main"> <p><img src="images/science_building_drawing.jpg" alt="science Building" width="450" /></p> <ul> <li><a href="advancing.html">advancing Science at Lehman College</a></li> </ul> <p class="update">updated: 11/03/2009</p> <div id="footer"> 302 Shuster Hall, 250 Bedford Park Blvd. West, Bronx, NY 10468 </body> </html>

10. Write a complete HTML file and CSS file to display information about two people you admire. The page should have a header, with title, and a footer with your contact information. The information about the two people should be displayed side by side. Each should include a title, an image, and a paragraph describing them. The text in header and footer sections should centered. All sections of the page should be surrounded by padding and a border. HTML: CSS: