Web Design and Development ACS Chapter 12. Using Tables 11/22/2016 1

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

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

Tutorial 5. Working with Web Tables

Introduction to Adobe Dreamweaver CC

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

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

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

HTML Tables. IT 3203 Introduction to Web Development

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

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

Positioning Container Elements

HTML Lesson 7. Your assignment:

Garfield Public Schools Fine & Practical Arts Curriculum Web Design

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

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

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

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

WYSIWYG Editor in Detail

Web Authoring CSS. Module Descriptor

Web Developer Jr - Newbie Course

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

JJY s Joomla 1.5 Template Design Tutorial:

Joomla Article Advanced Topics: Table Layouts

Principles of Web Design 6 th Edition. Chapter 12 Responsive Web Design

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

Web Design and Development ACS Chapter 9. Page Structure

Creating Web Pages with Microsoft FrontPage

Coding HTML Tips, Tricks and Best Practices

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

Create Your own Company s Design Theme

Full report on all 24 clients

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

Style & Layout in the web: CSS and Bootstrap

ICE: HTML, CSS, and Validation

Chapter 7 Page Layout Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Creating Web Pages with HTML Simplified. 3rd Edition

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

Using Style Sheets for Consistency

Using Adobe Dreamweaver CS4 (10.0)

Web Design with CSS and CSS3. Dr. Jan Stelovsky

Intro to Web Design. ACM UIUC

Last week we talked about creating your own tags: div tags and span tags. A div tag goes around other tags, e.g.,:

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

Informz for Mobile Devices: Making Your s PDA and Phone-Friendly

KOMPOZER Web Design Software

Responsive Web Design: Media Types/Media Queries/Fluid Images

Creating Web Pages with Dreamweaver CS 6 and CSS

Campaign Guidelines and Best Practices

LAB 4 HTML TABLES AND FORMS

Web Design I. Spring 2009 Kevin Cole Gallaudet University

CREATING HORIZONTAL NAVIGATION BAR USING ADOBE DREAMWEAVER CS5

Drupal Training Guide

Level 1 - Clients and Markup

GUIDE TO CODE KILLER RESPONSIVE S

BLACKBOARD 9.1: Text Editor

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

Microsoft FrontPage 2003

The Essential Guide to HTML Design

Dreamweaver Domain 2: Planning Site Design and Page Layout

CSS for Page Layout. Key Concepts

Advanced Editor User s Guide

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

Responsive Web Design (RWD) Best Practices Guide Version:

ITNP43: HTML Lecture 4

^/ CS> KRIS. JAMSA, PhD, MBA. y» A- JONES & BARTLETT LEARNING

Lesson Review Answers

Tips and tricks with Text boxes in Mahara

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

mpdf Example 37. Barcodes <?php

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

USER GUIDE. Unit 4: Schoolwires Editor. Chapter 1: Editor

SAML Authentication Quick Start Guide

7 th Annual LiveText Collaboration Conference. Advanced Document Authoring

Creator Coding Guidelines Toolbox

Working with the new enudge responsive styles

Style Guide Provided courtesy of Innovative Emergency Management Inc.

Web page design in 7 days!

Outline of CSS: Cascading Style Sheets

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

Cut-to-the-Chase Series Web Foundations. HTML Assignment. By Eric Matthews Visit us at:

ORACLE WEB CONTENT MANAGEMENT SYSTEM 2010

Designing HTML ers

Website Development Komodo Editor and HTML Intro

Microsoft Expression Web Quickstart Guide

How To Design A Website For The Decs

ADOBE DREAMWEAVER CS3 TUTORIAL

ODS for PRINT, REPORT and TABULATE

Creative Guidelines for s

Praktikum Entwicklung Mediensysteme (für Master)

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

Umbraco v4 Editors Manual

QUESTION BANK COMPUTER SCIENCE. Class VIII LESSON-1 INTRODUCTION TO MS ACCESS

Quick Reference Guide

Training Studio Templates Documentation Table of Contents

Fundamentals of Web Design (One Semester)

IE Class Web Design Curriculum

Web Portal User Guide. Version 6.0

introduces the subject matter, presents clear navigation, is easy to visually scan, and leads to more in-depth content. Additional Resources 10

Transcription:

Web Design and Development ACS-1809 Chapter 12 Using Tables 11/22/2016 1

Using Tables Understand the concept and uses of tables in web pages Create a basic table structure Format tables within web pages Format content within table cells 11/22/2016 2

Examples of Tables in HTML O X O X O X X O X 11/22/2016 3

Basic Table Structure Example: <table> <tr> <td>cell content</td> <td>cell content</td> </tr> <tr> <td>cell content</td> <td>cell content</td> </tr> </table> 11/22/2016 4

A Simple Table The layout of a graphical table two rows two columns 11/22/2016 5

A simple table <table> <tr> <td> First Cell </td> <td> Second Cell </td> </tr> <tr> <td> Third Cell </td> <td> Fourth Cell </td> </tr> </table> 11/22/2016 6

