XHTML Tables.

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

Web Page Design Using Tables Here you see three examples of how tables can be used to organize your content. We call this page layout or design. You can.
Designing Web Pages Tables part one. Using Tables for Page Layout 2.
Internet Basics & Way Beyond!
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
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.
XHTML Tables. Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
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.
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
HTML Overview Part 4 – Tables 1. HTML Tables  Tables are defined with the tag pair.  A table is divided into rows with tag pairs. o tr stands for "table.
HTML: Tables & Frames Internet Technology1. HTML: Tables Table tags ► surround the entire table ► header row (text is boldfaced) ► surround each row ►
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
HTML 58.51A Tables!. Why Tables? n Complete control of you web page layout. n Basically, you can place the content you want, where you want it, with little.
Tutorial 5 Working with Tables and Columns
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
Tutorial 5 Working with Tables and Columns
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
1 Week Four– Advance HTML 2 Dr. Fadi Safieddine. 2 Lecture Content Basic HTML Tables Using based Feedback form Creating and Using Image Maps Nested.
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.
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.
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.
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.
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.
Assistant Professor,UCER Naini,Allahabad
Web Page Tables GMU-Teaching with Technology. Table Characteristics: Looks like a news page Contains columns and 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.
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.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
1 Mansoor Ahmed Bughio. 2 HTML TABLES With HTML you can create tables. Examples Tables This example demonstrates how to create tables in an HTML document.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
HTML Tables. Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag).
Tutorial 5 Working with Web Tables
XHTML Tables.
CNIT 131 HTML5 - Tables.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Advanced Tables.
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Tables and Frames.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
Tutorial 5 Working with Tables and Columns
The Web Warrior Guide to Web Design Technologies
H T M L A B E S X P I N D.
Tutorial 5 Working with Web Tables
TABLES.
Using HTML Tables SWBAT: - create tables using HTML
Web Design and Development
Basic Tables.
HTML Tables & Frames Internet Technology.
Introduction to XHTML Cont:.
Basic Tables.
Advanced Tables.
Introduction to HTML.
H T M L A B E S X P I N D.
Basic Tables.
H T M L A B E S X P I N D.
Advanced Tables.
XHTML Tables.
HTML Tables & Frames Internet Technology.
Presentation transcript:

XHTML Tables

Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are not to be used for layout of an entire web page, only some data within the page.

Tables Row

Tables Column

Tables 3 Rows 2 Columns

Adding a Table: <table width="200"> </table> The value of the width attribute determines how wide the table will be in pixels. A percentage of the screen can be specified instead, but the resulting table would then look different to different viewers, depending on how wide their screens are.

Specifying the Border: <table width="200" border="1"> </table> The value of the border attribute determines how thick the lines around the table cells will be, as measured in pixels. If this attribute is not specified, no lines will show in the table.

Adding Rows: <table width="200" border="1"> <tr> </tr> </table> The <tr> tag adds a table row. If nothing more is defined inside the <tr> tags, the row will take up the entire column.

Setting Cells and Columns: <table width="200" border="1"> <tr> <td> </td> </tr> </table> The <td> ("table data") tag identifies an individual cell of a table. The available space will be evenly divided between the number of cells specified. In this example, we have created two columns in the first row.

Completing the Table: <table width="200" border="1"> <tr> <td> </td> </tr> </table> Here we have specified the cells for the second and third row. We now have a uniform table consisting of two columns and three rows.

Adding Text to the Table: <table width="200" border="1"> <tr> <td>State </td> <td>Capital </td> </tr> <td>Arizona </td> <td>Phoenix </td> <td>Georgia </td> <td>Atlanta </td> </table> State Capital Arizona Phoenix Georgia Atlanta

Adding Table Headers: State Capital Arizona Phoenix Georgia Atlanta <table width="200" border="1"> <tr> <th>State </th> <th>Capital </th> </tr> <td>Arizona </td> <td>Phoenix </td> <td>Georgia </td> <td>Atlanta </td> </table> State Capital Arizona Phoenix Georgia Atlanta By using <th> ("table header") tags in the first row instead of <td>, you are defining these cells as special headings in the table. The web browser will then know to treat them differently.

Table Syntax: State Capital Arizona Phoenix Georgia Atlanta <table width="200" border="1"> <tr> <th>State </th> <th>Capital </th> </tr> <td>Arizona </td> <td>Phoenix </td> <td>Georgia </td> <td>Atlanta </td> </table> State Capital Arizona Phoenix Georgia Atlanta Make sure there is a closing tag for each opening tag and be careful to nest the elements properly.