XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.

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

Chapter 3 – Web Design Tables & Page Layout
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
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
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
© 2004, Robert K. Moniot Chapters 4 & 5 Introduction to HTML, More Details.
XP 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
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.
Tables And Lists. Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
XHTML1 Topics Work with the Frameset Document Type Definition (DTD) Create frames Use the target and base attributes Create nested frames Format frames.
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.
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.
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.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
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.
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.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
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:
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
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
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
Tutorial 5 Working with Tables and Columns
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: HTML/XHTML Tables (NON-audio version) © Dr. David C. Gibbs
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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
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.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
XHTML Introductory1 Frames Chapter 5. XHTML Introductory2 Objectives In this chapter, you will: Work with the Frameset Document Type Definition (DTD)
Working with Tables: Module A: Table Basics
LAB Work 02 MBA 61062: E-Commerce
HTML Tables.
Tutorial 5 Working with Tables and Columns
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 5 Introduction to XHTML: Part 2
Chapter 5 - Introduction to XHTML: Part 2
Using HTML Tables SWBAT: - create tables using HTML
Introduction to HTML.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
Presentation transcript:

XHTML1 Tables and Lists

XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists

XHTML3 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display data In a table, the intersection of any given row and column is called a cell

XHTML4 Creating Basic Tables

XHTML5 Tables are also used to lay out Web pages, much like frames have been used The W3C discourages using tables for document layout because tables can be difficult for non-visual user agents to interpret Creating Basic Tables

XHTML6 Creating Basic Tables Additionally, user agents with small monitors, such as Personal Digital Assistants (PDAs), and browsers that use large fonts may have difficulty rendering a Web page that is laid out using tables The W3C encourages the use of Cascading Style Sheets (CSS) for document layout

XHTML7 Basic Elements You create tables using the element Within the element you can nest a number of other elements that specify the content of each cell along with the structure and appearance of the table The element also includes several attributes that affect the appearance and structure of a table

XHTML8 Table Elements

XHTML9 The Element Cells are the most basic parts of a table You create a cell within the element using the element The element stands for “table data” The content of each element is the data that will appear in the table cell

XHTML10 The Element Each element essentially represents a column in the table You declare table cells within table row elements that you create with the element Each element you include within a element creates a separate row

XHTML11 Schedule Table

XHTML12 The Element Table cells can contain two types of information: data that you define with the element and heading information that you define with the element User agents render the content of a element in a distinct manner; most Web browsers display heading information in a bold typeface and align it in the center of the column

XHTML13 Captions and Summaries Most tables include a caption that describes the data in the table You create a caption for a Web page table using the element The element must be the first element following the element, and you can include only a single element per table A caption should provide a short phrase or title that clearly describes the contents of the table

XHTML14 Captions and Summaries The element is important because it allows non-visual user agents to understand the purpose of a table For short or simple tables, the element is usually sufficient for describing the purpose of the table For long or complex tables, however, you should also include the summary attribute of the element, which allows you to provide a more detailed summary of a table’s structure and content for use in non-visual user agents

XHTML15 Table Widths You use the width attribute of the element to specify the size of a table You can assign a fixed value in pixels or a percentage representing the visible width of a Web browser window

XHTML16 Table Widths

XHTML17 Horizontal Alignment You can use the align attribute to adjust the horizontal alignment of the contents of all table elements with the exception of the and elements The values you can assign to the align attribute are left, center, right, and justify

XHTML18 Horizontal Alignment

XHTML19 Structuring Tables Although table structure elements are not required in order for your documents to be well formed, it is a good idea to include them to clearly identify the different parts of your tables Table structure elements also allow you to apply default alignment and CSS styles to entire sections of a table and to adjust the width of individual columns

XHTML20 Row Groups You can create table row group elements that consist of a table header, table body, and table footer To define a table header, you use the element; to define the table body, you use the element; and to define the table footer, you use the element

XHTML21 Table Header You must place the element after any,, and elements and before the and elements Typically, you place table heading information (created with the element) within the element, as shown on page 229 of the textbook

XHTML22 Table Body The element should contain the rows of data that make up the body of a table You can use the element to align a table body and to apply CSS formatting to the table body You can also include multiple elements to control different parts of the table body

XHTML23 Table Footers The element defines information that should be placed at the bottom of a table You use the element to provide additional information about the columns or about the table itself The element must be placed before the element in order to allow a user agent to render the structure of the table before it receives the potentially large amount of data that may appear in the table body

XHTML24 Columns There are times when you may want to format the columns in your tables, either individually or as a group In this section you study column groups, which are used for applying default alignment, width, and CSS styles to groups of columns within a table

