1 XHTML continued Use the anchor tag to link from page to pageUse the anchor tag to link from page to page Create absolute and relative linksCreate absolute.

Slides:



Advertisements
Similar presentations
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Chapter 3 – Web Design Tables & Page Layout
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Color Templates Software Engineering Module: Web UI Programming Topic: HTML TALENTSPRINT | © Copyright 2012.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
1 Programming the Web: HTML Basics Computing Capilano College.
Web Development & Design Foundations with XHTML Chapter 7 Key Concepts.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
CIS101 Introduction to Computing Week 07. Agenda Your questions JavaScript text Resume project HTML Project Three This week online Next class.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
1 XHTML Tables A table is a matrix of cells, for displaying content in rows and columns The cells can include almost any element Some cells display row.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
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.
Tables Teppo Räisänen LIIKE/OAMK The Role of a Table Tables are quite common in computing systems In XHTML tables are used for presenting tabular.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
Agenda Links External and Internet Links Anchor Tag Text Hyperlinks Image Hyperlinks Images Image Attributes: src, alt, width, height, align, border.
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.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
>> 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.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
1 Web Developer Foundations: Using XHTML Chapter 3 XHTML Hyperlinks and Tables.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
Tables 23 rd February. What XHTML have we done so far? Hyperlinks & anchors - XHTML supports 3 types of lists:  Ordered – +  Unordered – +  Definition.
HTML (Hypertext Markup Language) – Class 3 Recap: HTML Special Characters (ex: ©). Including Images – using the tag. Lists – Ordered and Unordered.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
Creating Links. The Anchor Element: The anchor tag can be used in three different ways: 1.External link – to link to a web page outside your own website.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
1 Review of HTML Elements. 2 The tag These tags are marked as comments in HTML. Any text between these two comment tags will.
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
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 8 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 5 Creating Page Templates. Principles of Web Design 2nd Ed. Chapter 5 2 Principles of Web Design Chapter 5 Objectives Understand table basics.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
Jozef Goetz, © Pearson Education Copyright (c) 2006 Prentice-Hall. All rights reserved.
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.
Chapter 9 Table Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
CIS101 Introduction to Computing Week 07 Spring 2004.
Working with Tables: Module A: Table Basics
>> HTML: Tables.
Web Development & Design Foundations with HTML5 8th Edition
Chapter 5 Introduction to XHTML: Part 2
H T M L A B E S X P I N D.
Creating Tables Steps for creating a Table Important Facts about Table
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 8 Building Tables.
Web Development & Design Foundations with H T M L 5
Site Development Foundations Lesson 6
Creating Tables Steps for creating a Table Important Facts about Table
Lesson 5: HTML Tables.
Presentation transcript:

1 XHTML continued Use the anchor tag to link from page to pageUse the anchor tag to link from page to page Create absolute and relative linksCreate absolute and relative links Create a link which opens a new browser windowCreate a link which opens a new browser window Create links internal to the same pageCreate links internal to the same page Create linksCreate links Create a table on a web pageCreate a table on a web page Use attributes to format tables, table rows, and table cellsUse attributes to format tables, table rows, and table cells Use a table to format an entire web pageUse a table to format an entire web page

2 XHTML tag The anchor tag The anchor tag Used to specify a hyperlink reference (href) to a web page you want to display. Used to specify a hyperlink reference (href) to a web page you want to display. The text between the and is displayed on the web page The text between the and is displayed on the web page href Attribute href Attribute used to indicate the document to link toused to indicate the document to link to

3 XHTML tag Absolute link Absolute link Yahoo Yahoo Relative link Relative link Home Home

4 More on Relative Linking Contact Contact Collars Collars Home Home Dog Bathing Dog Bathing Relative links from the home page: index.htm

5 Opening a Link in a New Browser Window The target attribute can be used on the anchor tag to open a link in a new browser window. The target attribute can be used on the anchor tag to open a link in a new browser window. Yahoo! Yahoo!

