1 HTML Tables. 2 Tables Tables can be a great help in overcoming HTML's vertical orientation. Even the most complex tables use just the following three.

Slides:



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

Using HTML Tables Presenting Information & Layout Control.
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.
Chapter 3 – Web Design Tables & Page Layout
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Internet Basics & Way Beyond!
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure with HTML.
New Perspectives on Creating Web Pages 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
Create a table Resize, split and merge cells Insert and align graphics within table cells Insert text and format cell content Maintain Web site Working.
Images & Tables. Three graphic file types are supported by today's browsers: GIF - Graphic Interchange Format JPEG - Joint Photographic Experts Group.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a Web Page with Tables.
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.
Introducing Web Tables
HTML TABLES Cyndi Hageman. Tables   Attributes Name or id – used to identify the table Border = set this to determine if there is a border and the size.
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.
Using HTML Tables.
Instructor: A. Burns 1 HTML Tables. Instructor: A. Burns 2 Tables Tables can be a great help in overcoming HTML's vertical orientation. Even the most.
Multimedia and the World Wide Web HCI 201 Lecture Notes #4B.
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
Tables And Lists. Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex.
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.
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.
Tables in HTML Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
XP 1 Tutorial 4 Designing a Web Page with Tables.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
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.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
Adobe Dreamweaver CS3 Revealed CHAPTER FIVE: USING HTML TABLES TO LAY OUT A PAGE.
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:
Creating Tables in a Web Site
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
Tutorial 5 Working with Tables and Columns
XP Creating Web Pages with HTML, 3e Prepared by: C. Hueckstaedt, Tutorial 4 1 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a.
Technologies for web publishing Ing. Václav Freylich Lecture 3.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
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.
ECA 228 Internet/Intranet Design I Tables. ECA 228 Internet/Intranet Design I Basic HTML Tables Created as a way to present rows and clumns of data.
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.
Tables lab5. Drawing a table Tables are the web designer’s best friend and worst enemy. To draw a table we will use:  tag  for raw  tags for column.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
Using Tables for Layout INP150 Session #8. Layout Map out your page Design with paper and pencil Determine number of rows and columns you need Determine.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
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.
CIS101 Introduction to Computing Week 07 Spring 2004.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Web Design and Development
Site Development Foundations Lesson 6
Presentation transcript:

1 HTML Tables

2 Tables Tables can be a great help in overcoming HTML's vertical orientation. Even the most complex tables use just the following three tags:  Creates the table  Table row  Table column

3 Page Layout Tables open up many possibilities for page layout. You have more control over the placement of elements.

4 Page Layout The look and layout of pages on a Web site should reflect the purpose of the site and contribute to the site's usability. Good design can make a page not only appealing but usable.

5 Web page layout using tables Financial Times: Calendar of Events: CTI homepage

6 Using Tables for Positioning Map out your design on paper first. Don't turn off the border until you are satisfied with the page.

7 Planning a Layout On paper, get a rough idea of where you want certain elements to be Then draw out a basic grid structure for your page

8 How would you use tables?

9

10 Nesting Tables

11 Basic HTML Tables A table organizes data in rows and columns (#of columns=#of cells) … Enclose the table structure … Table row … Each data cell within a row. The smallest area of the table we are able to format

12 Basic table structure A1 A2 A3 B1 B2 B3 A1A2A3 B1B2B3 First row First Column

Example by alan burns Instructor: A. Burns 13 Table Caption and Headers … A caption is centered at the TOP/BOTTOM of the table. … special cells that act as table headers (centered and boldface) This is a table First Row A1 First row A1 This is a table Html_table.htm

14 attributes border=“# pixels”  Size of the border around the table cellspacing =“# pixels”  space inserted between cells (outside cell contents) cellpadding =“# pixels”  size of the gap between the cell text and the cell border (inside cell contents) align = left/right  table is placed on the left/right and text is wrapped around the table center  table is placed in the center of the page. Text is not wrapped around the table

15 More Attributes bordercolor=“color”  changes the color of the border bordercolordark=“color”  bordercolorlight=“color”  creates a 3D effect for the border

16 More attributes frame=“option” Controls which side of the table has borders Where option can be one of the following:

17 More attributes rules=all|rows|cols|none  controls around which cell the border is drawn.

18,, attributes width =“pixels” or “%”  Table/cell width in pixels or as % of the page/table height =“pixels” or “%”  Same as above bgcolor =“color”  Change the table/cell background color background =“pic.jpg”  Tiles a picture as a background

19 Cell attributes (, ) colspan =“#”  this cell spans for # columns rowspan =“#”  this cell spans for # rows align = valign= left/right  text in the cell is aligned left/right center  text in the cell is centered top/bottom  text in the cell is aligned top/bottom middle  text in the cell is aligned with the middle of the cell

20 Align and valign attributes

21 Exercise Design the following table in FrontPage. Check the HTML to see how the cells are merged. LogoLink ABCD EF

22 Using tables for page layout To display content in newspaper-like columns or separates the page in different topical areas. Start with the outer table and work your way in using nested tables Add background color to visually separate column Add cell padding to avoid crowding Do not use too many nested tables – it slows down the web page & may confuse browsers! HTMLLayout.htm

23 <body background="RedBar.jpg" Image+links Nested Table Outer table Logo Main Side note Another note Nested table See in practice

24 How many rows and columns? Tables and graphics

25 Final remarks Work plan: 1.Diagram the layout before you start writing 2.Create the text for various cols in separate files, to insert later. 3.Start from the outer table first, and gradually work inward Use cell padding & cell spacing to avoid overcrowded web pages Use the valign=“top” attribute for cells containing articles/text. Use no more than three/four cols of text. Keep the layout of your web page simple!