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.

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

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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Introducing Web Tables
Computing Concepts Advanced HTML: Tables and Forms.
Using HTML Tables.
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
Using HTML to Create Tables in Web pages Connie Lindsey November 2005.
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.
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.
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 basics exercises.
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.
1 3/7/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: More on tables and images.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
>> 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.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
Tutorial 5 Working with Tables and Columns
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
Tutorial 5 Working with Tables and Columns
IDK0040 Võrgurakendused I harjutus 03: Lists, tables and frames Deniss Kumlander.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Organization Components (Lists, Table & Frame) Wah Yan College (Hong Kong) Mr. Li. C.P.
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.
HTML— More Tags, Formatting, and Lists. Formatting Tags  Bold  Italics  Underline  Big text  Small text  Subscript (H 2 O)  Superscript (10 3 )
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.
Basic Table Elements. 2 Objectives Define table elements Describe the steps used to plan, design, and code a table Create a borderless table with text.
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.
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 CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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
REEM ALMOTIRI Information Technology Department Majmaah University.
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.
Web111a_chapt04.ppt HTM: Section 4 Tables Table Types Text table elements Easy to use Use fixed-font text (font family monospace) Andale Mono Courier Monaco.
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.
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).
HTML 15-Feb-13HTML- lec 4 T.A. Reem Alshnaifi Tables Contents.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Table Pertemuan 10 Matakuliah : L0182 / Web & Animation Design
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Elements of HTML Web Design – Sec 3-2
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
Tutorial 5 Working with Tables and Columns
Introduction to HTML.
H T M L A B E S X P I N D.
TABLES.
Matakuliah : Web Design
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Web Design and Development
Creating Tables in HTML
H T M L A B E S X P I N D.
H T M L A B E S X P I N D.
Presentation transcript:

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. Table borders This example demonstrates different table borders. (You can find more examples at the bottom of this page)

3 EXAMPLE: TABLES Each table starts with a table tag. Each table row starts with a tr tag. Each table data starts with a td tag. One column: 100 One row and three columns:

4 EXAMPLE:TABLES Two rows and three columns:

5 OUTPUT

6 TABLE BORDERS With a normal border: First Row Second Row With a thick border:

7 TABLE BORDERS First Row Second Row With a very thick border: First Row Second Row

8 OUTPUT

9 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). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.

10 TABLES row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2

11 TABLES How it looks in a browser:

12 TABLES AND THE BORDER ATTRIBUTE If you do not specify a border attribute the table will be displayed without any borders. Sometimes this can be useful, but most of the time, you want the borders to show. To display a table with borders, you will have to use the border attribute: Row 1, cell 1 Row 1, cell 2

13 HEADINGS IN A TABLE Headings in a table are defined with the tag. Heading Another Heading row 1, cell 1 row 1, cell 2 row 2, cell 1 row 2, cell 2

14 HEADINGS IN A TABLE How it looks in a browser:

15 TABLE WITH NO BORDER This example demonstrates a table with no borders. This table has no borders:

16 TABLE WITH NO BORDER And this table has no borders:

17 OUTPUT

18 To do….

19 TABLE WITH CAPTION This example demonstrates a table with a caption. This table has a caption, and a thick border: My Caption </td

20 OUTPUT

21 TABLE CELLS THAT SPAN MORE THAN ONE ROW/COLUMN This example demonstrates how to define table cells that span more than one row or one column. Cell that spans two columns: Name Telephone Bill Gates `

22 TABLE CELLS THAT SPAN MORE THAN ONE ROW/COLUMN Cell that spans two rows: First Name: Bill Gates Telephone:

23 OUTPUT

24 CELL PADDING This example demonstrates how to use cell padding to create more white space between the cell content and its borders. Without cellpadding: First Row Second Row

25 EXAMPLE: CELL PADDING With cellpadding: <table border="1" cellpadding="10"> First Row Second Row

26 OUTPUT

27 EXAMPLE: CELL SPACING This example demonstrates how to use cellspacing to increase the distance between the cells. Without cellspacing: First Row Second Row

28 EXAMPLE: CELL SPACING With cellspacing: <table border="1" cellspacing="10"> First Row Second Row

29 OUTPUT

30 ADD A BACKGROUND COLOR OR A BACKGROUND IMAGE TO A TABLE This example demonstrates how to add a background to a table. A background color: <table border="1" bgcolor="red"> First Row Second Row

31 ADD A BACKGROUND COLOR OR A BACKGROUND IMAGE TO A TABLE A background image: <table border="1" background="bgdesert.jpg"> First Row Second Row

32 OUTPUT

33 ADD A BACKGROUND COLOR OR A BACKGROUND IMAGE TO A TABLE CELL This example demonstrates how to add a background to one or more table cells. Cell backgrounds: First Row <td background="bgdesert.jpg"> Second Row

34 OUTPUT

35 ALIGN THE CONTENT IN A TABLE CELL This example demonstrates how to use the "align" attribute to align the content of cells, to create a "nice-looking" table. Money spent on.... January February Clothes $ $50.20

36 ALIGN THE CONTENT IN A TABLE CELL Make-Up $30.00 $44.45 Food $ $ Sum $ $744.65

37 To Do..