HTML Tables. Start of page where we want to place a table.

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.
Internet Basics & Way Beyond!
Microsoft FrontPage Monday January 28, The Basic FrontPage Setup.
Today CSS HTML A project.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Principles of Web Design 5 th Edition Chapter Nine Site Navigation.
CSS cont. October 5, Unit 4. Padding We can add borders around the elements of our pages To increase the space between the content and the border, use.
กระบวนวิชา 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.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
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.
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.
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.
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.
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
 Tables are commonly used to display all manner of data, such as timetables, financial reports, and sports results etc.  Tables, just like spreadsheets,
Tutorial #8 – Creating Data Tables. Tutorial #6 Review – Layouts Two Column Fixed Width, Three Column Fixed Width Class VS. ID Container Universal Selector.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
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.
Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize.
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, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Creating Tables in a Web Site
CITY UNIVERSITY / Vysoká Škola Manažmentu.:MG Information Systems :. © Martina Cesalova, 2005 MS FRONTPAGE 1 1.Open FrontPage – View -> Page 2.Open.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
CHAPTER 10 Formatting Tables and Forms. Using Tables the Right Way  HTML and XHTML have a LOT of tags dedicated to building a table  If you have only.
Getting Started with HTML Please use speaker notes for additional information!
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
Web Page Development: Part II Heather Rasmussen (801) Heather Rasmussen (801)
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.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
CSS Table Properties.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
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.
Introduction to HTML. HTML Introduction HTML – Hypertext Markup Language are the instructions that tell a browser how to lay out the information (text,
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.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
HTML Tables The HTML table model allows authors to arrange data - text, preformatted text, images, links, forms, form fields, other tables, etc. - into.
Updated on: September 4, 2010 CIS67 Foundations for Creating Web Pages Professor Al Fichera.
How To Create HTML Tables. Table Structure General HTML code for a Web Table: table cells table cells.
CST336, Spring 2015 Cascading Style Sheet & HTML Tables.
1 Creating Links Lesson 2. 2 In the center column type : Home | Order Now | Contact Us This is the navigation button which will link to the other pages.
Assistant Professor,UCER Naini,Allahabad
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.
Make an HTML table using Visual Studio. Approach 1: drag table from Toolbox.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
Cascading Style Sheets (Layout)
H T M L A B E S X P I N D.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Computers and Scientific Thinking David Reed, Creighton University
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
Creating Tables in a Web Site
Using tables in HTML Goes in order with Examples at my site.
Principles of Web Design 5th Edition
Presentation transcript:

HTML Tables

Start of page where we want to place a table

Design View of Page Start

Table we want to add to our page.

In Design View go to Table/Insert Table

Choose number of rows and columns. Click OK.

Table code generated

Table tags The tag indicates the beginning of a table The tag indicates the beginning of a row. The tag indicates the beginning of a cell Not used yet, the tag indicates a header cell

Non-breaking space The code gives one a non-breaking space. It’s a space but it will not allow breaking, i.e. returning to the next line on the page if the line is long. The table generated has non-breaking spaces in the table data elements (cells) so that they are not empty. Empty cells may be rendered differently from cells with content.

Merge the cells in the first row by highlighting them (in design) and going to Table/Modify/Merge Cells

The colspan attribute that arose from merging the cells One cell now spans all eight columns of the table

Merge the second row. Enter the text between the open and close tag. Switch the tags from to

Design View with the first two rows merged and switched to

Enter the data for the third row which is also ’s.

Enter the rest of the data

Style code to left justify the header text

Code to make top header have gray background and white font color We don’t want to style all of the headers but just the top one. There are several ways to this this. 1.Apply an inline style to the particular 2.Define the style for a class and set the ’s class attribute to that value (allows more than one item to have that style) 3.Define the style for an item with a particular id and set the ’s id attribute to that value

Similarly, make a class for the second header

Comparison of original and ours with header styles

Establish a class for odd rows that gives them a light gray background and set the class property of the odd rows to “odd”

Comparison of original and ours with “odd” rows providing gray background

Some font adjustments

Comparison of original and ours with font adjustments

To eliminate the gaps surrounding the table cells, set the table’s cellspacing to 0px.

W3 on cellspacing and cellpadding (the border if there is one falls between the spacing and the paddding)

Comparison of original and ours with cellspacing set to zero (no more gaps)

Using a border to place a “gap” between first and second rows

Comparison of original and ours with border added to first row (bring back one gap)

Add some padding to the header cells

Comparison of original and ours with padding added to header cells

Making the player names hyperlinks

Hyperlinks with default style: underlined blue for visited and purple for visited. Real site no underline and red if you hover over it.

Code to eliminate default underline style of hyperlink.

Result with hyperlinks no longer underlined

Code to make color blue except when hovered over when it turns red

Result: Mouse is over Dalembert

Attribute to add to make a new page arise in addition to old page, instead of new page replacing the old page

Another way to style even and odd rows – doesn’t work in Internet Explorer (?)