In this chapter, you will learn how to...



Similar documents
HTML Lesson 7. Your assignment:

CHAPTER 10. When you complete this chapter, you will be able to:

Introduction to Adobe Dreamweaver CC

Lecture 9 HTML Lists & Tables (Web Development Lecture 3)

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts

Coding HTML Tips, Tricks and Best Practices

HTML Tables. IT 3203 Introduction to Web Development

Web Design I. Spring 2009 Kevin Cole Gallaudet University

<a href="document URL"... attributes-list>link Text</a>

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

8 STEPS TO CODE KILLER RESPONSIVE S

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

Tutorial 5. Working with Web Tables

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

Simply download Beepip from and run the file when it arrives at your computer.

SAULT COLLEGE OF APPLIED ARTS AND TECHNOLOGY SAULT STE. MARIE, ONTARIO COURSE OUTLINE

Web Authoring CSS. Module Descriptor

Atable is an orderly arrangement of data distributed across a grid of rows and

Web Development CSE2WD Final Examination June (a) Which organisation is primarily responsible for HTML, CSS and DOM standards?

{color:blue; font-size: 12px;}

CST 150 Web Design I CSS Review - In-Class Lab

The Essential Guide to HTML Design

Advanced Editor User s Guide

Eloqua What is this and why should I read it?

Chapter 1: Outlook Isn t Going Anywhere Chapter 2: 17 Must-Know Tricks for Outlook 2007, 2010 &

Positioning Container Elements

Web page design in 7 days!

Learnem.com. Web Development Course Series. Learn em. HTML Web Design in 7 days! By: Siamak Sarmady

Using Adobe Dreamweaver CS4 (10.0)

Style & Layout in the web: CSS and Bootstrap

LAB 4 HTML TABLES AND FORMS

Contents. Downloading the Data Files Centering Page Elements... 6

GUIDE TO CODE KILLER RESPONSIVE S

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

Web Development 1 A4 Project Description Web Architecture

Create Your own Company s Design Theme

mpdf Example 37. Barcodes <?php

Create a Web Page with Dreamweaver

Introduction to XHTML. 2010, Robert K. Moniot 1

Creator Coding Guidelines Toolbox

FOUNDATION OF INFORMATION TECHNOLOGY Class-X (TERM II)

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

How to Create a Mobile Responsive Template in ExactTarget

<?xml version= 1.0?> <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

Magic Liquidizer Documentation

HTML Fails: What No One Tells You About HTML

Foundation of Information Technology (Code No: 165) Sample Question Paper II Summative Assessment - Term II. Max Time: 3 hours Max Marks: 90 SECTION A

BlueHornet Whitepaper

How to Properly Compose HTML Code : 1

What is CSS? Official W3C standard for controlling presentation Style sheets rely on underlying markup structure

Joomla Article Advanced Topics: Table Layouts

Web Design and Databases WD: Class 7: HTML and CSS Part 3

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

ANDROID TRAINING COURSE MODULES. Module-I: Introduction to Android. Introducing Android. Installing Development Tools. Using the Emulator.

Learning Web Design. Third Edition. A Beginner's Guide to (X)HTML, Style Sheets, and Web Graphics. Jennifer Niederst Robbins

Foundations of Web Design

PDF MAKER FOR VTIGER CRM

How To Write A Web Page In Html

Using and creating Crosstabs in Crystal Reports Juri Urbainczyk

Selectors in Action LESSON 3

Course: CSC 224 Internet Technology I (2 credits Compulsory)

C:\wamp\www\webdok\07bootstrap\bootstrap dist\css\bootstrap.css 2. juli :18

Creating Web Pages with HTML Simplified. 3rd Edition

core HyperText Markup Language (HTML) Designing Documents for the World Wide Web

Chapter 8 More on Links, Layout, and Mobile Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Web Development I & II*

Interactive Data Visualization for the Web Scott Murray

ITNP43: HTML Lecture 4

Staying Relevant in a Competitive World: Using the SAS Output Delivery System to Enhance, Customize, and Render Reports

HTML Fundamentals IN THIS APPENDIX

Introduction to Drupal

Umbraco v4 Editors Manual