Table Example 18,953 20,081 22,131 25,112 30,468 984 2,324 6,171 14,781 25,987 11/22/2016 7

Table Headings 11/22/2016 8

Table Headings <table> <tr> <th>heading</th> <th>heading</th> </tr> <tr> <td>cell content</td> <td>cell content</td> </tr> </table> 11/22/2016 9

Adding Table Headings to the Table Text in cells formatted with the <th> tag is bold and centered above each table column Row of table headings 11/22/2016 10

Tables - Summary Table: <table>content</table> Table row: <tr>content</tr> Table cell: <td>content</td> Table heading: <th>content</th> 11/22/2016 11

Images In Tables You can add images to any of the cells Just put an img element inside the cell in which you want to display the image <td><img src="star.gif" width="64" height="64"> </td> 11/22/2016 12

Table Borders Add attribute in the 'table' tag border="value" where value is 1 or 0 1 turns on all the internal and external borders 0 turns off all the borders Style the borders: {border: border-width, border-style, border-color;} table, th, td { border: 1px solid black; } 11/22/2016 13

Border Properties Border-collapse Value: Collapse turn off all the space between the cell borders Separate maintains the space between the cell borders So you can use the border-spacing property to specify the space value table {border-collapse: separate; borderspacing: 10px 5px;} 11/22/2016 14

Spacing Properties You can use padding and margin properties in style sheet on tables Padding and margin for table Only padding for table cells 11/22/2016 15

Defining the Table Size It s a good practice to specify the size of your table The size here is the width and height of the table as measured in pixels or as a percentage of the display area table {width: size ; height: size ;> To create a table whose height is equal to the entire height of the display area, enter the attribute height= 100% If you specify an absolute size for a table in pixels, its size remains constant, regardless of the browser or monitor settings used What if you have multiple tables to style in a single page? 11/22/2016 16

Setting the Width of the Table to 70% of the page width 11/22/2016 17

Defining the Table Size Remember that some monitors may display Web pages at a resolution of 640 by 480 pixels that can be considered as the lowest resolution of today Make sure the page s height is a 100% of the browser window when you set the table height to 100% 11/22/2016 18

More Of Table Properties Like to an image, you can use the float property to be aligned to the right or left of any surrounding text. table {float: right; } You can also style a table with background color table {background-color: #090; } You can even use an image as the background for the table table {background-image: url( star.gif ); } 11/22/2016 19

Caption Add the following tag directly after the <table> tag and before the first <tr> tag <caption >Table Caption</caption> Style the caption in CSS: caption-side : top, bottom, left, right text-align : right, left, center caption { text-align: right; caption-side: bottom; } 11/22/2016 20

Result of a Table Caption A table with caption table caption 11/22/2016 21

Format Content Within Table Cells You can also format the individual table cells You can change vertical and horizontal alignment to the table rows and table cells. tr, td, and th different coverages Text-align: left, right, center, or string (like. for monetary values) td {text-align: center;} Vertical-align: middle, baseline, sub, super, top, bottom,. Width and height You can define the width and height of each cell just like what we did to the entire table This is very useful if you want to have same-size columns Usually just specify the width of the firs column is good enough, with the help from table-layout: fixed; Example: table {table-layout: fixed;} {th {width: 33%;} 11/22/2016 22

Cell Padding To control the space between the table text and the cell borders, you can use the padding property to style the table cell. The syntax for this attribute is: td {padding: value;} value is the distance from the table text to the cell border, as measured in pixels the default cell padding value is 1 pixel To define different padding space on different sides you can use td {padding: 10px 5px;} 11/22/2016 23

Tables with Different Cell Padding Values The effect of changing the cell padding value for a table 11/22/2016 24

Setting the Cell Padding to 4 Pixels A table with an increased amount of cell padding. By increasing the cell padding, you added needed space to the table. 11/22/2016 25

Background Color For A Cell Just like to a table you can set the background color to individual table cells Background color can be used to tr, td, and th as well It can be very helpful to make your table more readable th {background-color: yellow;} 11/22/2016 26

A Table with a Colored Background 11/22/2016 27

Prohibit Line Breaks In case you have content in a table cell that you want to keep in a single line td.nowrap {white-space: nowrap;} <td class= nowrap > This is a long line that won t be wrap</td> 11/22/2016 28

Spanning Cells This cell spans two columns and two rows This cell spans three columns This cell spans three rows 11/22/2016 29

Spanning Rows & Columns In 'th' or 'td' tag rowspan="rvalue" colspan="cvalue" 1 2 3 6 7 8 4 5 9 0 a b c 11/22/2016 30

A Table Structure with a Row-Spanning Cell four table cells in the first row only three table cells are required for the second and third rows HTML code resulting table 11/22/2016 31

HTML Structure of a Table beginning of the table structure table cells first row of five in the table You do not need to indent the <td> tags or place them on separate lines, but you may find it easier to interpret your code if you do so. After the table structure is in place, you re ready to add the text for each cell. end of the table structure 11/22/2016 32

Group Rows Three tags are used to group rows thead tfoot tbody That will make it easier to style each section 11/22/2016 33