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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
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.
Tutorial 4: Designing a Web Page with Tables
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introducing Web Tables
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
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.
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.
1 Introduction to HTML. 2  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language  of Web Pages on the World Wide Web. HTML is a.
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.
XP 1 Tutorial 4 Designing a Web Page with Tables.
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.
1 HTML/CSS Tutorial. 2 Definitions WWW -- a software infrastructure layered on top of the Internet HTTP -- HyperText Transport Protocol, layered on top.
CS105 Introduction to Computer Concepts HTML
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
ITCS373: Internet Technology HTML
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
Exploring Office 2003 – Grauer and Barber Enhancing the Web Page Chapter 3 BCIS 1405 Session 15.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
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.
Introduction HTML (Hypertext Markup Language) is used to create document on the World Wide Web. HTML is not a programming language, it is a markup language.
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.
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:
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.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML (Hyper Text Markup Language) Lecture II. Review Writing HTML files for web pages – efficient compact – fundamental. Text files with htm extension.
Week 7: HTML Basics HNDIT11062 – Web Development.
Week 9: HTML Tables and Frames HNDIT11062 – Web Development.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Day 2. Objectives Upon completing this section, you should be able to Choose a Text Editor. Create a Basic Starting Document. Understand and set Document.
Introduction to HTML.
Introduction to HTML.
Working with Tables: Module A: Table Basics
LAB Work 02 MBA 61062: E-Commerce
Introduction to HTML.
Introduction to HTML.
Font tag and its attributes
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
Web Design and Development
HNDIT11062 – Web Development
Basic HTML.
Presentation transcript:

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 a table. 2. Explain a table’s attributes. 3. Edit a table. 4. Add a table header. 2 Tables

First NameLast NameAddressCity 3 Tables Table Row Table Header Data Cell Colored Row

 The element has four sub-elements: 1. Table Row. 2. Table Header. 3. Table Data.  The table row elements usually contain table header elements or table data elements. 4 Tables

Column 1 header Column 2 header Row1, Col1 Row1, Col2 Row2, Col1 Row2, Col2 5 Tables

Tables Column 1 Header Column 2 Header Row1, Col1Row1, Col2 Row2, Col1Row2, Col2 6

 BGColor: Some browsers support background colors in a table.  Width: you can specify the table width as an absolute number of pixels or a percentage of the document width. You can set the width for the table cells as well.  Border: You can choose a numerical value for the border width, which specifies the border in pixels.  CellSpacing: Cell Spacing represents the space between cells and is specified in pixels. 7 Tables Attributes Tables Attributes

 CellPadding: Cell Padding is the space between the cell border and the cell contents and is specified in pixels.  Align: tables can have left, right, or center alignment.  Bgcolor: Sets background color for table  BorderColor, BorderColorDark.  Cols: Number of columns. 8 Table Attributes

 Align: Horizontally aligns row (LEFT, CENTER, RIGHT, JUSTIFY)  Bgcolor: Sets background color for row  Valign: Vertically aligns row (TOP, MIDDLE, BOTTOM) 9 Table Row-Indicates the beginning and end of a table row. Consist of Heading or Data Cells Attributes:

 Table Data cells are represented by the TD element. Cells can also be TH (Table Header) elements which results in the contents of the table header cells appearing centered and in bold text. 10 Table Header

 Colspan: Specifies how many cell columns of the table this cell should span.  Rowspan: Specifies how many cell rows of the table this cell should span.  Align: cell data can have left, right, or center alignment.  Valign: cell data can have top, middle, or bottom alignment.  Width: you can specify the width as an absolute number of pixels or a percentage of the document width.  Height: You can specify the height as an absolute number of pixels or a percentage of the document height. 11 Table Data and Table Header Attributes & Table Data and Table Header Attributes &

Spare Parts Stock Number Description List Price 3476-AB 76mm Socket Basic Table Code 3478-AB 78mm Socket AB 80mm Socket 50.00

Column 1 Header Column 2 Header Row 1 Col 1 Row 2 Col 1 Row 2 Col2 Row 3 Col2 13 Table Data and Table Header Attributes

