Part A Short Answer (50 marks)

Similar documents
AIM. 10 September

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

CSI 3140 WWW Structures, Techniques and Standards

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

HTML. HTML Evolution

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

Advanced HTML Scripting WebGUI Users Conference

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

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

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

HyperText Markup Language (HTML)

Schenker AB. Interface documentation Map integration

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Web Development IB PRECISION EXAMS

introduction to XHTML

XHTML & CSS CASCADING STYLE SHEETS

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

Lecture : 3. Practical : 2. Course Credit. Tutorial : 0. Total : 5. Course Learning Outcomes

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition)

Designing and Developing a Website. December Sample Exam Marking Scheme

Web Site Development with HTML/JavaScrip

Document Object Model. Overview

Styles, Style Sheets, the Box Model and Liquid Layout

HTML & XHTML Tag Quick Reference

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

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

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Implementing a chat button on TECHNICAL PAPER

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

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.

Designing for Web Using Markup Language and Style Sheets

Create a cool image gallery using CSS visibility and positioning property

IMY 110 Theme 7 HTML Tables

IT6503 WEB PROGRAMMING. Unit-I

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

Problem Set 7: Website Development

PIC 40A. Lecture 4b: New elements in HTML5. Copyright 2011 Jukka Virtanen UCLA 1 04/09/14

Intro to html. --- define every element, attribute, and entity along with the rules for their use

map1.html 1/1 lectures/8/src/

Wireframe :: tistory wireframe tistory.

Micronet International College

Student, Perfect Midterm Exam March 24, 2006 Exam ID: 3193 CS-081/Vickery Page 1 of 5

Creating HTML files using Notepad

By Ryan Stevenson. Guidebook #2 HTML

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

E-Business Systems 1 INTE2047 Lab Exercises. Lab 5 Valid HTML, Home Page & Editor Tables

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

Exam : 9A Title : Adobe GoLive CS2 ACE Exam. Version : DEMO

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

CSC309 Midterm Exam Summer 2007

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

Shankersinh Vaghela Bapu Institue of Technology

Website Development with HTML5, CSS and Bootstrap

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

Web Design and Application Development

Web development using PHP & MySQL with HTML5, CSS, JavaScript

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

Vebra Search Integration Guide

Programmazione Web a.a. 2017/2018 HTML5

SOEN287: Web Programming

Brief Introduction to ITU-T H.762 (LIME)

Web Development & Design Foundations with HTML5

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

Student, Perfect CS-081 Final Exam May 21, 2010 Student ID: 9999 Exam ID: 3122 Page 1 of 6 Instructions:

Chapter 4 Notes. Creating Tables in a Website

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Hyper- Any time any where go to any web pages. Text- Simple Text. Markup- What will you do

Alpha College of Engineering and Technology. Question Bank

Aleph - Web Opac Accessibility. Accessibility in Aleph500 Web OPAC

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

Copyright 2011 Sakun Sharma

$this->dbtype = "mysql"; // Change this if you are not running a mysql database server. Note, the publishing solution has only been tested on MySQL.

IMY 110 Theme 11 HTML Frames

Proper_Name Final Exam December 21, 2005 CS-081/Vickery Page 1 of 4

Southern College Kolej Selatan 南方学院. Final Examination Semester 1 / Year 2011

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

Lab 01 Practicing XHTML

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

Module 2 (III): XHTML

Deccansoft Software Services

Fundamentals: Client/Server

Lesson 5 Introduction to Cascading Style Sheets

LAMPIRAN. Universitas Sumatera Utara

CITS1231 Midterm Test (A total of 45 marks)

FUNDAMENTALS OF WEB DESIGN (46)

DESIGNING AND DEVELOPING A WEBSITE MARKING SCHEME

COMS 359: Interactive Media

Programming the World Wide Web by Robert W. Sebesta

2.1 Origins and Evolution of HTML

Contents. 1. Using Cherry 1.1 Getting started 1.2 Logging in

INSTITUTE OF TECHNOLOGY AND ADVANCED LEARNING SCHOOL OF APPLIED TECHNOLOGY COURSE OUTLINE ACADEMIC YEAR 2012/2013

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

Bridges To Computing

Mobile Site Development

Stickers! Introduction. Step 1: Colourful coding sticker

BA. (Hons) Graphics Design

A designers guide to creating & editing templates in EzPz

Structured documents

VTU Question Bank. UNIT 1 Introduction to WWW, XHTML

Transcription:

Part A Short Answer (50 marks) NOTE: Answers for Part A should be no more than 3-4 sentences long. 1. (5 marks) What is the purpose of HTML? What is the purpose of a DTD? How do HTML and DTDs relate to each other? 2. (3 marks) What is the main purpose of using <div> and <span> HTML tags? What is the difference between <div> and <span>? 3. (2 marks) Give two main advantages of using CSS. 4. (6 marks) What are the three ways to include CSS in web pages? Explain what each one actually means by giving an example of how to access the CSS from the web page. 5. (3 marks) Regarding CSS and XHTML, what is a validator used for? Explain how the W3C Validators are used. Why is it a good idea to make sure web pages are valid? 6. (4 marks) In relation to JavaScript, describe what the DOM is. Give a JavaScript instruction which would change the source file of an image on a form to beach.jpg. 7. (4 marks) Explain what is meant by client-server architecture for the web. In particular, identify which processes occur on the server side and which on the client side. Also state which side is more secure and why? 8. (6 marks) What is meant by "form validation"? What function can be used to match a regular expression in PHP? What function do we use to match a regular expression in JavaScript? Why is it important to validate on both the server and the client side? 9. (3 marks) Explain what is meant by the term HCI what do the letters stand for and broadly what considerations should be taken into account? For instance in what circumstances could website background colour be an issue? Apart from accessibility issues, what other features of HCI should be considered when designing a website? COSC2413/2426 Web Programming, Semester 1, 2010 Page 1 of 8

10. (3 marks) List the 3 different modes to open a file with using PHP (using fopen). Briefly explain each mode. 11. (3 marks) Identify three things which a PHP session can enable to happen on a website. 12. (4 marks) List two popular types of layouts used for web pages. List two things you can do to make your website navigation more usable and user friendly. 13. (4 marks) What is XML? Explain two differences between an.xml file and a.txt file. COSC2413/2426 Web Programming, Semester 1, 2010 Page 2 of 8

Part B Understanding and Writing Code (50 marks) 1. (6 Marks) Look at the following HTML. There are some problems with the code which prevent it from validating as strict XHTML. Find all the problems and rewrite the correct code below: HTML Code: <html> <head> <title>find the errors!</head> </title> <body> <p> <h1>the Heading! <a HREF=http://google.com>Link 1</a> <br> <STRONG>The Body</STRONG> </body> </html> Rewrite the code here (some code given already): <?xml version= 1.0?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> COSC2413/2426 Web Programming, Semester 1, 2010 Page 3 of 8

2. (6 marks) First look at the following XHTML code which is designed to make a table and then draw what the table will look like in the box below: Table Code: <table width="80%" height="80% border= 1px > <tr> <td>a</td> <td colspan= 2 style= text-align: center >B</td> </tr> <tr> <td rowspan= 2 >C</td> <td style= text-align: right >D</td> <td>e</td> </tr> <tr> <td>f</td> <td>g</td> </tr> </table> Draw what the table will look like here: COSC2413/2426 Web Programming, Semester 1, 2010 Page 4 of 8

3. (14 marks) Using XHTML and JavaScript, please code a registration form like the following: Registration * means required field Full Name * Username * Password * Melbourne Location Canberra Other Age 14-18 Type here Profile Register! Note: The age field should have options 0-13, 14-18, 19-30, and 30+. If the form is submitted and a required field is missing o Pop up a window saying Please fill in all required fields (the error message doesn t have to be specific). o Do not submit the page (i.e. stay on the same page) If the form is filled in correctly, submit to process_form.php Write your code here (some code given already): <?xml version= 1.0?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> COSC2413/2426 Web Programming, Semester 1, 2010 Page 5 of 8

(Problem 3 Continued) COSC2413/2426 Web Programming, Semester 1, 2010 Page 6 of 8

4. (8 marks) Write regular expressions to match each of the following inputs. (a) A full name consisting of two words (Example: Kevin Chang) (b) A username that has at least 6 characters, which can contain alphanumeric characters, underscores(_), and periods (.) (c) A valid RMIT student ID (example: s1234567) (d) A valid email ending in either.com,.net, or.edu (example: ben@gmail.com) 5. (8 marks) Look at the following code and write what the output to the browser will look like. Then rewrite the code to use a while or for loop instead of using foreach. PHP Code: <?php $my_array = array(); $my_array[] = "apples" $my_array[] = "oranges" $my_array[] = "grapes"?> foreach($my_array as $fruit) { if ($fruit == "orange") { echo "I like to eat ". $fruit. "<br />"; } else { echo "I don't like to eat ". $fruit. "<br />"; } } Write Output Here: COSC2413/2426 Web Programming, Semester 1, 2010 Page 7 of 8

Rewrite Code Here: <?php $my_array = array(); $my_array[] = "apple" $my_array[] = "orange" $my_array[] = "grape" // Write your code here to use a while or for loop instead?> 6. (8 Marks) Using PHP sessions, write a page that will count how many times a user has visited the page, then output it to the screen. Your PHP Code: <?php?> COSC2413/2426 Web Programming, Semester 1, 2010 Page 8 of 8