ANSWER KEY Exam I (Yellow Version) CIS 228: The Internet Prof. St. John Lehman College City University of New York 26 February 2009

Similar documents
CIS 228 (Fall 2011) Exam 1, 9/27/11

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

How the Internet Works

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

HTML Overview. With an emphasis on XHTML

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

Implementing a chat button on TECHNICAL PAPER

Micronet International College

Web Publishing Basics I

introduction to XHTML

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

Vebra Search Integration Guide

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

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.

3 Categories and Attributes

11. HTML5 and Future Web Application

CMPT 165 Unit 2 Markup Part 2

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

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Basics of Page Format

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

Introduction to HTML5

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

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

Fundamentals: Client/Server

c122jan2714.notebook January 27, 2014

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Lab 4 CSS CISC1600, Spring 2012

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

INTRODUCTION TO WEB USING HTML What is HTML?

Announcements. Paper due this Wednesday

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

Create a cool image gallery using CSS visibility and positioning property

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Creating A Web Page. Computer Concepts I and II. Sue Norris

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

Apple URL Scheme Reference

Designing and Developing a Website. December Sample Exam Marking Scheme

Chapter 4. Introduction to XHTML: Part 1

CSCU9B2: Web Tech Lecture 1

The Structural Layer (Hypertext Markup Language) Webpage Design

HTML. HTML Evolution

Inline Elements Karl Kasischke WCC INP 150 Winter

CSCI 1100L: Topics in Computing Spring 2018 Web Page Project 50 points

IT350 Web & Internet Programming. Fall 2012

What is XHTML? XHTML is the language used to create and organize a web page:

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

New Media Production HTML5

Shane Gellerman 10/17/11 LIS488 Assignment 3

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

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

This will be a paragraph about me. It might include my hobbies, where I grew up, etc.

HyperText Markup Language (HTML)

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Introduction to Web Technologies

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

HTMLnotesS15.notebook. January 25, 2015

CS134 Web Site Design & Development. Quiz1

Hypertext Markup Language HTML Chapter 2. Supporting Material for Using Google App Engine - O Reilly and Associates

Title: Sep 12 10:58 AM (1 of 38)

Dreamweaver: Portfolio Site

History of the Internet. The Internet - A Huge Virtual Network. Global Information Infrastructure. Client Server Network Connectivity

Design Project. i385f Special Topics in Information Architecture Instructor: Don Turnbull. Elias Tzoc

Copyright 2011 Sakun Sharma

Loops/Confirm Tutorial:

LA TROBE UNIVERSITY SEMESTER ONE EXAMINATION PERIOD CAMPUS AW BE BU MI SH ALLOWABLE MATERIALS

Markup Language. Made up of elements Elements create a document tree

Modify cmp.htm, contactme.htm and create scheduleme.htm

DESIGNING AND DEVELOPING A WEBSITE MARKING SCHEME

More cool scripts: Slide Show: What the settimeout() function does:

HTML Hyper Text Markup Language

CMPT 165 Unit 3 CSS Part 1. Sept. 24 th, 2015

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

HTML 5 Form Processing

Creating Web Pages Using HTML

COSC 2206 Internet Tools. Brief Survey of HTML and XHTML Document Structure Formatting

FOR EVALUATION USE ONLY

A designers guide to creating & editing templates in EzPz

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Introduction, Notepad++, File Structure, 9 Tags, Hyperlinks 1

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

TRAINING GUIDE. Rebranding Lucity Web

Management Information Systems

WEBSITE STYLE GUIDE JULY 31, 2015 VERSION 1.0 PREPARED BY

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

Schenker AB. Interface documentation Map integration

Introduction to HTML

CMPT 165 Advanced XHTML & CSS Part 3

Certified HTML5 Developer VS-1029

Web Development and Design Foundations with HTML5 8th Edition

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

MP3 (W7,8,&9): HTML Validation (Debugging) Instruction

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

HTML. HTML is now very well standardized, but sites are still not getting it right. HTML tags adaptation

Authoring World Wide Web Pages with Dreamweaver

CMT111-01/-M1: HTML & Dreamweaver. Creating an HTML Document (Continued)

Course Overview. Week 1

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

Transcription:

ANSWER KEY Exam I (Yellow Version) CIS 228: The Internet Prof. St. John Lehman College City University of New York 26 February 2009 1. True or False: (a) False An element with only a closing tag is called an empty element. (b) False Every tag must have an attribute. (c) False To specify the source for an image tag, you must always include the domain name (i.e. URL) of the server on which the file is located. (d) True img is an example of a tag. (e) False JPG is a lossless format for images. (f) True The <q> is used for displaying quotes inline. (g) False Images cannot be used as the label for a link. (h) True The <meta> goes into the <head> section of a webpage. (i) False Only files in strict HTML will be displayed by the Internet Explorer browser. (j) False HTML 4.01 is the same as XHTML 1.0. 2. Answer in two sentences or less the following: (a) What is a relative path? Give an example. A relative path gives the location of a file, relative to the current location. If your location in the file structure changes, then the relative path will change also. For example,../images/drinks.gif gives the location of the drinks.gif file relative to the current location (b) What is an absolute path? Give an example. An absolute path gives the location of a file, no matter what your current location. It can begin with the name of the webserver, followed by a sequence of folder and file names. For example, http://comet.lehman.cuny.edu/stjohn/teaching/cis288 gives the absolute path to the class website. 3. Set up the links for the following: (a) A link with the label Favorite Food and a destination of food.html: <a href="food.html">favorite Food