Column 1 HeaderColumn 2 Header Row 1 Col 1 Row 2 Col 1 Row 2 Col 2 Row 3 Col 2 14 Row Span Column Span

 TH, TD and TR should always have end tags. Although the end tags are formally optional, many browsers will mess up the formatting of the table if you omit the end tags. In particular, you should always use end tags if you have a TABLE within a TABLE -- in this situation, the table parser gets hopelessly confused if you don't close your TH, TD and TR elements.  A default TABLE has no borders By default, tables are drawn without border lines. You need the BORDER attribute to draw the lines.  By default, a table is flush with the left margin TABLEs are plopped over on the left margin. If you want centered tables, You can either: place the table inside a DIV element with attribute ALIGN="center". Most current browsers also supports table alignment, using the ALIGN attribute. Allowed values are "left", "right", or "center", for example:. The values "left" and "right" float the table to the left or right of the page, with text flow allowed around the table. This is entirely equivalent to IMG alignment 15 Special Things to Note

16 Activity 1

17 Activity 2

 Colors are set using “RGB” color codes, which are, represented as hexadecimal values. Each 2-digit section of the code represents the amount, in sequence, of red, green or blue that forms the color. For example, a RGB value with 00 as the first two digits has no red in the color. 18

19 Main Colours

20 RGB Colour Model

21 16 Basic Colors

1. WHITE 2. BLACK 3. RED 4. GREEN 5. BLUE 6. MAGENTA 7. CYAN 8. YELLOW 9. AQUAMARINE 10. BAKER’S CHOCOLATE 11. VIOLET 12. BRASS 13. COPPER 14. PINK 15. ORANGE 1. #FFFFFF 2. # #FF #00FF00 5. #0000FF 6. #FF00FF 7. #00FFFF 8. #FFFF00 9. #70DB #5C #9F5F9F 12. #B5A #B #FF6EC7 15. #FF7F00 22 Color Codes

These attributes control the colors of the different link states: 1. LINK – initial appearance – default = Blue. 2. VLINK – visited link – default = Purple. 3. ALINK –active link being clicked–default= Yellow. The Format for setting these attributes is: <BODY BGCOLOR=“#FFFFFF” TEXT=“#FF0000” LINK=“#0000FF” VLINK=“#FF00FF” ALINK=“FFFF00”> 23

Special Characters & Symbols Special Character Entity Name Special Character Entity Name Ampersand & & Greater-than sign > > Asterisk∗ ∗∗ Less-than sign < < Cent sign ¢ ¢ Non-breaking space Copyright © © Quotation mark " " Fraction one qtr ¼ ¼ Registration mark ® ® Fraction one half ½ ½ Trademark sign™ ™ 24

 Additional escape sequences support accented characters, such as:  ö ◦ a lowercase o with an umlaut: ö  ñ ◦ a lowercase n with a tilde: ñ  È ◦ an uppercase E with a grave accent: È NOTE: Unlike the rest of HTML, the escape sequences are case sensitive. You cannot, for instance, use &LT; instead of <. 25 Special Characters & Symbols

 This element defines a graphic image on the page.  Image File (SRC:source): This value will be a URL (location of the image) E.g. or /dir/file.txt.  Alternate Text (ALT): This is a text field that describes an image or acts as a label. It is displayed when they position the cursor over a graphic image.  Alignment (ALIGN): This allows you to align the image on your page. 26 Images

 Width (WIDTH): is the width of the image in pixels.  Height (HEIGHT): is the height of the image in pixels.  Border (BORDER): is for a border around the image, specified in pixels.  HSPACE: is for Horizontal Space on both sides of the image specified in pixels. A setting of 5 will put 5 pixels of invisible space on both sides of the image.  VSPACE: is for Vertical Space on top and bottom of the image specified in pixels. A setting of 5 will put 5 pixels of invisible space above and bellow the image. 27 Images

1) 2) 3) 4) 5) blast blast blast blast blast 28 Some Examples on images