Tables And Lists. Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex.

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

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
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
Cos 125 Day 22. Agenda Assignment 6 Not corrected Waiting for tune-ins Assignment 7 is posted Assignment 7 Due April 2PM Left to do 1 Assignments.
© 2004, Robert K. Moniot Chapters 4 & 5 Introduction to HTML, More Details.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Cos 125 Day 24. Agenda All students meeting 7 Pm Monday, April 19 UMS Strategic Plan Assignment #7 Posted Due April 20 Two (one?) more to go Quiz Four.
Introducing Web Tables
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
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.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
1 XHTML Tables A table is a matrix of cells, for displaying content in rows and columns The cells can include almost any element Some cells display row.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
CIS 1310 – HTML & CSS 8 Tables. CIS 1310 – HTML & CSS Learning Outcomes  Create a Table  Apply Attributes to Format Tables  Increase the Accessibility.
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.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
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.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
Tables Learning Web Design: Chapter 8. Overview of Tables Uses for tables How to create a table Using CSS to style a table Nested tables Advanced table.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
HTML: Tables & Frames Internet Technology1. HTML: Tables Table tags ► surround the entire table ► header row (text is boldfaced) ► surround each row ►
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
HTML: Tables & Frames Internet Technology.
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.
ECA 228 Internet/Intranet Design I Tables. ECA 228 Internet/Intranet Design I Basic HTML Tables Created as a way to present rows and clumns of data.
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.
Lesson 7. Tables Table Tags and Attributes Tables HTML tables are used in two main ways: 1.To organize tabular data in a familiar spreadsheet-like way.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
1 Tables attributes. 2 Table attributes: border Activates border around cells Syntax: – where “n” is a value in pixels which controls the “thickness”
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.
How To Create HTML Tables. Table Structure General HTML code for a Web Table: table cells table cells.
COS 125 DAY 14. Agenda  Assignment 6 DUE  Assignment 7 Posted Due March 9:35 AM  Quiz 2 will be on March 30 Chapters M/C and 4 Short.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
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.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
TABLES. Session Checklist ► Learn the ways that tables can help you organize data on your Web site ► Learn how to prepare a spreadsheet-like table that.
Web Development & Design Foundations with HTML5
Working with Tables: Module A: Table Basics
Web Development & Design Foundations with HTML5 8th Edition
HTML Tables.
Introduction to HTML.
TABLES.
HTML Tables & Frames Internet Technology.
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Web Development & Design Foundations with HTML5
HTML Tables & Frames Internet Technology.
Presentation transcript:

Tables And Lists

Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex structures

Slide 3 Introduction to Tables (1) Tables are grids made up of rows and columns The intersection of a row and column is called a cell Tables can contain Text Additional markup Other tables Images And just about anything else

Slide 4 Introduction to Tables (2) Much has changed about tables from HTML 4 to HTML 5 Use tables to render truly tabular data Use CSS for presentation. In this regard, CSS has replaced some table functionality I’ll use the new constructs in this lecture to support good habits I spend quite a bit of time on this topic because tables are used so frequently

Slide 5 Basic Table Tags The tag is the outermost tag and marks the table The deprecated border attribute defines the width of the border surrounding the table The tag appears inside the tag and marks a table row The tag appears inside the tag and marks the table data (cell)

Slide 6 Basic Table Tags (Example) Row 1 Row 2 Data 1 Data 2

Slide 7 Basic Table Tags (Example)

Slide 8 Tables (More Tags) The element appears as a child of a and contains the table’s title It appears just above the table The element is similar to the element but contains the table’s header The header is typically emphasized

Slide 9 Tables (Grouping) The,, and tags are used to group table parts Header, footer, body Note that MUST appear before It’s used for dynamic table scrolling, which most browsers do not yet support These are also logical rather than physical elements

Slide 10 (Attributes) The border attribute defines the thickness of the table’s border Value is measured in pixels The cellpadding attribute defines the number of pixels from the cell wall to the cell content The cellspacing attribute defines the number of pixels between cells We can also do this with CSS

Slide 11 (Attributes)

Slide 12 Column and Cell Attributes align – justify the text within the columns left, right center width – the width of the column Use relative or absolute widths width =“25%”- 25% of the table width =“100px”- 100 pixels valign – vertical alignment Values: top, middle, bottom, baseline Supported by tables too See example

Slide 13 Columns The tag appears as a child of the or tag and describes formatting for the entire column It’s often easier than formatting individual rows or cells The tag is used to apply formatting to several columns

Slide 14 Columns (Example) Center the data in the first column and right justify the second column...

Slide 15 Cell Spanning Some tables have cells that should span multiple rows and columns rowSpan attribute is used to create a cell that spans multiple rows colspan attribute is used to create a cell that spans multiple columns

Slide 16 Cell Spanning (Example) Set Chapter6Table1Example.htm

Slide 17 Cell Spanning (Illustration)

Slide 18 Tables within Tables That said, tables can contain tables, which can contain tables. The process can get very complicated

Slide 19 Table Formatting and CSS We have not discussed CSS yet but I want to mention it here Everything is a box in the eyes of CSS A table is a box A table row is a box A table cell is a box A nested table is just another box

Slide 20 Table Formatting and CSS Borderstyle is used to set the border of a cell, row or the table All margin and padding works as you would expect

Slide 21 Table Formatting (Conflicts) Cell formatting overrides row formatting Row formatting overrides table formatting See the chapter’s example