XHTML25 Column Groups You use the element to create a column group in a table You must place a element after a table’s element and before its element The element can be created either as an empty element or as a tag pair that contains elements as its content The empty element allows you to apply formatting to an individual column in a column group

XHTML26 Column Widths You cannot use the element’s width attribute to adjust the size of cells or columns in a table, which are determined automatically by each user agent In addition, you cannot adjust the widths of individual table cells with the and elements However, you can adjust the widths of columns using the width attribute of the or elements

XHTML27 Using Tables to Simulate Frames If you want to use tables to simulate frames, you create a table with the same number of cells as the number of frames you want If you want to create two horizontal frames (one at the top of a page and one on bottom), you create a table with two rows, with each row containing a single element Similarly, if you want to create two vertical frames, you create a table with a single row containing two elements

XHTML28 Using Tables to Simulate Frames To create a navigation menu on the left and a content pane on the right, you would place a list of hyperlinks in the left cell and display each link’s associated content in the right cell One of the big differences between frames and tables that simulate frames is that when you click a link in a table, the link opens an entirely new page in the same browser window—it does not display a new URL in a different area of the same page as occurs with frames

XHTML29 Formatting Tables You should handle the visual display of content with CSS Nevertheless, you can use several types of built-in table formatting options without CSS, even when using the Strict DTD

XHTML30 Borders You use the element’s border attribute to add a border to a table The value you assign to the border attribute determines the thickness of the border in pixels

XHTML31 Borders

XHTML32 The frame Attribute You can include the frame attribute in the element to specify which sides of the table should display a border

XHTML33 Rules You can include the rules attribute in the element to specify which rules should appear in a table

XHTML34 Displaying Empty Cells Web browsers do not render the borders around empty cells To fix this problem, you need to add a element for each empty cell, and include a non-breaking space character entity ( ) as each cell’s content

XHTML35 Displaying Empty Cells

XHTML36 Cell Margins The cellspacing attribute specifies the amount of horizontal and vertical space between table cells You assign to the cellspacing attribute a value representing the number of pixels that you want between table cells In comparison, the cellpadding attribute specifies the amount of horizontal and vertical space between each cell’s border and the contents of the cell

XHTML37 Cell Margins

XHTML38 Cells that Span Multiple Rows or Columns You can cause cells to span multiple rows or columns by including the rowspan or colspan attributes in the or elements As an example of the colspan attribute, the table in Figure 6-32 shows a breakdown of the animal kingdom into phylum and class

XHTML39 Cells that Span Multiple Rows or Columns

XHTML40 Vertical Alignment You can use the valign attribute, which adjusts the vertical alignment of the contents of all table elements with the exception of the and elements The values you can assign to the valign attribute are top, middle, bottom, and baseline The default valign attribute is “middle”

XHTML41 Creating Lists Lists are a very important tool in proper Web page authoring because they provide a way of logically ordering a series of words or numbers They also provide a simple, yet effective design technique for making it easier for Web site visitors to locate information You can add three types of lists to a Web page; unordered lists, ordered lists, and definition lists

XHTML42 Creating Lists

XHTML43 Unordered Lists An unordered list is a series of bulleted items To define the items you want to appear in the bulleted list, you nest elements within a element

XHTML44 Unordered Lists

XHTML45 Ordered Lists An ordered list is a series of numbered items To define the items you want to appear in the numbered list, you nest elements within an element

XHTML46 Ordered Lists

XHTML47 Definition Lists A definition list is a series of terms and their definitions Web browsers render each term and its definition on separate lines with an indented left margin You create a definition list by using the element, you nest elements for term names and elements for term definitions

XHTML48 Definition Lists

XHTML49 Summary Tables are collections of rows and columns that you use to organize and display data In a table, the intersection of any given row and column is called a cell You create tables using the element You create a cell within the element using the element You create a caption for a Web page table using the element

XHTML50 Summary You use the width attribute of the element to specify the size of a table You can create row groups in a table that consist of a table header, table body, and table foot Column groups are used for applying default alignment, width, and Cascading Style Sheets (CSS) styles to groups of columns within a table You can adjust the widths of columns using the width attribute of the or elements

XHTML51 Summary You include the frame attribute in the element to specify which sides of the table should display a border You can use a element to create an empty cell, but you must include the non-breaking space character entity ( ) as each empty cell’s content You can cause cells to span multiple rows or columns by including the rowspan or colspan attribute in the or elements

XHTML52 Summary The valign attribute adjusts the vertical alignment of the contents of all table elements with the exception of the and elements An unordered list is a series of bulleted items An ordered list is a series of numbered items A definition list is a series of terms and their definitions