Advanced XHTML & CSS - Tables And Forms

Advanced XHTML & CSS - Tables And Forms - CIS 4004:...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CIS 4004: Web Based IT (Adv. XHTML/CSS - Tables) Page 1 Dr. Mark Llewellyn CIS 4004: Web Based Information Technology Spring 2011 Advanced XHTML & CSS Tables Department of Electrical Engineering and Computer Science University of Central Florida Instructor : Dr. Mark Llewellyn markl@cs.ucf.edu HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/cis4004/spr2011 CIS 4004: Web Based IT (Adv. XHTML/CSS - Tables) Page 2 Dr. Mark Llewellyn In HCI and interface component is what the user utilizes to interact with your webpage. In a sense, an interface component encompasses all the supporting elements for your pages content: links, menus, forms, tables, and so on. Well be examining how these components should be written in XHTML to be valid and accessible, and how to style them with valid CSS in a variety of ways to meet the design needs of your projects. Well start with tables. Designing Interface Components - Tables CIS 4004: Web Based IT (Adv. XHTML/CSS - Tables) Page 3 Dr. Mark Llewellyn As weve mentioned before, in the past, tables were a widely abused technique for creating page layouts full of presentation markup. CSS has provided a much cleaner and more adaptable method for accomplishing page layouts, so do not use tables as a technique for designing page layouts. However, tables should still be used for their designated purpose laying out grids of data in rows and columns in the same manner in which it appears in spreadsheets or other applications where tabular data is required. Tables In XHTML and CSS CIS 4004: Web Based IT (Adv. XHTML/CSS - Tables) Page 4 Dr. Mark Llewellyn Tables in XHTML work much the same way they do in a spreadsheet or word processor application and resemble a matrix (grid). The entire table in XHTML is surrounded by the start table <table> tag and the end table tag </table>. You choose how many rows and columns you need for your table. The main body of a table is made up of rows and columns, like a matrix. In XHTML, you construct your tables one row at a time. Each row begins with an opening table row <tr> tag. Each column within that row contains the open and end tags for the table data <td> element. Tables In XHTML and CSS CIS 4004: Web Based IT (Adv. XHTML/CSS - Tables) Page 5 Dr. Mark Llewellyn After the last <td> element is closed for the last column, the row ends with the ending </tr> tag. This is the definition for a row that contains three columns. Shown on the next page is the markup for a simple XHTML table. Tables In XHTML and CSS <tr> <td> column 1 </td> <td> column 2 </td> <td> column 3 </td> </tr> CIS 4004: Web Based IT (Adv. XHTML/CSS - Tables) Page 6 Dr. Mark Llewellyn Tables In XHTML and CSS CIS 4004: Web Based IT (Adv. XHTML/CSS - Tables) Page 7 Dr. Mark Llewellyn The border attribute is used to define the border of all elements inside the table. The 1 means a 1 pixel wide default style border is applied. Without this, there will be...
View Full Document

This note was uploaded on 07/04/2011 for the course CIS 4004 taught by Professor Staff during the Spring '11 term at University of Central Florida.

Page1 / 72

Advanced XHTML &amp; CSS - Tables And Forms - CIS 4004:...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online