CSW131 Steven Battilana 1 CSW 131 – Chapter 7 Adding Tables and Lists (X/HTML) Prepared by Prof. B. for use with Teach Yourself Visually Web Design by.

Slides:



Advertisements
Similar presentations
HTML Tags and Their Functions
Advertisements

Chapter 3 – Web Design Tables & Page Layout
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Cascading Style Sheets
Creating and Editing a Web Page Using Inline Styles
CSW131 Steven Battilana 1 CSW 131 – Chapter 5 (More) Advanced CSS Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
New Semantic Elements (Part 1). Semantics Explained The textbook definition of "semantics" is the study of the relationship between words and their meanings.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
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.
CSW131 Steven Battilana 1 CSW 131 Free MS Software (DreamSpark / MSDNAA) MS Visual Web Developer (VWD) W3 / Mozilla Code Validators Uploading Your Website.
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.
Cos 125 Day 24. Agenda All students meeting 7 Pm Monday, April 19 UMS Strategic Plan Assignment #7 Posted Due April 20 Two (one?) more to go Quiz Four.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Tables And Lists. Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex.
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Creating Tables in a Web Site Using an External Style Sheet
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.
Page Layout & Mobile Web Using columns, grid systems, etc… to layout sites for desktops and mobile.
CSW131 Steven Battilana 1 CSW 131 – Chapter 2 Getting Started with HTML Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
Class 3 – Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.
Web Technologies Website Development Trade & Industrial Education
Assignment 2 Due November 4, 1:30pm. Website You are creating a website for a fictional business which must sell some sort of product You can create any.
INTRODUCTION TO HTML5 Styling Text. Change the Font Size  You can use the font-size property to change the font size for a document’s text.  Instead.
How to Web Page with iModules First row of icons.
CSW131 Steven Battilana 1 CSW 131 – Supplement 1 (X)HTML / CSS Not Covered or in Book Prepared by Prof. B. for use with Teach Yourself Visually Web Design.
Website Development with Dreamweaver
JMD2144 – Lesson 4 Web Design & New Media.
Creating Tables in a Web Site
Essentials of HTML Class 4 Instructor: Jeanne Hart
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
IS1824: Introduction to Internet Multimedia Lecture 5: Layout in HTML Rob Gleasure
HTML: Hyptertext Markup Language Doman’s Sections.
Moodle with Style Integrating new technologies to empower learning and transform leadership.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
INTRODUCTORY Tutorial 4 Exploring Graphic Elements and Images.
HTML— More Tags, Formatting, and Lists. Formatting Tags  Bold  Italics  Underline  Big text  Small text  Subscript (H 2 O)  Superscript (10 3 )
CSW131 Steven Battilana 1 CSW 131 – Chapter 6 Laying Out Pages Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston,
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.
CSS Class 2 -Add margins to elements on a page. -Set width and height of elements. - CSS shorthand properties for box model. -Style links. -Style tables.
CSW131 Steven Battilana 1 CSW 131 Project Requirements Summer 2013.
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Assistant Professor,UCER Naini,Allahabad
Positioning Objects with CSS and Tables
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
IS1825 Multimedia Development for Internet Applications Lecture 12: IDs, Classes and Internal CSS Rob Gleasure
8/13/2003 Designing Without Tables Using CSS by Reshma Kumar and Marina Naito.
Coding with HTML {. THE BASICS { What is HTML and how can you use it to make websites?
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 15: Lists.
Chapter 4 HTML Tags. HTML is written in something called tags. Tags come in pairs, an opening one and a closing one. The first pair of tags we'll write.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 4 Formatting Text and Links.
CIS101 Introduction to Computing Week 07 Spring 2004.
Client-Side Internet and Web Programming
Create and edit web pages 4
Organizing Content with Lists and Tables
Programming the Web using XHTML and JavaScript
Client-Side Internet and Web Programming
H T M L A B E S X P I N D.
The Internet 10/25/11 XHTML Tables
TABLES, LISTS & IMAGES.  Tables are defined with tag.  Table is divided into rows and columns.  Table must have at least one row and one column  Table.
Introduction to XHTML Cont:.
Introduction to HTML.
Presentation transcript:

CSW131 Steven Battilana 1 CSW 131 – Chapter 7 Adding Tables and Lists (X/HTML) Prepared by Prof. B. for use with Teach Yourself Visually Web Design by Ron Huddleston, Wiley

CSW131 Steven Battilana 2 Add Data Tables (pp ) Tables allow the addition of easily organized data, such as images, numbers, specifications, etc. The structure is: [opening table tag] [table row; as many as needed] [table data (aka, “cells”) Tables allow the addition of easily organized data, such as images, numbers, specifications, etc. The structure is: [opening table tag] [table row; as many as needed] [table data (aka, “cells”) First download First download ch07.zip into downloads subfolder copy & paste ch07zip into class_work subfolder extract (unzip) ch07.zip, which becomes subfolder ch07 into class_work subfolder Right-click tables.html and select Edit with Notepad++ On a new line after type: On a new line after type:<table> [If saved & viewed, nothing appears yet] [If saved & viewed, nothing appears yet] More...

CSW131 Steven Battilana 3 Add Data Tables (pp CONT.) …and between the table tags enter the following rows & data: Save tables.html and view it in a browser. Column widths are dependent on the widest entry for each column. Save tables.html and view it in a browser. Column widths are dependent on the widest entry for each column. Note: Do NOT use tables to layout web pages (use CSS). Note: Do NOT use tables to layout web pages (use CSS). Name Department Phone Malcome Reynolds Administration Inara Serra Public Relations Jane Cobb Security

CSW131 Steven Battilana 4 Format Tables with CSS (pp ) Tables are fairly bland without CSS. Properties used to format text are great for text in cells. Background-color for all structural aspects of the table, and borders can be formatted. Tables are fairly bland without CSS. Properties used to format text are great for text in cells. Background-color for all structural aspects of the table, and borders can be formatted. Continuing on tables.html, before type: Continuing on tables.html, before type: table{ background-color: #FFC955; border: 1px solid #540907; }</style> Save tables.html and view it in a browser. Experiment with formatting TIPS, bottom of p. 165 (place borders around cells, then alternate row colors, e.g.,.F90). See “DONE” Experiment with formatting TIPS, bottom of p. 165 (place borders around cells, then alternate row colors, e.g.,.F90). See “DONE”

CSW131 Steven Battilana 5 Create Complex Tables (pp ) Similar to “merging cells”, the attributes colspan merges cells along rows, and rowspan merges cells along columns. Similar to “merging cells”, the attributes colspan merges cells along rows, and rowspan merges cells along columns. Continuing on tables.html, before type: Continuing on tables.html, before type:<tr> Other Personnel Other Personnel </tr> Save tables.html and view it in a browser noting merged cells. Save tables.html and view it in a browser noting merged cells. Note: See TIPS at bottom of p. 167 for “merging” cells. Note: See TIPS at bottom of p. 167 for “merging” cells. <tr> Simon Tam Simon Tam Medical Medical </tr><tr> Kaylee Frye Kaylee Frye Facilities Facilities </tr>

CSW131 Steven Battilana 6 Add a Header Row (pp ) To make tables more meaningful (for traditional and visually challenged users), table headers,, replace in the first row and or column. They default as bold and centered. To make tables more meaningful (for traditional and visually challenged users), table headers,, replace in the first row and or column. They default as bold and centered. Continuing on tables.html, replace the table data tags in the 1 st row with table header tags: Continuing on tables.html, replace the table data tags in the 1 st row with table header tags:<tr> Name Name Department Department Phone Phone Save tables.html and view it noting NEW header formatting. Save tables.html and view it noting NEW header formatting. Note: See TIPS at bottom of p. 169 for thoughts on headers. Table headers do NOT need to be the 1 st row of a table, and you can change the appearance using CSS. Note: See TIPS at bottom of p. 169 for thoughts on headers. Table headers do NOT need to be the 1 st row of a table, and you can change the appearance using CSS.

CSW131 Steven Battilana 7 Add Table Sections (pp ) Three table sections are available and used in this order:,, and. In addition to giving meaning, for long tables that may be printed on more than 1 page, the and contents will print (on all pages). Three table sections are available and used in this order:,, and. In addition to giving meaning, for long tables that may be printed on more than 1 page, the and contents will print (on all pages). Continuing on tables.html, on a new line after type:, placing after the 1st …and on a new line after type: Continuing on tables.html, on a new line after type:, placing after the 1st …and on a new line after type:<tfoot><tr> All numbers are area code 999 All numbers are area code 999 </tr> …and on a new line after type:, placing on a new line before …and on a new line after type:, placing on a new line before Save tables.html and view it noting (while we added a line in the footer) there is NO appearance change. Save tables.html and view it noting (while we added a line in the footer) there is NO appearance change. Coding sections “logically”, cutting & pasting correctly is common. Coding sections “logically”, cutting & pasting correctly is common.

CSW131 Steven Battilana 8 Add an Unordered List (pp ) Unordered (or bulleted) lists are most common list types with easy, common sense tags and (list items). Unordered (or bulleted) lists are most common list types with easy, common sense tags and (list items). Right-click unorderedlists.html, select Edit with Notepad++, and on a new line after type:<ul> Jump, Van Halen "Jump", Van Halen Mickey, Tony Basil "Mickey", Tony Basil Blaze of Glory, Bon Jovi "Blaze of Glory", Bon Jovi "Tik Tok", KeSha "Tik Tok", KeSha </ul> Save unorderedlists.html and view it noting bulleting items. Save unorderedlists.html and view it noting bulleting items. See TIPS on changing bullet appearance and nesting bullets. See TIPS on changing bullet appearance and nesting bullets.

CSW131 Steven Battilana 9 Add an Ordered List (pp ) Ordered (or number ordered) lists are the 2 nd most common list type with similar, common sense tags and (list items). Ordered (or number ordered) lists are the 2 nd most common list type with similar, common sense tags and (list items). Right-click orderedlists.html, select Edit with Notepad++, and on a new line after type:<ol><li>"Serenity"</li> "Star Wars" "Star Wars" "The Empire Strikes Back" "The Empire Strikes Back" <li>"Up"</li> "The Princess Bride" "The Princess Bride" </ol> Save orderedlists.html and view it noting numbered items. Save orderedlists.html and view it noting numbered items. Note: Letters can replace numbers using CSS (see TIPS, p. 175). Note: Letters can replace numbers using CSS (see TIPS, p. 175).

CSW131 Steven Battilana 10 Definition Lists [NOT IN BOOK] Definition lists are the least common list type, and use 3 sets of tags: definition list definition term (rather than item) definition description Definition lists are the least common list type, and use 3 sets of tags: definition list definition term (rather than item) definition description Right-click definitionlists.html, select Edit with Notepad++, and on a new line after type these 2 terms and definitions:<dl> Admiral Grace Hopper Admiral Grace Hopper Key pioneer in computers and programming. Key pioneer in computers and programming. <dt>ENIAC</dt> The first electronic, mechanical computer The first electronic, mechanical computer </dl> Save definition lists.html and view it noting the format. Save definition lists.html and view it noting the format. Notes: Consider indenting code. CSS can change the format/style. Notes: Consider indenting code. CSS can change the format/style.

CSW131 Steven Battilana 11 Style Lists (pp ) Like virtually anything else, lists can also be styled, with a good number of supporting properties and values. Indentations and the bullets themselves can be changed, as well as the numbering schemes. CSS list-style-type property allows values of disc (default), square, or circle. Common values for numbering schemes include lower-roman, upper- roman, lower-alpha, upper-alpha, decimal-leading-zero & decimal. Like virtually anything else, lists can also be styled, with a good number of supporting properties and values. Indentations and the bullets themselves can be changed, as well as the numbering schemes. CSS list-style-type property allows values of disc (default), square, or circle. Common values for numbering schemes include lower-roman, upper- roman, lower-alpha, upper-alpha, decimal-leading-zero & decimal. Within unorderedlists.html, on a new line before type: Within unorderedlists.html, on a new line before type: ul{ list-style-type: square; margin-left: 5px; padding-left: 5px; }</style> Save unorderedlists.html and view noting bullet and indent changes. Save unorderedlists.html and view noting bullet and indent changes. See TIPS, p. 177, to eliminate or customize bullets using images (see “Navigation” and “1way2float3” respectively on our class “Hot!” page). See TIPS, p. 177, to eliminate or customize bullets using images (see “Navigation” and “1way2float3” respectively on our class “Hot!” page).

CSW131 Steven Battilana 12 Replace List Bullet with a Custom Image [NOT IN BOOK] In addition to styling a list by changing the default bullet (like the last slide), the standard default bullets can be replaced by a custom image. Make sure the image used is an appropriate (proportional) size. In addition to styling a list by changing the default bullet (like the last slide), the standard default bullets can be replaced by a custom image. Make sure the image used is an appropriate (proportional) size. Right-click custombullets.html and Edit with Notepad++: Right-click custombullets.html and Edit with Notepad++:ul{ list-style-type: square; list-style-image: url('images/Gopherbullet.jpg'); margin-left: 5px; padding-left: 25px; } Save as custombullets.html and view the custom bullets. Save as custombullets.html and view the custom bullets. Again, see TIPS, p. 177, to eliminate or customize bullets using images (see “Navigation” and “1way2float3” on our class “Hot!” page). Again, see TIPS, p. 177, to eliminate or customize bullets using images (see “Navigation” and “1way2float3” on our class “Hot!” page).

CSW131 Steven Battilana 13 To Do List Read Chapter 7 Read Chapter 7 Revisit what we did in class Revisit what we did in class Be careful as we do not follow book Remember, MUCH more detail about anything we cover is: Remember, MUCH more detail about anything we cover is: at w3.org the Appendices of your book DOCUMENT Your Project DOCUMENT Your Project You should have turned in your draft plans and received them back already with comments. Remember, websites about one of your passions is usually a winner.