1 TECH1001 Lecture 6 Electronic Publishing and Production 1 More About Tables.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

INTRODUCTORY Tutorial 8 Creating Data Tables. XP Objectives Contrast data tables with layout tables Create a table to display and organize data Provide.
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Designing Web Pages Tables part one. Using Tables for Page Layout 2.
Tutorial 5 Working with Web Tables
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
TABLES 6 How to create tables What information suits tables How to represent complex data in tables.
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introducing Web Tables
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Using HTML Tables.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
XHTML Tables. Tables create little boxes in which you can place things to keep them organized. The little boxes are called table cells. Tables are created.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
Website Development with Dreamweaver
CIS234A Lecture 9 Instructor Greg D’Andrea. Working with Table's Column Groups We've formatted the content of the table columns by modifying the attributes.
Cascading Style Sheets Tom Osman. Keep the content of a webpage separate from the formatting of the page. Structure (of content)  Headings  Sub headings.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: HTML/XHTML Tables (NON-audio version) © Dr. David C. Gibbs
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
How To Create HTML Tables. Table Structure General HTML code for a Web Table: table cells table cells.
Cascading Style Sheets
Creating Tables in a Web Site HTML 4 Created by S. Cox.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Web111a_chapt04.ppt HTM: Section 4 Tables Table Types Text table elements Easy to use Use fixed-font text (font family monospace) Andale Mono Courier Monaco.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Advanced Tables. Let's build some tables using each of these features and then try combining both features into the same table. Spanning Rows and Columns.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
Tutorial 5 Working with Web Tables
CNIT 131 HTML5 - Tables.
CSE 154 Lecture 17: HTML tables.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Advanced Tables.
Organizing Content with Lists and Tables
Working with Tables: Module A: Table Basics
>> Introduction to CSS
Positioning Objects with CSS and Tables
Madam Hazwani binti Rahmat
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
Tutorial 5 Working with Tables and Columns
Chapter 7 Tables.
Lesson 7 Week 7 Course project defence Nov. 7, 2017
Tutorial 5 Working with Web Tables
HTML Tables CS 1150 Fall 2016.
Using HTML Tables SWBAT: - create tables using HTML
Advanced Tables.
Introduction to HTML.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Positioning Objects with CSS and Tables
Presentation transcript:

1 TECH1001 Lecture 6 Electronic Publishing and Production 1 More About Tables

2 This lecture introduces XHTML/HTML tables which are grids made up of rows and columns. The lecture will cover: Creating basic tables Adding deleting rows, columns Spanning columns and rows Adding borders Linking tables with style sheets and adding colour to table elements

3 Tables are useful to: Present complex information in a more readable format To improve presentation/ page layout of a HTML document Basic Table elements table - a table within an XHTML document tr – a row within a table td – a cell within a row th – a heading cell within a row

4 Introduction to layout start and end tag of the table all table elements will be between these tags Table with an empty row Table with a single row and two cells within the row Binder 1.0 Join Multiple Objects table_ex0.html

5 Example -1 This table has a heading row with two cells, three rows for information each row containing two cells of data TECH1001 Tables Explained -1 Product Purpose Binder 1.0 Join Multiple Objects Organizer 2.2 Join multiple objects for easy access and changing Splitter 3.2 Divide Single Object into Multiple small objects table_ex1.html

6 Notice that the content is present, but the table does not include any formatting or borders Also notice the content inside 'th' tags are centred Adding a new row To add a new row insert, additional 'tr' and 'td' elements where you want the new data to appear.

7 TECH1001 Tables Explained -2 Product Purpose Binder 1.0 Join Multiple Objects Organizer 2.2 Join multiple objects for easy access and changing Combiner 0.9 Join multiple objects at the edges Splitter 3.2 Divide Single Object into Multiple small objects table_ex2.html

8 Adding a column Adding a column is some what more difficult than adding a row because you have to add a cell to each row. However, the general process is the same: You insert elements where you want them to appear either to the left or to the right of existing columns.

