LESSON 3. Coding Tables Continued

Similar documents
Chapter 4 Notes. Creating Tables in a Website

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

Tables *Note: Nothing in Volcano!*

IMY 110 Theme 7 HTML Tables

INFS 2150 / 7150 Intro to Web Development / HTML Programming

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Web Design and Application Development

c122sep2214.notebook September 22, 2014

Html basics Course Outline

Chapter 4 Creating Tables in a Web Site Using an External Style Sheet

HTML Exercise 24 Tables

Exercise #2: your Profile

LESSON LEARNING TARGETS

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Chapter 7 Tables and Layout

Chapter 7 Tables and Layout

Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML

CSC 101: PreLab Reading for Lab #4 More HTML (some of this reading on Tables and Images are based on previous writings of Prof William Turkett)

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

THE ASIAN SCHOOL. Class-10. ch8. A. Check the Right Answer (1*9)

Introduction to Computer Science (I1100) Internet. Chapter 7

CSC 121 Computers and Scientific Thinking

HyperText Markup Language/Tables

Dreamweaver CS3 Concepts and Techniques

Web Development & Design Foundations with HTML5

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Creating Tables in a Web Site Using an External Style Sheet

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

HTML, XHTML, and CSS 8/21/2011. Chapter Objectives. Chapter 4. Chapter Objectives. Chapter Objectives

Final Examination Semester 1 / Year 2012

Lecture 08. Tables in HTML. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

HTML Tags <A></A> <A HREF=" CNN </A> HREF

HTML WORKSHEET Explain HTML HEAD Tag Title Tag BASEFONT Tag

Chapter 5. Introduction to XHTML: Part 2

HTML & XHTML Tag Quick Reference

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

COMS 359: Interactive Media

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Certified HTML5 Developer VS-1029

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Advanced HTML Scripting WebGUI Users Conference

Final Exam Study Guide

A Balanced Introduction to Computer Science, 3/E

SECTION C GRADE 12 EXAMINATION GUIDELINES

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Table-Based Web Pages

This booklet is knowledge of. a web page. of a web page find what you. you want to. SiteSell offers. Introduction

Page Layout Using Tables

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Summary 4/5. (contains info about the html)

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Intro to html. --- define every element, attribute, and entity along with the rules for their use

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

CSC 101: Lab #2 HTML and the WWW Manual and Report Lab Date: Tuesday, 2/2/2010 Report Due Date: Friday, 2/5/2010 3:00pm

Table of Contents. MySource Matrix Content Types Manual

Chapter 9 Table Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Hyper Text Markup Language HTML: A Tutorial

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

By Ryan Stevenson. Guidebook #2 HTML

How to Make a Homepage using

Creating a Web Page with HTML

Introduction to Computer Science (I1100) Internet. Chapter 7

Creating Web Pages Using HTML

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Mathematics. Computer Applications. New Jersey Quality Single Accountability Continuum (NJQSAC) Department: Course Title.

Index. CSS directive, # (octothorpe), intrapage links, 26

Introducing Web Tables

Lab 4 CSS CISC1600, Spring 2012

Intermediate HTML Using Dreamweaver

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

HTMLnotesS15.notebook. January 25, 2015

ITNP43: HTML Lecture 3

Certified HTML Designer VS-1027

ICT IGCSE Practical Revision Presentation Web Authoring

CIS 228 (Fall, 2012) Exam 2, 11/20/12

CITS1231 Web Technologies. HTML Tables and Page Design Issues

Adding Audio and Video Content to Web pages. Audio Content - Add some Audio content to your page. Audio & Video 1

11. HTML5 and Future Web Application

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

Adding CSS to your HTML

COMP519: Web Programming Lecture 4: HTML (Part 3)

1 Creating a simple HTML page

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 7. Worksheets for Intervention Classes

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 8. Worksheets for Intervention Classes

CIS 228 (Spring, 2012) Final, 5/17/12


Basic HTML Lecture 14

Chapter 11: Going All Out with FrontPage

Calendar Project. Project Brief. Part I: A Date to Remember. Assignments are evaluated for understanding

Deccansoft Software Services

epromo Guidelines DUE DATES NOT ALLOWED PLAIN TEXT VERSION

Basic CSS Lecture 17

Title: Jan 29 11:03 AM (1 of 23) Note that I have now added color and some alignment to the middle and to the right on this example.

Transcription:

LESSON 3 Coding Tables Continued

Lesson Learning Targets I can create a Web page table that displays text and / or images. I can create a Web page table that serves as a menu bar.

Creating the Secondary (New Releases) Web Page

Starting Notepad Open Notepad++ Save in Folders: HTML and JS Unit 3 Tables In Class Project Save As: newreleases.html

Enter in HTML Skeleton <!DOCTYPE> <html> <head> <title>bell Video New Releases</title> </head> <body> </body> </html>

Add Skeleton

Add Bell Video Image to Top! Inside the body tags immediately add the following code. <body> <img src = bellvideologo.jpg" width="596 height="93 /> </body>

