Advanced XHTML & CSS - Tables And Forms

Advanced XHTML & CSS - Tables And Forms - CGS 2585 -...

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: CGS 2585 - Advanced XHTML/CSS – Tables And Forms Page 1 © Dr. Mark Llewellyn CGS 2585: Desktop/Internet Publishing Spring 2011 Advanced XHTML & CSS – Tables Department of Electrical Engineering and Computer Science University of Central Florida Instructor : Dr. Mark Llewellyn [email protected] HEC 236, 407-823-2790 http://www.cs.ucf.edu/courses/cgs2585/spr2011 CGS 2585 - Advanced XHTML/CSS – Tables And Forms 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 page’s content: links, menus, forms, tables, and so on. • We’ll 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. • We’ll start with tables. Designing Interface Components - Tables CGS 2585 - Advanced XHTML/CSS – Tables And Forms Page 3 © Dr. Mark Llewellyn • As we’ve 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 CGS 2585 - Advanced XHTML/CSS – Tables And Forms 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 CGS 2585 - Advanced XHTML/CSS – Tables And Forms 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> CGS 2585 - Advanced XHTML/CSS – Tables And Forms Page 6 © Dr. Mark Llewellyn Tables In XHTML and CSS CGS 2585 - Advanced XHTML/CSS – Tables And Forms 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 noapplied....
View Full Document

This note was uploaded on 07/16/2011 for the course CGS 2585 taught by Professor Llewellyn during the Spring '11 term at University of Central Florida.

Page1 / 72

Advanced XHTML & CSS - Tables And Forms - CGS 2585 -...

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