9 !-- tables explained -3 --> TECH1001 Tables Explained -3 Product Purpose Industry Standard Terms Binder 1.0 Join Multiple Objects Stapler Organizer 2.2 Join multiple objects for easy access and changing. Ring Binder Combiner 0.9 Join multiple objects at the edge Tape Splitter 3.2 Divide Single Object into Multiple small objects Scissors table_ex3.html

10 Table borders borders are lines that enclose tables and separate rows, columns and cells This is done by adding a border attribute to the opening table tag table_ex4.html

11 Spanning rows and Columns Spanning refers to stretching a cell over multiple rows or columns Span Attributes: AttributeUse rowspan="n"how many rows the cell should span' colspan="n"how many columns the cell should span

12 In the following example we are going to add another column to our table, The first cell of this new column will span the first three rows of our table. and the second cell is not going to be a spanned cell table_ex5.html Tables Explained -5

13 Type Product Purpose Industry Standard Terms Joining Tools Binder 1.0 Join Multiple Objects at the edge Stapler Organizer 2.2 Joint multiple objects for easy access and changing Ring Binder Combiner 0.9 Join multiple objects at the edge Tape Dividing Tools Splitter 3.2 Divide Single Object into Multiple small objects Scissors

14 Spanning Columns: You can span a column using either 'th' or 'td' element depending whether you are spanning table heading cells or table information cells The following example shows how to add two th cells – one with the word Merchandise and one with the phrase Descriptive Information will be added to our table These two new cells will each span two columns of our table table_ex6.html TECH1001 Tables Explained -6

15 Merchandise Descriptive Information Type Product Purpose Industry Standard Terms Joinin Tools Binder 1.0 Join Multiple Objects at the edge Stapler Organizer 2.2 Join multiple objects for easy access and changing. Ring Binder Combiner 0.9 Join multiple objects at the edge Tape Dividing Tools Splitter 3.2 Divide Single Object into Multiple small objects Scissors

16 Adding A Caption: A caption is a descriptive text that usually appears above the table Office Product Merchandise and Category Information : ……….rest of the table : table_ex7.html

17 Use of Cell Width to Format Columns: Cell width can be used to specify what percentage of a table is occupied by a specific column width="n%" to the 'th' or 'td' element, where n % means % of the table occupied by the specified column For Example if we want 'Purpose' hedder column to occupy 50% of the table and the 'Industry Standard Terms' to occupy' 15% of the table table_ex7.html table_ex8.html

18 Office Product Merchandise and Category Information Merchandise Descriptive Information Type Product Purpose Industry Standard Terms :

19 Making the top two headings 50% each: TECH1001 Tables Explained -9 Office Product Merchandise and Category Information Merchandise Descriptive Information Type Product Purpose Industry Standard Terms : : table_ex9.htmltable_ex9.html :

20 Linking with Style sheets by linking a style sheet to our table we can change specific cell properties, such as; font colour cell colour font style font size etc. table_ex10.html external css file 'table.css' body{font-family: Helvetica, Verdana, sans-serif; color: green;} td.highlight1 {background-color: yellow; color:red;} th.highlight2 {background-color: pink;} tr.highlight3 {background-color: gray; color:red;}

21 The HTML file table_ex10.htmltable_ex10.html TECH1001 Tables Explained -10 Office Product Merchandise and Category Information <th colspan="2" class="highlight2" width="50%">Merchandise <th colspan="2" class="highlight2" >Descriptive Information Type Product Purpose Industry Standard Terms

22 Joining Tools Binder 1.0 Join Multiple Objects at the edge Stapler Organizer 2.2 Join multiple objects for easy access and changing Ring Binder Combiner 0.9 Join multiple objects at the edge Tape Dividing Tools Splitter 3.2 Divide Single Object into Multiple small objects Scissors

23 Why use CSS with tables: It helps to separate the content from style tags such as 'font color' etc. Helps to easily change style issues of a table, or set of tables by changing a single CSS file conforms with W3C web standards

24 What have we learnt? How to create a table How to change row and column formats Use of style sheets with tables