How to create tables in HTML…

Slides:



Advertisements
Similar presentations
HTML TABLES EXPLAINED. What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields,
Advertisements

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.
Creating Tables The basics, nothing pretty, but it works.
Tables in HTML Web Design Fairport High School Technology Department Instructor: Gianni Bussani.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
TABLES 6 How to create tables What information suits tables How to represent complex data in tables.
 2001 Prentice Hall, Inc. All rights reserved. Outline 1 Table1.html 1 2
Spanning Rows and Columns Mrs. Wilson Internet Basics & Beyond.
Creating Tables Text Tables -created by using preformatted tags. Graphical Tables - created using Table Structure 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.
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.
Tables. Tables2 Terminology Caption Headings Cell Data.
Tables And Lists. Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex.
AdvWeb-1/37 DePaul University SNL 262 Web Page Design Tables! - Chapt 15 Instructor: David A. Lash.
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.
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.
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,
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
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.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
HTML: Tables & Frames Internet Technology1. HTML: Tables Table tags ► surround the entire table ► header row (text is boldfaced) ► surround each row ►
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
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.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Using HTML tables.... Objectives... How to create tables Basic,, tags Some arguments with table Height, width, border Special “tricks” Cell text alignment.
HTML (Hypertext Markup Language) – Class 3 Recap: HTML Special Characters (ex: ©). Including Images – using the tag. Lists – Ordered and Unordered.
HTML: Tables & Frames Internet Technology.
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.
1 HTML tables
Tables in HTML. Table Tag HTML tables always begin and end with a table tag. Syntax:
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.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
1 Tables attributes. 2 Table attributes: border Activates border around cells Syntax: – where “n” is a value in pixels which controls the “thickness”
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.
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.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Doing TABLES Creating Tables in HTML. Start creating the table by using the Table container tag.
Internet Applications Development Lecture 6 L. Obead Alhadreti.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Make an HTML table using Visual Studio. Approach 1: drag table from Toolbox.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
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.
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.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Organizing Content with Lists and Tables
>> HTML: Tables.
Getting Started – Table 2
HTML Tables CS 1150 Spring 2017.
HTML Tables CS 1150 Fall 2016.
Creating Tables Steps for creating a Table Important Facts about Table
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.
Creating Tables Steps for creating a Table Important Facts about Table
Using rowspan and colspan attributes
Implementing Tables to Hold Data in HTML
Using rowspan and colspan attributes
H T M L A B E S X P I N D.
Using tables in HTML Goes in order with Examples at my site.
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 5: HTML Tables.
Hypertext Markup Language Table 11th Lecture
Presentation transcript:

How to create tables in HTML… To create an unusual table structure such as this one, how do you begin? Tables are created row by row. For each row, cells are established moving from left to right, specifying in each <td> tag if a cell spans more than one column or row, using colspan and/or rowspan

Let’s build the following table… Row 1 Row 2 Row 3 Row 4 The first step is to establish how many rows the table has? This table has 4 rows ! The number of rows is NOT established by… How many rows are in first column (This table does NOT have 2 rows) The height of rows relative to each other (This table does NOT have 5 rows) Each row is separated by the upper and lower border of at least one cell in that row.

Let’s build the following table… Row 1 Row 2 Row 3 Row 4 The first step is to establish how many rows the table has? This table has 4 rows ! One trick for identifying the number of rows is to draw lines down each of the possible columns, and find the line(s) that crosses the most number of cells. The number of cells crossed by this line(s) is how many rows the table has !

Here’s the code… Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 <table> <tr> <!- - Row 1 - -> <td colspan=4> Cell 1 </td> </tr> <tr> <!- - Row 2 - -> <td rowspan=3 width=20% > Cell 2 </td> <td colspan=3> Cell 3 </td> <tr> <!- - Row 3 - -> <td rowspan=2 width=40%> Cell 4 </td> <td> Cell 5 </td> <td> Cell 6 </td> <tr> <tr> <!- - Row 4 - -> <td colspan=2> Cell 7 </td> </table>

Some notes… Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Notice that Cell 2 is created in Row 2. Therefore, when Row 3 is being created, there does not need to be a <td> tag for cell 2 since it was already established Similarly, Cell 4 is created in Row 3. Therefore in Row 4, there are no <td> tags required for either Cell 2 or Cell 4 since they were both already established. Use the width attributes in the <td> tags to establish column widths, but only use the minimum number of width specifications necessary so as not to create conflict. The height attribute can also be used in <td> tags but you will find that its effectiveness is inconsistent.