Web Design (9) Tables. HTML Tables (1) HTML Tables may be used to organise calendars, schedules, statistics and other information that can be arranged.

Slides:



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

HTML TABLES EXPLAINED. What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields,
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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Creating Tables in a Web Site
Web Design HTML Basic Robertus Setiawan Aji Nugroho References: w3schools.com.
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.
CIS101 Introduction to Computing Week 07. Agenda Your questions JavaScript text Resume project HTML Project Three This week online Next class.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
Introducing Web Tables
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.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
HTML Tables. Start of page where we want to place a table.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
How to create tables in HTML…
Creating Tables in a Web Site Using an External Style Sheet
Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize.
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.
XHTML Tables. Tables create little boxes in which you can place things to keep them organized. The little boxes are called table cells. Tables are created.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Creating Tables in a Web Site
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
CO1552 – Web Application Development Lists, Special Characters, and Tables.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
>> 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.
Creating Tables in a Web Site
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
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.
A table is a rectangular arrangement of rows and columns on your screen A table is used to organize data into rows and columns and also increasingly.
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.
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.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
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.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Introduction to Web Authoring Ellen Cushman our syllabus
Creating Tables in a Web Site HTML 4 Created by S. Cox.
LINKING WEBPAGES USING HTML HYPERLINKS. Hyperlinks are text strings or images on a webpage which when clicked on, links to another section in the same.
Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag.
©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.
Tables creating a table within a web page. What makes up a table? Columns Rows.
Advanced Tables. Let's build some tables using each of these features and then try combining both features into the same table. Spanning Rows and Columns.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 5.
Tables.  How tables are used  Basic table structure  Importance of headers  Spanning rows and columns  Cell padding and spacing  Accessibility.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
CIS101 Introduction to Computing Week 07 Spring 2004.
>> HTML: Tables.
HTML Tables CS 1150 Spring 2017.
H T M L A B E S X P I N D.
TABLES, LISTS & IMAGES.  Tables are defined with tag.  Table is divided into rows and columns.  Table must have at least one row and one column  Table.
Web Design and Development
Creating Tables in a Web Site
Using rowspan and colspan attributes
Using rowspan and colspan attributes
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
Presentation transcript:

Web Design (9) Tables

HTML Tables (1) HTML Tables may be used to organise calendars, schedules, statistics and other information that can be arranged in rows and columns. Cells within the html table may contain numbers, text, images or other multimedia objects.

HTML Tables (2) Before style sheets (CSS), tables were the only option for creating multi-column layouts. When using html tables, problems arise with small screens and not being able to see the table as a whole e.g. bus timetables.

HTML Tables (3) All the table’s content goes into cells, arranged in rows. Cells contain header information or data. Tables use the following tags: table row table header cell table data cell

A Simple Table Example: A small table, with 3 rows and 3 columns, that lists nutritional information. Menu ItemCaloriesFat (g) Chicken Noodle Soup Caesar Salad

Nutritional Data Exercise Menu Item Calories Fat (g) Chicken Noodle Soup Caesar salad

Notes on HTML Tables (1)The element can only contain and elements. (2) The number of rows is defined by the number of elements, whereas the number of columns is defined by the number of and elements. (3) Within the element, information can only be contained within a or element.

Bringing some shape to your table Returning to your ‘nutritonal information’ table, add the following attributes to the opening table tag: Save, Validate, Live Preview. What do you notice? Now, change the attribute values and note how things change!

Exercise – Beatles Albums Create the code for an HTML Table using the following information: AlbumYear Rubber Soul1965 Revolver1966 Sgt. Pepper1967 White Album1968 Abbey Road1969

Making cells larger (1) Column Spans The Column Span is created with the ‘colspan’ attribute in the or elements. It stretches a cell to the right to span over subsequent columns. Exercise: Write the following code into an html file in brackets:

Exercise – Colspan (1) <table width=“ ” border=“ ” align=“ ” cellpadding=“ ” cellspacing=“ ”> Fat Saturated Fat (g) Unsaturated Fat (g)

Exercise – Colspan (2) What do you notice about the table header cell? The one item ‘Fat’ in the header is spread over 2 columns above the 2 items in the table data cells.

TV Programmes Table (using colspan) Create the code for a HTML Table using the following TV Programme information: Start times:7:007:308:00 BBC1 One Show Country File ITV1Cricket Highlights Emmerdale Film4 Lady and the Tramp (Notes: ‘One Show’ and ‘Emmerdale’ – half an hour; ‘Cricket Highlights’ and ‘Country File – one hour; ‘Lady and the Tramp’ – one hour and a half)

Making cells larger (2) Row Spans Row Spans are created with the ‘rowspan’ attribute. They cause the cell to span downward over several rows. Exercise: Write the following code into an html file in brackets:

Exercise: Rowspan (1) <table width=“ ” border=“ ” align=“ ” cellpadding=“ ” cellspacing=“ ”> Serving Size Small (200g) Medium (400g) Large (600g)

Exercise: Rowspan (2) What do you notice about the table header cell? The one item ‘Serving Size’ in the header is spread over 3 rows to the left of the 3 items in the table data cells.

Fruit Exercise Create the code for an HTML table using the following information:

Describing table contents This is achieved by adding a ………..… element (with relevant text inside), just below the start tag. Try this now with one of the exercises you have already completed and look at the Live Preview.