Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.

Slides:



Advertisements
Similar presentations
The Web Wizards Guide to HTML Chapter Six Tables.
Advertisements

INTRODUCTORY Tutorial 8 Creating Data Tables. XP Objectives Contrast data tables with layout tables Create a table to display and organize data Provide.
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.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Working with Web Tables
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.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
กระบวนวิชา 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.
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
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.
Using HTML 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 Code. What we will cover Basic HTML Body Font Images Hyperlinks Tables Frames.
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.
 Tables are commonly used to display all manner of data, such as timetables, financial reports, and sports results etc.  Tables, just like spreadsheets,
CIS 1310 – HTML & CSS 8 Tables. CIS 1310 – HTML & CSS Learning Outcomes  Create a Table  Apply Attributes to Format Tables  Increase the Accessibility.
Lecture 16: SQL and HTML tables
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.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
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.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
Tutorial 5 Working with Tables and Columns
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Tutorial 5 Working with Tables and Columns
CSS Table Properties.
Tutorial #6 – Creating Fixed Width Layouts. Tutorial #5 Review – Box Model Every html element is surround by a box Content, Padding, Border, Margin Can.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
Tutorial 5: Tables Session OBJECTIVES Marking row groups Marking column groups Setting the table frame Specifying the table’s internal gridlines.
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.
Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything › Text › Lists › Other tables › Pictures › …
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
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.
26 HTML Tables … surround table … surround each row … surround each cell … like, but bold and centered by default (for table headings) … table title No.
How To Create HTML Tables. Table Structure General HTML code for a Web Table: table cells table cells.
CONTROLLING Page layout
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
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.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
©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.
Understanding CSS Cascading Style Sheets control the presentation of content in HTML pages Style Sheets separate formatting from the content –Styles defined.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 5.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
CSS (Cascading Style Sheets). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
CSE 154 Lecture 17: HTML tables.
Applying CSS to Tables Stylish Tables.
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
Tutorial 5 Working with Tables and Columns
How to work with tables Chapter 10.
Chapter 7 Tables.
The Internet 10/25/11 XHTML Tables
Session I Chapter 10 - How to Work with Tables
Using HTML Tables SWBAT: - create tables using HTML
HTML Level II (CyberAdvantage)
Using tables in HTML Goes in order with Examples at my site.
Murach's HTML and CSS, 4th Edition
ITI 134: HTML5 Desktop and Mobile Level II
Principles of Web Design 5th Edition
Lesson 5: HTML Tables.
Presentation transcript:

Tutorial #8 – Creating Data Tables

Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector (*) Box-Shadow and Box-Radius Figure Element ( and ) Layouts in Dreamweaver

Tutorial #7 Review – Layouts Liquid layouts use % instead of a fixed width __px; Min-width, Max-width Print Styles Media Display Property (display:none;) Display VS Visibility

Display vs. Visibility Left is display:none, right is Visibility: hidden In this case clearing the footer removed the clear:both

Creating tables The element used to create the table The title attribute used to describe table content Displays on mouse hover The element used to create a visible caption for the table Caption

Creating Rows and Cells The table row element is used to create a row Good practice to end the tr right after starting it Use space to make it easier to read. Must create a tr for each row in the table. If your table is 4x4 (4 rows 4 columns) you would need 4 TRs row data goes here

Creating Rows and Cells The table data element is used to create a table cell Goes between the table row element Need a td for each cell cell1 cell2

Table Headers Use table header element to format differently from a cell. In most cases the table header centers text and makes it bold Heading 1 Heading 2

Creating Table Borders Table borders are the horizontal and vertical lines that surround the table Also known as gridlines Use the border property to set the border in pixels In CSS: Table – Create the outside edge of the table Th, td – Create the gridlines

Table - HTML Example Heading 1 Heading 2 Cell1 Cell2

Table Style - CSS table { border: solid 5px black; } th, td{ border: solid 3px navy; }

Displaying Empty cells Can use the empty-cells property on the td selector to show the empty cell Without the gridlines will not display td{ empty-cells: show; } Prior to this property you would have to put in the specific cell (or all cells that needed it)

Merging Cells in Columns Combine adjacent cells using following attributes Colspan Rowspan The number of rows or columns to merge as the attribute values. Should be placed in the cell where it starts All empty cells should be removed

Collapsing Internal Borders By default each cell has it own border This can lead to a double edge line Border-collapse: Separate (default) – Creates double rule lines Collapse – Gives single line

Collapsing Internal Borders table { border: solid 5px black; border-collapse: collapse; /*Seen on right picture*/ }

Lab 1. Create a 6x6 Table 2. Create the top row as headers with the days of the week 3. Add a caption 4. Add Solid 5px Black border to the table and solid 3px navy border to the cells 5. Add border-collapse: collapse; to the table 6. Add a rowspan and colspan

Using CSS to Format Tables Can format the table with many of the CSS properties we have talked about. Table{ border: solid 5px black; border-collapse: collapse; width: 900px; /*fixed width*/ width: 75%; /* Liquid*/ margin: 10px auto; }

Using CSS to Format Tables caption { color: white; background-color: midnightblue; font-weight: bold; font-size: 1.5em; font-style: italic; }

Alternating Row Color Create a class with different styles Apply that class to every other row.stripe { background-color: dodgerblue; } …

Creating a Hover Effect Similar to the hover effect of anchors a hover pseudo class can be used for a table hover effect. tr:hover{ color:white; background-color: black; }

Formatting Table Columns The column element ( ) is used to format one or more columns Entered directly below the caption Should add a for each column in the table Column elements are placed inside the element

Lab 1. Add a independent class called stripe with a background-color of “dodgerblue” 2. Add the stripe class to every other row to give a stripe effect 3. Add style to your caption and table 4. Add a hover effect 5. Add a column group style

Tables in Dreamweaver A lot faster to build and maintain then by hand Demo