Principles of Web Design 5th Edition

Slides:



Advertisements
Similar presentations
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Advertisements

Cascading Style Sheets
Very quick intro HTML and CSS. Sample html A Web Title.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Advance CSS (Menu and Layout) Miftahul Huda. CSS Navigation MENU It's truly remarkable what can be achieved through CSS, especially with navigation menus.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Unit 20 - Client Side Customisation of Web Pages
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.
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
CIS 1310 – HTML & CSS 8 Tables. CIS 1310 – HTML & CSS Learning Outcomes  Create a Table  Apply Attributes to Format Tables  Increase the Accessibility.
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.
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.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Tutorial 5 Working with Tables and Columns
Tutorial 5 Working with Tables and Columns
CSS Table Properties.
Tutorial 5: Tables Session OBJECTIVES Marking row groups Marking column groups Setting the table frame Specifying the table’s internal gridlines.
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.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
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.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
Laying out Elements with CSS
CSE 154 Lecture 17: HTML tables.
4.01 Cascading Style Sheets
Organizing Content with Lists and Tables
Table Styling.
Table Styling.
Web Development & Design Foundations with HTML5
Applying CSS to Tables Stylish Tables.
Table Styling.
Creating Your Own Webpage
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Cao Yuewen SEEM4570 Tutorial 03: CSS Cao Yuewen
Web Development & Design Foundations with HTML5 8th Edition
HTML Tables.
Tutorial 5 Working with Tables and Columns
How to work with tables Chapter 10.
Chapter 7 Tables.
Chapter 5 - Introduction to XHTML: Part 2
Session I Chapter 10 - How to Work with Tables
8 Tables.
For the World Wide Web Styling Tables with CSS
HTML Level II (CyberAdvantage)
Web Development & Design Foundations with H T M L 5
SEEM4570 Tutorial 3: CSS + CSS3.0
Web Development & Design Foundations with H T M L 5
Implementing Tables to Hold Data in HTML
Web Development & Design Foundations with HTML5
Murach's HTML and CSS, 4th Edition
ITI 134: HTML5 Desktop and Mobile Level II
Web Design & Development
Lesson 5: HTML Tables.
4.01 Cascading Style Sheets
Web Development & Design Foundations with HTML5
Basics of Web Design Chapter 9 Table Basics Key Concepts
Presentation transcript:

Principles of Web Design 5th Edition Chapter Ten Data Tables

Principles of Web Design 5th Ed. Objectives When you complete this chapter, you will be able to: Use table elements Use table headers and footers Group columns Style table borders Apply padding, margins, and floats to tables Style table background colors Apply table styles Principles of Web Design 5th Ed.

Using Table Elements

Principles of Web Design 5th Ed. Using Table Elements The HTML table elements allow the arrangement of data into rows of cells and columns The table element <table> contains the table information, which consists of: Header element <th> Row element <tr> Data cell alignment <td> Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Collapsing Table Borders Tables are more legible with the table borders collapsed Use the border-collapsed property table {border-collapse: collapse;} Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed. Spanning Rows The rowspan attribute lets you create cells that span multiple rows <td class="title" rowspan="6"> Best-Selling Albums Worldwide</td> Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Using Table Headers and Footers

Using Table Headers and Footers Rows can be grouped into head, body, and footer sections using the <thead>, <tbody>, and <tfoot> elements You can style these table sections with CSS Principles of Web Design 5th Ed.

Using Table Headers and Footers thead { font-family: arial; background-color: #ccddee; } tfoot { background-color: #ddccee; font-family: times, serif; font-size: .9em; font-style: italic; Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Grouping Columns

Principles of Web Design 5th Ed. Grouping Columns The <colgroup> and <col> elements allow you to apply style characteristics to groups of columns or individual columns The <colgroup> element has a span attribute that lets you set the number of columns specified in the group The <col> element lets you specify style characteristics for individual columns Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed. Styling the Caption You can position the caption on the top or bottom of the table using the caption-site property You can also apply other style properties to enhance the caption text: caption {text-align: left; font-style: italic; padding-bottom: 10px; } Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Styling Table Borders

Principles of Web Design 5th Ed. Styling Table Borders By default, table borders are turned off You can add borders using CSS Borders can be applied to the whole table, to individual rows, and to individual cells Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed. Styling Table Borders To create a table with an outside border only: table { border: solid 1px black; border-collapse: collapse; } Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed. Styling Table Borders To specify borders for each cell, use a separate style rule: table { border: solid 1px black; border-collapse: collapse; } th, td { Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed. Styling Table Borders You can also style individual rows or cells and apply cell borders th { border-bottom: solid thick blue; background-color: #ccddee; } Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Applying Padding, Margins, and Floats to Tables

Principles of Web Design 5th Ed. Using Padding You can enhance the legibility of your table data with padding This style rule adds five pixels of padding to both types of table data elements th, td {padding: 5px;} Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Using Margins and Floats Tables can be floated Use margins to add white space around floating tables table.best { font-family: verdana; border: solid 1px black; border-collapse: collapse; float: left; margin-right: 20px; margin-bottom: 10px; } Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Styling Table Background Colors

Styling Table Background Colors You can apply background colors to: Entire table Single rows or cells Column groups of individual columns You can alternate colors for different rows Add hover interactions Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Creating Alternate Color Rows Table data is easier to read when alternate rows have a distinguishing background color Write a style rule for the odd or even row using a class selector tr.odd td {background-color: #eaead5;} Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Creating Background Hover Effects You can add interactivity to your table with hover effects When the user hovers the pointer over a cell or row, the formatting can change td:hover { color: white; background-color: #722750; } Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed. Summary Use tables for presentation of data, not for page layout Use the grouping elements to apply styles to groups of rows or columns or to the header, body, and footer of a table Apply borders to both the <table> and cell (<th> and <td>) elements to display a table border on the entire table Use the border-collapse property to make table data more legible Principles of Web Design 5th Ed.

Principles of Web Design 5th Ed. Summary Always use CSS to add presentation style to tables Use padding to add space within your cells to make your data more legible You can float tables and add margins with the box model properties Specify background colors or hovers to aid in the legibility of your data Principles of Web Design 5th Ed.