Basic Tables.

Slides:



Advertisements
Similar presentations
HTML TABLES EXPLAINED. What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields,
Advertisements

Designing Web Pages Tables part one. Using Tables for Page Layout 2.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Working with Web Tables
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
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.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
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.
XHTML Tables. Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are.
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.
Bayu Priyambadha, S.Kom. for long documents, you can even have links to other locations in that same document  … where ident is a variable for identifying.
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.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
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.
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
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.
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.
Basic Table Elements. 2 Objectives Define table elements Describe the steps used to plan, design, and code a table Create a borderless table with text.
Tables with XHTML Please use speaker notes for additional information!
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
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.
Introduction to Web Authoring Ellen Cushman our syllabus
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
CSS Table Styling. Up to this point, as we haven't applied any CSS styling to our tables, our example tables have not been too pleasing to the eye. CSS.
Tables: Basic Elements Header 1Header 2Header 3 Row 1, Column 1Row 1, Column 2Row 1, Column 3 Row 2, Column 1Row 2, Column 2Row 2, Column 3 Row 3, Column.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
Tutorial 5 Working with Web Tables
XHTML Tables.
CNIT 131 HTML5 - Tables.
Advanced Tables.
CSS Table Styling.
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Positioning Objects with CSS and Tables
Tables and Frames.
LAB Work 02 MBA 61062: E-Commerce
Tutorial 5 Working with Tables and Columns
H T M L A B E S X P I N D.
Tutorial 5 Working with Web Tables
CSS Table Styling.
TABLES.
8 Tables.
CSS Table Styling.
XHTML Tables.
TABLES.
LESSON Extension Module 2: HTML Basics Tables.
Basic Tables.
HTML Tables & Frames Internet Technology.
Basic Tables.
Advanced Tables.
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
Advanced Tables.
Positioning Objects with CSS and Tables
XHTML Tables.
HTML Tables & Frames Internet Technology.
Presentation transcript:

Basic Tables

The <table> Element The <table> element is a powerful tool for web designers: Tables allow us to display information in a predictable and uniform fashion on a web page. Tables are well suited for presenting data that conforms to rows and columns. Content in table cells is easy to format consistently. In the past, tables were often used to lay out and organize an entire web page. This was a misuse of the <table> element, which should be used only to present specific information within a page's overall content.

Rows and Columns Row Column This simple table has two columns and three rows.

Building an XHTML Table <tr> <td></td> </tr> </table> <table> </table> Establishes the table on the web page. Defines a new table row, which spans the available width of the table. <tr> </tr> Defines a cell of table data within a row. The <td> cells will evenly share the horizontal space in a row. If there is just one <td> element in a row, it will use the entire width available. <td> </td> In this code, we have created a table and defined three table rows, each with two cells of table data (i.e. two columns). If we loaded this in a browser, nothing would show on the page, as we have only created the structure of the table but haven't yet populated the table with any data.

Adding Table Data <table> <tr> <td>State</td> <td>Capital</td> </tr> <td>Arizona</td> <td>Phoenix</td> <td>Georgia</td> <td>Atlanta</td> </table> Here we have added meaningful data to the table and it is displayed on our web page, though the table is not very visually appealing.

Defining a Border <table border="1"> <tr> <td>State</td> <td>Capital</td> </tr> <td>Arizona</td> <td>Phoenix</td> <td>Georgia</td> <td>Atlanta</td> </table> By adding the border="1" attribute to the table element, browsers will display the table with vertical and horizontal borders around each cell. This makes the table a bit easier to view.

Specifying Table Headers <table border="1"> <tr> <th>State</th> <th>Capital</th> </tr> <td>Arizona</td> <td>Phoenix</td> <td>Georgia</td> <td>Atlanta</td> </table> If the text in our top row is meant to serve as column labels for the data below, we can use the <th> ("table header") element instead of regular <td> elements. This informs the browser to automatically bold and center the text. Table headers can also be placed down the first column to label the row contents.

Table Styling Though somewhat improved, this table still lacks visual appeal on the page. In order to fully control how the table appears, we will need something more powerful than XHTML. That something is CSS, which we will get our first look at in the next lesson.