Week 5 Working with Tables. 2 Understanding Table Basics.

Slides:



Advertisements
Similar presentations
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.
Advertisements

ECA 228 Internet/Intranet Design I
Designing Web Pages Tables part one. Using Tables for Page Layout 2.
Tutorial 5 Working with Web Tables
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Working with Web Tables
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
Tutorial 4: Designing a Web Page with Tables
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
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.
Using HTML Tables.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
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.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
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.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
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 Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
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.
Chapter 5 Creating Page Templates
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
Adobe Dreamweaver CS3 Revealed CHAPTER FIVE: USING HTML TABLES TO LAY OUT A PAGE.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
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
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
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.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
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.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
Chapter 5 Creating Page Templates. Principles of Web Design 2nd Ed. Chapter 5 2 Principles of Web Design Chapter 5 Objectives Understand table basics.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
Using Tables for Layout INP150 Session #8. Layout Map out your page Design with paper and pencil Determine number of rows and columns you need Determine.
Positioning Objects with CSS and Tables
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Tutorial 5: Tables Session OBJECTIVES Create a table Insert a table summary Insert a table caption Add rows and cells Merge Cells inside a Table.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Tables creating a table within a web page. What makes up a table? Columns Rows.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
CIS101 Introduction to Computing Week 07 Spring 2004.
Tutorial 5 Working with Web Tables
Working with Tables: Module A: Table Basics
Positioning Objects with CSS and Tables
Tables and Frames.
LAB Work 02 MBA 61062: E-Commerce
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Web Tables
HTML and CSS 8th Edition Chapter 18: Tables.
Using HTML Tables SWBAT: - create tables using HTML
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Positioning Objects with CSS and Tables
Presentation transcript:

Week 5 Working with Tables

2 Understanding Table Basics

3 Using Table Elements To build effective page templates, you must be familiar with the HTML table elements and attributes The element contains the table information, which consists of table row elements and individual table data cells –These are the three elements you will use most frequently when you are building tables

4

5

6

7 Basic Table Code Breed Description Group French Bulldog Loyal Companion Non-Sporting Wheaten Terrier High energy, friendly Terrier English Pointer Hunting companion Sporting Australian Cattle Dog Guarding, herding Working

8 Captions and Table Header lets you add a caption to the top or bottom of the table By default, captions display at the top of the table; you can use the align=“bottom” attribute to align the caption at the bottom of the table The tag lets you create a table header cell that presents the cell content as bold and centered

9

10 Defining Table Attributes Table attributes let you further define a number of table characteristics You can apply attributes at three levels of table structure: global, row level, or cell level

11 Global Table Attributes Global attributes affect the entire table

12 Row-Level Table Attributes Row-level attributes affect the entire table

13 Cell-Level Table Attributes Cell-level attributes affect only the contents of one cell

14 Spanning Columns The colspan attribute lets you create cells that span multiple columns of a table Column cells always span to the right

15

16 Spanning Rows The rowspan attribute lets you create cells that span multiple rows of a table Rows always span down

17

18 Formatting Tables

19 Choosing Relative or Fixed Table Widths Set relative table widths as percentages in the table width attribute –If you choose relative table widths, your tables will resize based on the size of the browser window Set absolute table widths as pixel values in the table width attribute –Fixed tables remain constant regardless of the browser window size

20

21

22 Determining the Correct Fixed Width for a Table The most common width for page template tables is approximately 975 pixels This width supports the 1024 x 768 screen resolution

23

24 Adding White Space in a Table You can add white space into a table with the cellpadding and cellspacing attributes

25

26

27 Removing Default Table Spacing Default spacing values are included in the table even when you don’t specify values for the table’s border, cellpadding, or cellspacing attributes Depending on the browser, approximately two pixels are reserved for each of these values You can remove the default spacing by explicitly stating a zero value for each attribute

28

29

30 Table Pointers for Well- Designed Tables

31 Table Pointers for Well- Designed Tables Write code that is easy to read Remove extra white spaces Center tables to adapt to different resolutions Stack tables for quicker downloading Avoid nested tables Use Cascading Style Sheets for table styles

32 Removing Extra Spaces Always remove any leading or trailing spaces in your table cell content These spaces cause problems when you try to join the contents of adjacent cells

33

34 Centering Tables Centering a fixed table makes it independent of resolution changes, because the table is always centered in the browser window

35

36 Stacking Tables Because of the way browsers display tables, it is better to build several small tables rather than one large one This technique, called stacking tables, also can simplify your table design task, because smaller tables are easier to work with

37

38 Avoid Nesting Tables Nesting tables is the practice of placing an entire table within a table cell Nested tables are not accessible to screen readers and other assistive devices This technique is being replaced by newer techniques such as CSS positioning

39

40 Examples of Page Templates The following templates cover a variety of page layout needs You may choose to stack different templates on top of each other for more complex layouts

41

42

43

44

45

46

47 Summary Plan your tables by sketching them out first Use fixed table widths if you want to determine the size of your page rather than let the browser determine the width Use relative widths if you want to build tables that resize with the browser window, wrapping your content to fit Write table code that is easy to read, remove extra spaces, and choose whether to center or stack tables Avoid using nested tables and use CSS whenever possible to add presentation style to tables

48 Summary Work on your pages with the table borders turned on, which displays the cell boundaries When you are finished with your layout, you can turn the borders off Size your tables based on the page size you want to create –Use 1024 x 768 as your base screen resolution –In most cases you’ll set the width but not the height of your tables, allowing the content to flow down the page

49 Summary Test your work! –Table settings, especially cell widths and heights, can vary based on the user’s browser