Foundations. Web Development and Design. with HTML5. [Terry Ann Felke-Morris, Ed.D.J. 6th Edition. Harper College. Piyali Sengupta.

JJY s Joomla 1.5 Template Design Tutorial:

Intro to Web Design. ACM UIUC

Caldes CM12: Content Management Software Introduction v1.9

Web Design and Development ACS Chapter 9. Page Structure

The Da Vinci Coding: The Art of HTML

LaGuardia Community College Thomson Ave, Long Island City, New York Created by ISMD s Dept. Training Team. Overview

Creative Guidelines for s

How to craft a modern, mobile-optimized HTML template. Jason Samuels, NCFR IT Manager DrupalCamp Twin Cities May 2012

Outline of CSS: Cascading Style Sheets

CSS for Page Layout. Key Concepts

HTML Power Tips. HTML messages improve your CTR. World s Easiest Marketing.

Introduction to Web Design Curriculum Sample

Transcription:

LEARNING OUTCOMES In this chapter, you will learn how to... Create a table on a web page Apply attributes to format tables, table rows, and table cells Increase the accessibility of a table Style an HTML table with CSS 1

HTML TABLE Tables are used on web pages to organize tabular information Composed of rows and columns similar to a spreadsheet. Each individual table cell is at the intersection of a specific row and column. Configured with table, tr, and td elements 2

<table> Contains the table HTML TABLE ELEMENTS Contains a table row <td> Contains a table cell <caption> Configures a description of the table 3

<table border="1"> <caption>bird Sightings</caption> <td>name</td> <td>date</td> <td>bobolink</td> <td>5/25/10</td> <td>upland Sandpiper</td> <td>6/03/10</td> </table> HTML TABLE EXAMPLE 4

<table border="1"> <th>name</th> <th>birthday</th> <td>james</td> <td>11/08</td> <td>karen</td> <td>4/17</td> <td>sparky</td> <td>11/28</td> </table> HTML TABLE EXAMPLE 2 Using the <th> Element 5

HTML COMMON TABLE ATTRIBUTES align (obsolete) bgcolor (obsolete) border (obsolete) cellpadding (obsolete) cellspacing (obsolete) summary (obsolete but may be reinstated) width (obsolete) Use CSS to configure table characteristics instead of HTML attributes 6

HTML COMMON TABLE CELL ATTRIBUTES align (obsolete) bgcolor (obsolete) colspan rowspan valign height (deprecated) width (deprecated) Use CSS to configure most table cell characteristics instead of HTML attributes 7

HTML COLSPAN ATTRIBUTE <table border="1"> <td colspan= 2 > Birthday List</td> <td>james</td> <td>11/08</td> <td>karen</td> <td>4/17</td> </table> 8

HTML ROWSPAN ATTRIBUTE <table border="1"> <td rowspan="2">this spans two rows</td> <td>row 1 Column 2</td> <td>row 2 Column 2</td> </table> 9

ACCESSIBILITY AND TABLES Use table header elements (<th> tags) to indicate column or row headings. Use the caption element to provide a text title or caption for the table. Complex tables: Associate table cell values with their corresponding headers <th> tag id attribute <td> tag headers attribute 10

<table border="1"> <caption>bird Sightings</caption> <th id="name">name</th> <th id="date">date</th> <td headers="name">bobolink</td> <td headers="date">5/25/10</td> <td headers="name">upland Sandpiper</td> <td headers="date">6/03/10</td> </table> 11

USING CSS TO STYLE A TABLE HTML Attribute align CSS Property Align a table: table { width: 75%; margin: auto; } Align within a table cell: text-align bgcolor cellpadding cellspacing height valign width border background-color padding border-spacing or border-collapse height vertical-align width border, border-style, or border-spacing -- background-image 12

CSS STRUCTURAL PSEUDO-CLASSES Pseudo-class :first-of-type :first-child :last-of-type :last-child :nth-of-type(n) Purpose Applies to the first element of the specified type Applies to the first child of an element (CSS2 selector) Applies to the last element of the specified type Applies to the last child of an element Applies to the nth element of the specified type Values: a number, odd, or even Zebra Stripe a Table tr:nth-of-type(even) { background-color: #eaeaea; } 13

<table> <caption>time Sheet</caption> <thead> <th id="day">day</th> <th id="hours">hours</th> </thead> <tbody> <td headers="day">monday</td> <td headers="hours">4</td> <td headers="day">friday</td> <td headers="hours">3</td> </tbody> <tfoot> <td headers="day">total</td> <td headers="hours">18</td> </tfoot> </table> <thead> table head rows <tbody > table body rows <tfoot> table footer rows TABLE ROW GROUPS 14

SUMMARY This chapter introduced the HTML and CSS techniques used to create and configure tables on web pages. 15