Creating a Horizontal Menu Bar with Text Links Insert a Table with 1 Row and 7 Columns (Each Word Gets a Column and Each I Gets a Column)

Thinking Through the First Table Table Requirements(color coded with next slide): 1) Borderless 2) 1 Row all cells in row are centered 3) 7 Columns 4) Want it to take up 60% of the width of the browser

Creating a Horizontal Menu Bar with Text Links After the <img/> tag, type the following: <br /> <table border="0" cols="7 width="60%"> <tr align="center"> </tr> </table>

Row Requirements: Thinking Through Row 1 1) 7 Columns each with word or 2) All Data Cells 3) Each have a varying width % of the table

Add Cell 1 and Cell 2 After the <tr> tag, type the following: <tr align="center"> <td width="20%"><a href = bellvideohome.html">home</a></td> <td width="1%"> </td>

Add Cells, 3, 4, 5, 6 (continue) <td width="25%"><a =href="newreleases.html">new Releases</a></td> <td width="1%"> </td> <td width="15%"><a href="actor.html">actor</a></td> <td width="1%"> </td> <td width = 15% ><a href= type.html >Type</a></td>

What you Should See So Far

Creating a Table with Borders

Table Requirements: Thinking Through the Second Table 1) Border = 5 pixels 2) 5 Rows 1 heading, 4 data 3) 3 Columns 4) Want it to take up 80% of the width of the browser

Creating Table Outline After the horizontal menu table just added, create a new table and the first row of headings: <br /> <table cols="3" border="5" width="80%"> <tr> </tr> <tr> </tr>

Creating Table Outline (continued) <tr> </tr> <tr> </tr> <tr> </tr> </table>

Row 1 Requirements: Thinking Through Row 1 1) 3 Heading Cells will default to center alignment **will use <th> tags** 2) Background color = blue

Edit Row 1 Edit the code for the first row <tr bgcolor="blue"> <th><font color="white size="+1"> Title</font></th> <th><font color="white size="+1"> Actor(s)</font></th> <th><font color="white size="+1"> Description</font></th> </tr>

Thinking Through Row 2 Row 2, 3, 4 Requirements: 1) 3 data Cells **will use <td> tags** **NOTE when define the width of the cells (percentage wise%) in one row applies to all rows**

Edit Row 2 Edit second row of text: <tr> <td width="25%">good Night, <br />and Good Luck</td> <td width="30%">david Strathairn <br />George Clooney</td> <td width="45%">nostalgic black and white used to show period authenticity.</td> </tr>

Edit Row 3 Edit third row of text: <tr> </tr> <td>walk the Line</td> <td>joaquin Phoenix<br /> Reese Witherspoon</td> <td>the music is compelling; the lives are riveting.</td>

Edit Row 4 Edit the fourth row of text: <tr> </tr> <td>the Constant Gardener</td> <td>rachel Weisz <br />Ralph Fiennes</td> <td>flashback structure enhances this mystery as it circles around a conspiracy.</td>

Edit Row 5 Create the fifth row of text and end the table: <tr> </tr> <td>cinderella Man</td> <td>paul Giamatti <br />Russell Crowe</td> <td>a movie where a good man prevails despite odds against him.</td>

Special Note When Designing tables As many rows of text can continue to be added as you need You ONLY need to specify and know number of columns ahead of time because this MUST be specified in the <table> tag

What you Should Now See!

Testing Links in a Web Page DO They Work? Click the Home link in the horizontal menu bar on the New Releases Web page Click the New Releases link in the vertical menu bar on the home page to return to the New Releases Web page Click the Type link in the horizontal menu bar on the New Releases Web page Click the Actor link in the horizontal menu bar on the Type Web page

Project 4: Creating Tables in a Web Site Testing Links in a Web Page 33

Displaying Rules within a Table

Displaying Rules In Table Rules Attribute used to create horizontal or vertical lines within a table (around the individual cells) Insert inside the <table> tag rules= cols shows vertical lines rules= rows shows horizontal lines rules= none shows no lines

Displaying Rules In Table Displaying Vertical Rules Add the following into the <table> tag <br /> <table cols= 3" border="5 rules= cols width="80%"> <tr bgcolor="blue"> **Now Refresh your browser what do you see?**

Displaying Rules In Table Displaying Vertical Rules

Displaying Rules In Table Displaying Horizontal Rules Change the following in the <table> tag <br /> <table cols= 3" border="5 rules= rows width="80%"> <tr bgcolor="blue"> **Now Refresh your browser what do you see?**

Displaying Rules In Table Displaying Horizontal Rules

Displaying Rules In Table Displaying No Rules Change the following in the <table> tag <br /> <table cols= 3" border="5 rules= none width="80%"> <tr bgcolor="blue"> **Now Refresh your browser what do you see?**

Displaying Rules In Table

Displaying Rules In Table Special Note Be Default a table will display all rules If you want something different you must specify

Practice Worksheet 3C

