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)

Similar documents
Introduction to XHTML: Part 2

Introduction to XHTML Pearson Education, Inc. All rights reserved.

Internet and New Media (INM)

Course Syllabus COURSE NAME

CHETTINAD COLLEGE OF ENGINEERNG AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT I XHTML

Chapter 2: Introduction to HTML Part 1 HTML. Editing HTML. Editing HTML. HTML Concepts. Introduction to HTML: Part 1. CS 80: Internet Programming

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

Advanced HTML Scripting WebGUI Users Conference

COMP519: Web Programming Lecture 4: HTML (Part 3)

Summary 4/5. (contains info about the html)

Chapter 5. Introduction to XHTML: Part 2

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

96 Intermediate HTML 4 Chapter 4

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

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

Structure Bars. Tag Bar

2.1 Origins and Evolution of HTML

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

c122sep2214.notebook September 22, 2014

Web Development & Design Foundations with HTML5

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

HTML & XHTML Tag Quick Reference

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Tables *Note: Nothing in Volcano!*

CSC Web Technologies, Spring HTML Review

Introducing Web Tables

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Part A Short Answer (50 marks)

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

HTML 5 Tables and Forms

Exercise #2: your Profile

Chapter 4. Introduction to XHTML: Part 1

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

OVERVIEW. How tables are structured. Table headers. Cell spanning (rows and columns) Table captions. Row and column groups

Chapter 4 Notes. Creating Tables in a Website

HTML. HTML Evolution

IT350 Web & Internet Programming. Fall 2012

Chapter 9 Table Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 2 Introduction to XHTML

2.1 Origins and Evolution of HTML. 2.3 HTML Document Structure

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

THE ASIAN SCHOOL. Class-10. ch8. A. Check the Right Answer (1*9)

(from Chapter 5 & 25.6 of the text)

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

Advanced Web Programming C2. Basic Web Technologies

Website Development with HTML5, CSS and Bootstrap

Deccansoft Software Services

IMY 110 Theme 7 HTML Tables

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

2.1 Origins and Evolution of HTML

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

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

Chapter 7 Tables and Layout

Index. CSS directive, # (octothorpe), intrapage links, 26

Chapter 4 - Introduction to XHTML: Part 1

Table-Based Web Pages

Creating Web Pages Using HTML

CSC 101: Lab #2 HTML and the WWW Manual and Report Lab Date: Tuesday, 2/2/2010 Report Due Date: Friday, 2/5/2010 3:00pm

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

HTML WORKSHEET Explain HTML HEAD Tag Title Tag BASEFONT Tag

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

HYPERTEXT MARKUP LANGUAGE ( HTML )

JSF - H:PANELGRID. JSF Tag. Rendered Output. Tag Attributes. The h:panel tag renders an HTML "table" element. Attribute & Description.

CSC Web Programming. Introduction to HTML

Dreamweaver CS3 Concepts and Techniques

LESSON LEARNING TARGETS

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

HTML Tags <A></A> <A HREF=" CNN </A> HREF

Web Design and Application Development

ICT IGCSE Practical Revision Presentation Web Authoring

Create a cool image gallery using CSS visibility and positioning property

Hyperlinks, Tables, Forms and Frameworks

Web Technology. HTML & xhtml

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

Certified HTML5 Developer VS-1029

Section 508C This manual provides basic information on applicable guidelines and best practices for 508 Compliance.

Creating a Web Page with HTML

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

What is Web Accessibility? Who is affected by an inaccessible Website?

Chapter 7 Tables and Layout

Project 3 CIS 408 Internet Computing

Wireframe :: tistory wireframe tistory.

Qualys Cloud Platform v2.x API Release Notes

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

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

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

Name Related Elements Type Default Depr. DTD Comment

Final Exam Study Guide

HTML: The Basics & Block Elements

Document Object Model. Overview

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

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

HTML and CSS COURSE SYLLABUS

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

Html basics Course Outline

CSCU9B2: Web Tech Lecture 1

Chapter 4 Creating Tables in a Web Site Using an External Style Sheet

HTML Overview. With an emphasis on XHTML

Transcription:

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) 4.10 Tables 1

Table Basics table element border, summary, caption Sections: <thead> <tfoot> <tbody> Actual contents: <th> <td> Table Example #1 <?xml version = "1.0" encoding = "utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> table1.html (1 of 2) <!-- Fig. 4.10: table1.html --> <!-- Creating a basic table. --> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>a simple XHTML table</title> </head> <body> <!-- the <table> tag opens a table --> <table border = "1" width = "40%" summary = "This table provides information about the price of fruit"> <!-- the <caption> tag summarizes the table's --> <!-- contents (this helps the visually impaired) --> <caption><strong>price of Fruit</strong></caption> 2

<!-- the <thead> section appears first in the table --> <!-- it formats the table header area --> <thead> <!-- inserts a table row --> <th>fruit</th> <!-- insert a heading cell --> <th>price</th> </thead> table1.html (2 of 2) <!-- the <tfoot> section appears last in the table --> <!-- it formats the table footer --> <tfoot> <th>total</th> <th>$3.75</th> </tfoot> <!-- all table content is enclosed --> <!-- within the <tbody> --> <tbody> <td>apple</td> <!-- insert a data cell --> <td>$0.25</td> <td>orange</td> <td>$0.50</td>... </tbody> </table> </body> </html> Table Example #2 (modified) 3

<table border = "1"> <caption>here is a more complex sample table.</caption> <thead> <!-- rowspans and colspans merge the specified --> <!-- number of cells vertically or horizontally --> <!-- merge two rows --> <th rowspan = "2"> table2.html (2 of 4) <img src = "camel.gif" width = "205" height = "167" alt = "Picture of a camel" /> </th> <!-- merge four columns --> <th colspan = "4" valign="bottom"> <h1>camelid comparison</h1> <p>approximate as of 6/2007</p> </th> <th># of Humps</th> <th>indigenous region</th> <th>spits?</th> <th>produces Wool?</th> </thead> table2.html (3 of 4) <tbody> <th align="left">camels (bactrian)</th> <td>2</td> <td>africa/asia</td> <td>yes</td> <td>yes</td> <th align="left">llamas</th> <td>1</td> <td>andes Mountains</td> <td>yes</td> <td>yes</td> </tbody> </table> 4

Exercise #1: Write XHTML to generate this table: Exercise #2: Write XHTML to generate this table: 5

Exercise #3: Write XHTML to generate this table: 4.11 Forms 6

<form method = "post" action = "cgi -bin/sendmail.pl"> <p> <!-- hidden inputs contain non-visual --> <!-- information --> <input type = "hidden" name = "recipient" value = "deitel@deitel.com" /> <input type = "hidden" name = "subject" value = "Feedback Form" /> <input type = "hidden" name = "redirect" value = "main.html" /> </p> form.html (2 of 3) <!-- <input type = "text"> inserts a text box --> <p><label>name: <input name = "name" type = "text" size = "25" maxlength = "30" /> </label></p> <p> <!-- input types "submit" and "reset" insert --> <!-- buttons for submitting and clearing the --> <!-- form's contents --> <input type = "submit" value = "Submit" /> <input type = "reset" value = "Clear" /> </p> </form> 5.5 More Complex XHTML Forms 7

Key issue: How is data sent to the server? method = get Appends form data directly to the end of the URL http://... submit.cgi?name=smith&vote=3 http://www.google.com/search?q=monkeys method = post Appends form data to the browser request Key issue: What provides security? Using <input type= password > Using <input type= hidden > Using https:// Using http:// 8

Exercise #1: Write XHTML to generate this form: Exercise #2: Write XHTML to generate this form: 9