(b) A link with the label All the news..., a destination of http://nytimes.com, and title NYT : <a href="http://nytimes.coml">all the news... (c) A link with the label Map and a destination of directions.html that pops up in a new window. <a href="directions.html" target="_blank">map 4. Identify each of the following as an inline or a block element: (a) block ol (b) block h3 (c) inline img (d) inline em (e) block blockquote 5. Be the browser: what is displayed with the following HTML code: <h2>june 2, 2005</h2> <img src="images/segway1.jpg"> My first day of the trip! I can t believe I finally got everything packed and ready to go. Because I m on a Segway, I wasn t able to bring a whole lot with me: <ul> <li>cellphone</li> <li>ipod</li> <li>digital camera</li> <li>and a protein bar</li> </ul> Just the essentials. As Lao Tzu would have said, <q>a journey of a thousand miles begins with one Segway.</q>

June 2, 2005 My first day of the trip! I can't believe I finally got everything packed and ready to go. Because I'm on a Segway, I wasn't able to bring a whole lot with me: cellphone ipod digital camera and a protein bar Just the essentials. As Lao Tzu would have said, A journey of a thousand miles begins with one Segway. 6. Consider the following directory (folder) structure: pesto.html food chocolate.html allaboutme map.gif images pasta.jpg sundae.jpg index.html oahu.html places fiji.html paris.html (a) In the file, index.html, write the HTML that will link to the file describing chocolate in the food folder, with label, chocolate. <a href="food/chocolate.html">chocolate

(b) In the file, fiji.html, write the HTML that will display the image map.gif. <img src="../images/map.gif"> (c) In the file, index.html, write the HTML that links to the file pesto.html using the image pasta.jpg as the label. <a href="food/pesto.html"> <img src="images/pasta.jpg"> (d) In the file, paris.html, write the HTML that links to the index.html file, with the label Return to front page. <a href="../index.html">return to front page 7. Write the HTML that would display the following: (a) Begin at the beginning, the King said, very gravely, and go on till you come to the end: then stop. (Lewis Carroll, Alice in Wonderland, Ch. 12) <q>begin at the beginning,</q> the King said, very gravely, <q>and go on till you come to the end: then stop.</q> <br> (Lewis Carroll, <em>alice in Wonderland</em>, Ch. 12) (b) From chapter 2 from Alice in Wonderland: How doth the little crocodile Improve his shining tail, And pour the waters of the Nile On every golden scale!... From chapter 2 from <em>alice in Wonderland</em>: <blockquote> How doth the little crocodile<br> Improve his shining tail,<br> And pour the waters of the Nile<br> On every golden scale!...<br> </blockquote> 8. Write the HTML to: (a) create a destination anchor, called Coffee around the heading (<h3>) Coffee: <a id="coffee"><h3>coffee</h3> (b) links to http://buzz.headfirstlabs.html at the destination anchor Coffee, with label Read all about caffeine on the Buzz :

<a href="http://buzz.headfirstlabs.htm#coffee">read all about caffeine on the Buzz 9. Write a COMPLETE webpage that lists your three favorite places. Use an unordered list, include images, and use proper HTML for the page. <html> <head> <title>my favorite places</title> </head> <body> <h1>my favorite places</h1> Here are some of my favorite places: <ul> <li> California <img src="sf.jpg"> </li> <li> New Zealand <img src="nz.gif">, and </li> <li> New York City<img src="subwaymap.gif"> </li> </ul> </body> </html> 10. (a) Modify the following page to be in strict HTML 4.01. Use the appropriate <doctype> and <meta> elements and fix non-compliant parts: <html> <head> <title>mypod</title> <style type="text/css"> body { background-color: #eaf3da; } </style> </head> <body> <img src="logo/mypod.gif" alt="mypod Logo"> <h1>welcome to mypod</h1> Welcome to the place to show off your ipod, wherever you might be. <h2>seattle, Washington</h2> Me and my ipod in Seattle! You can see rain clouds and the Space Needle. You can t see the 628 coffee shops.

</body> </html> <a href="html/seattle_med.html"> <img src="thumbnails/seattle_med.jpg" alt="my ipod in Seattle"> <a href="html/seattle_shuffle.html"> <img src="thumbnails/seattle_shuffle.jpg" alt="an ipod Shuffle"> <a href="html/seattle_downtown.html"> <img src="thumbnails/seattle_downtown.jpg" alt="an ipod in Downtown"> Answer: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>mypod</title> <style type="text/css"> body { background-color: #eaf3da; } </style> </head> <body> <img src="logo/mypod.gif" alt="mypod Logo"> <h1>welcome to mypod</h1> Welcome to the place to show off your ipod, wherever you might be. <h2>seattle, Washington</h2> Me and my ipod in Seattle! You can see rain clouds and the Space Needle. You can t see the 628 coffee shops. <a href="html/seattle_med.html"> <img src="thumbnails/seattle_med.jpg" alt="my ipod in Seattle"> <a href="html/seattle_shuffle.html"> <img src="thumbnails/seattle_shuffle.jpg" alt="an ipod Shuffle">

<a href="html/seattle_downtown.html"> <img src="thumbnails/seattle_downtown.jpg" alt="an ipod in Downtown"> </body> </html> (b) What changes do you need to make this page XHTML 1.0 compliant? Change the DOCTYPE to: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> Change HTML tag to: <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> Add in the META tag: <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> Change all the ">" to "/>" for img and br tags.