LESSON 4 Coding Tables Continued (Cell spacing, padding, captions, and spanning)

Lesson Learning Targets I can format a Web page table with cell padding and cell spacing. I can format a Web page table using cell spanning to combine cells across a row or column.

Adding Cellspacing, Cellpadding, and a Caption

Cell Formatting Cell Formatting By default, the size of each data cell fits the minimum size for the inserted text

Cell Formatting Cell Padding : cellpadding Defines the number of pixels of space within a cell of a table (white space inside the cell) Cell Spacing : cellspacing Defines the number of pixels of space between cells in a table (width of the cell borders)

Compare Can Make Tables Look Nicer

Opening an HTML File Open actor.html file in NotePad (downloaded from my classroom website and saved with the other files

BEFORE Cellspacing, Cell padding, and table Caption

AFTER Cellspacing and Cell padding, and Caption

Adding Cellspacing and Cellpadding to a Table Find the table immediately after the horizontal menu; make the following changes: <table border="5" cellspacing= 2 cellpadding= 5 cols="4" width="70%">... <tr bgcolor="blue"> <th><font color="white" size=+1>actor</font></td>

55 Adding a Table Caption A caption helps clarify the purpose of the table Immediately before the end of the table, find the text <!--Insert caption here --> Replace the comment with: <caption align= bottom ><em>listing of movies by actor</em></caption> **note this tag is nested INSIDE the table tag**

56 Table Caption Start Tag Purpose End Tag <caption> - Place inside the table tags - Will place a caption around table - Used to provide clarification to table - Can use align attribute to choose location around table (top, bottom) </caption>

Table after Cellspacing and Cell padding, and Caption

Project 4: Creating Tables in a Web Site Saving and Printing the HTML File and Viewing and Printing the Web Page 58

Spanning Rows and Columns

Spanning Rows and Columns Cell Spanning Merging several cells into a single cell An attribute of the <th> or <td> tags **This is where planning becomes extremely IMPORTANT**

Spanning Rows and Columns Column Spanning Attribute: colspan Defines the number of columns spanned by a cell Row Spanning Attribute : rowspan Defines the number of rows spanned by a cell

Table without Cell Spanning

Table with Cell Spanning Adds to the visual Appearance of a Table!!

Practicing Spanning Write the basic code to create the cell spanning on the table on the next slide (we ll add in attributes later)

Opening an HTML File Open type.html (should be downloaded from my classroom website)

We Want to Span 3 columns in the first Row Together The first cell in the first row spans three columns Add colspan= 3 as an attribute to this cell We will then only program ONE CELL for this row

Creating the First Heading That Spans Columns Find the end of the table with the horizontal menu bar; insert the follow (in yellow): <br /> <table border="5" cellspacing="2 cellpadding="5" cols="2" width="80%"> <tr> </tr> <th colspan="3" bgcolor="blue"> </th> <font color="white" face= Chaucer size="+2">movies by Type</font>

Span 2 Rows In row 2 first cell with rowspan= 3 In row 3&4 the first cell will already be accounted for (in row 2) so when we program we start with cell 2 In row 5 first cell with rowspan= 3 In row 6&7 the first cell will already be accounted for (in row 5) so when we program we start with cell 2

Creating the First Heading That Spans Columns After the movies by Type Row add the following </tr> <tr> <th rowspan="3" width="20%" bgcolor="black"> <font color="#ffffff size="+1">drama</font> </th>

Span 2 Rows Notice after Drama in Row 2 Title-Actor(s) spans 2 columns so needs colspan= 2

Add next 2 cells in row 2 After the Drama Cell complete the row with the following </tr> <th colspan="2" bgcolor="gainsboro"> </th> <font color="blue" size="+1">title - Actor(s)</font>

Add the next two rows Remember- on the next two rows the first cell is already taken up by cell spanning <tr> </tr> <tr> </tr> <td>good Night, and Good Luck</td> <td>david Strathairn</td> <td>the Constant Gardener</td> <td>rachel Weisz<br />Ralph Fiennes</td>

What you should see!

Add Comedy RowSpan After the 3 rd row (drama movies) Insert the following to span Comedy over two rows <tr> <th rowspan="3" width="20%" bgcolor="black"> </th> <font color="#ffffff" size="+1">comedy </font>

Creating the Second Heading That Spans Columns Complete row 5 Title Actor(s) spans 2 columns <th colspan="2" bgcolor="gainsboro"> </th> </tr> <font color="blue" size="+1">title - Actor(s)</font>

Add the next two rows Remember- on the next two rows the first cell is already taken up by cell spanning <tr> </tr> <tr> </tr> <td>the Wedding Crashers</td> <td>owen Wilson</td> <td>napoleon Dynamite</td> <td>jon Heder</td>

What you Should Now See!

Project 4: Creating Tables in a Web Site 81

Homework Worksheet 3D

DAY 6, 7, 8 Project 3A Work Days!

DAY 9 & 10 Review and Test!