H T M L A B E S X P I N D.

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.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Tutorial 4: Designing a Web Page with Tables
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
Using HTML Tables.
1 Tables: Data in Rows and Columns – What is Table? – How Tables are Used? – Designing Tables – Table, Cell, Row Attributes – Using Tables for Alignment.
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.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
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.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
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 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.
>> 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.
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
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.
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 )
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 in HTML. Table Tag HTML tables always begin and end with a table tag. Syntax:
Lesson 7. Tables Table Tags and Attributes Tables HTML tables are used in two main ways: 1.To organize tabular data in a familiar spreadsheet-like way.
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 Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
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
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.
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.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
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 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).
CIS101 Introduction to Computing Week 07 Spring 2004.
CSE 154 Lecture 17: HTML tables.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Week 6 Creating Tables using HTML.
H T M L A B E S X P I N D.
>> HTML: Tables.
Web Development & Design Foundations with HTML5 8th Edition
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
Introduction to HTML.
H T M L A B E S X P I N D.
TABLES.
8 Tables.
Creating Tables Steps for creating a Table Important Facts about Table
Creating Tables Steps for creating a Table Important Facts about Table
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
LESSON Extension Module 2: HTML Basics Tables.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
If You Know Nothing About HTML, This is Where You Start.
Web Development & Design Foundations with H T M L 5
Using tables in HTML Goes in order with Examples at my site.
Site Development Foundations Lesson 6
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
Presentation transcript:

H T M L A B E S X P I N D

What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables are made up of rows and columns. -Rows are horizontally arranged cells -Columns are vertically arranged cells 1 COLUMN 1 ROW

TABLE: Components Basic HTML table tags: <table></table> required Defines the beginning and end of the table <tr></tr> required Table Row - Defines the beginning and end of a horizontal row. <td></td> required Table Cell - Defines an individual cell. Cells are always placed inside a row. “td” stands for table data. Code <table> <tr><td>1</td><td>2</td></tr> <tr><td>3</td><td>4</td></tr> </table> Browser View 1 2 3 4

TABLE: Components Cont. Additional HTML table tags: <th></th> optional Defines a table header row. Used instead of “td.” Text is bold & centered within the cell <caption></caption> optional Sets a caption for the table. Goes after the table tag but not inside “tr” or “td.” There should be only one caption per table. Appears centered above the table. Code <table> <caption>My Schedule</caption> <tr><th>Period</th><th>Class</th></tr> <tr><td>1st</td><td>PE</td></tr> <tr><td>2nd</td><td>Math</td></tr> </table> Browser View My Schedule Period Class 1st PE 2nd Math

TABLE: Tag attributes Attributes that can be added to table tags: Table Border optional Table border attribute dictates border thickness Example: <table border=“1”> 0 = no border & larger numbers = thicker borders No border defined = no border viewable bordercolor can be added to change the color of the table border. Border must be >0 to see the color Example: <table border=“1” bordercolor=“red”> Table Width & Height optional Width & Height can be defined in the open table tag Example: <table width=“100” height=“100”> The height attribute is widely supported, but isn't actually part of the official HTML standard. It may not always work as you expect. If no size values are specified, the browser will decide on an appropriate size. Results will vary between browsers.

TABLE: Tag attributes cont. Additional attributes that can be added to table tags: Cell Padding optional Defines the space inside each cell, i.e. the space between the edges of the cell and the content within it. Example: <table border=“1” cellpadding=“10” bordercolor=“red”> Cell Spacing optional Defines the space between cells. If a border is used, the spacing will widen the border. Example: <table border=“1” cellspacing=“10” bordercolor=“green”> These attributes apply to the entire table - you can't specify spacing or padding for individual cells.

TABLE: Tag attributes cont. Attributes that can be added to th, tr, & td tags: Alignment optional Alignment can be added to the table, tr, th, & td tag. If applied to the table tag, the entire table will align. If applied to the tr tag, the entire row will align. If applied to the th or td tag, just the cell will align. Alignment options: left, center, & right Contents will left align by default Code <table border=“1”><tr align=“right”> <td>Test1</td><td>Test2</td></tr><tr> <td>Test3</td><td>Test4</td></tr></table> Column & Row span optional Column span (colspan) is added to a th or td tag Row span (rowspan) can added to the tr tag <table><tr><td colspan=2>Heading</td></tr> <tr><td>Entry1</td><td>Entry2</td></tr></table> Browser View Test1 Test2 Test3 Test4 Browser View Heading Entry1 Entry2

REVIEW: HTML tables Code Browser View <table border=“10” bordercolor=“orange” cellspacing=“2” cellpadding=“3” width=“500”> <caption>My Schedule</caption> <tr><th>Period</th><th>Class</th></tr> <tr><td align=“center”>1st</td> <td>Web Design</td></tr> <tr><td align=“center”>2nd</td><td>Social Studies</td></tr> <tr><td colspan=“2”>Lunch</td></tr> <tr><td align=“center”>3rd</td><td>English</td></tr> </table> table header Browser View align center cell spacing table border column span cell padding