6 XHTML Internal Links using the tag A link to a part of a web page A link to a part of a web page Also called bookmarks, named fragments, named anchors Also called bookmarks, named fragments, named anchors Two components: Two components: 1. The anchor tag that identifies a bookmark or named fragment of a web page. This requires two attributes: the id attribute and the name attribute. 2. The anchor tag that links to the bookmark or named fragment of a web page. This uses the href attribute. Back to Top 2. The anchor tag that links to the bookmark or named fragment of a web page. This uses the href attribute. Back to Top

7 XHTML Links using the tag An link will automatically launch the default mail program configured for the browser. An link will automatically launch the default mail program configured for the browser.

8 Questions 1. Describe when to use an absolute link. Is the http protocol used in the href value? 1. Describe when to use an absolute link. Is the http protocol used in the href value? 2. Describe when to use a relative link. Is the http protocol used in the href value? 2. Describe when to use a relative link. Is the http protocol used in the href value? 3. What happens when a web site visitor clicks on an link? 3. What happens when a web site visitor clicks on an link?

9 XHTML Using Tables An XHTML table is composed of rows and columns -- similar to a spreadsheet. An XHTML table is composed of rows and columns -- similar to a spreadsheet. Each individual table cell is at the intersection of a specific row and column. Each individual table cell is at the intersection of a specific row and column. tag tag Contains the table Common attributes: border, width, align tag Contains a table row tag Contains a table row tag Contains a table cell tag Contains a table cell

10 XHTML Table Example Name Name Birthday Birthday James James 11/08 11/08 Karen Karen 4/17 4/17 Sparky Sparky 11/28 11/28 </table>

11 XHTML Table Example 2 Name Name Birthday Birthday James James 11/08 11/08 Karen Karen 4/17 4/17 Sparky Sparky 11/28 11/28 </table> Using the tag

12 XHTML Common Table Attributes align align Use instead to center tables (see text) border border bordercolor bordercolor width width Percentage or pixels?Percentage or pixels? bgcolor bgcolor summary summary title title

13 XHTML Common Table Cell Attributes bgcolor bgcolor align align colspan colspan rowspan rowspan valign valign width width

14 XHTML colspan Attribute Birthday List Birthday List </tr> James James 11/08 11/08 Karen Karen 4/17 4/17 </table>

15 XHTML rowspan Attribute James James 11/08 11/08 </table>

16 Questions 1. Describe two reasons to use tables on a web page. 1. Describe two reasons to use tables on a web page. 2. Describe the difference between the cellpadding and cellspacing table attributes. 2. Describe the difference between the cellpadding and cellspacing table attributes. 3. Describe the method preferred by the W3C to align a table on a web page. 3. Describe the method preferred by the W3C to align a table on a web page.

17 XHTML– Using a Table to Format a Web Page This is the banner area This is the banner area Place Navigation here Place Navigation here Page content goes here Page content goes here </table>

18 Additional Table Layouts

19 Flexible & Fixed Table Widths Fixed Table: Fixed Table: Table width attribute in pixelsTable width attribute in pixels Flexible Table: Flexible Table: Table width attribute in percentTable width attribute in percent

20 Nested Tables Outer table used to configure page layout Outer table used to configure page layout Inner table used to organize some information on the page Inner table used to organize some information on the page

21 Questions 1. Describe a reason to use a percentage width for a table that configures a web page layout. Provide an example of a page that uses this technique. 1. Describe a reason to use a percentage width for a table that configures a web page layout. Provide an example of a page that uses this technique. 2. Describe a reason to use a fixed pixel width for a table that configures a web page layout. Provide an example of a page that uses this technique. 2. Describe a reason to use a fixed pixel width for a table that configures a web page layout. Provide an example of a page that uses this technique. 3. True or False. Tables can be nested within other tables. 3. True or False. Tables can be nested within other tables.