COMS 161 Introduction to Computing

Slides:



Advertisements
Similar presentations
Using HTML Tables Presenting Information & Layout Control.
Advertisements

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.
HTML Tables Introduction to Tables Introduction to Tables Table Format Table Format Table Captions Table Captions Table Example Table Example Excercise.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Working with Web Tables
© 2004, Robert K. Moniot Chapters 4 & 5 Introduction to HTML, More Details.
Introducing Web Tables
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.
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. 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. 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.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
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.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
Lesson 6. Links in HTML Computer Science Welcome to Virtual University in Pakistanhttp://
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
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.
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.
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.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
1 3/7/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: More on tables and images.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
>> 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.
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.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
Using HTML tables.... Objectives... How to create tables Basic,, tags Some arguments with table Height, width, border Special “tricks” Cell text alignment.
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.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
1 Tables attributes. 2 Table attributes: border Activates border around cells Syntax: – where “n” is a value in pixels which controls the “thickness”
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.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
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.
1 Mansoor Ahmed Bughio. 2 HTML TABLES With HTML you can create tables. Examples Tables This example demonstrates how to create tables in an HTML document.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables CS 1150 Spring 2017.
HTML Tables.
Tutorial 5 Working with Tables and Columns
Programming the Web using XHTML and JavaScript
Introduction to HTML.
H T M L A B E S X P I N D.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
Web Design and Development
Creating Tables in HTML
Creating Tables in HTML
HTML Tables & Frames Internet Technology.
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Basic HTML.
Lesson 5: HTML Tables.
HTML Tables & Frames Internet Technology.
Presentation transcript:

COMS 161 Introduction to Computing Title: HTML Date: March 21, 2005 Lecture Number: 26

Announcements Homework 7 Due 2/25/2005 Test 3/23/05 Wednesday

Review HTML Document structure Tags Block level Lists

Outline HTML Document structure Tables

Fonts The FONT tag lets you control the size and color of text using "SIZE" and "COLOR" attributes The size attribute can be absolute or relative: < FONT SIZE=1 > Tiny < /FONT > ==> Tiny < FONT SIZE="+1" > Not tiny < /FONT > ==> Not tiny < FONT SIZE="-7" > Tiny < /FONT > ==> Tiny The color attribute uses hexadecimal codes or color names: < FONT COLOR="FF0000" > Red < /FONT > ==> Red < FONT COLOR="TEAL" > Blue? < /FONT > ==> Blue?

Colors Good webpage Here are some example colors < FONT COLOR="Black" > Black < /FONT > ==> Black < FONT COLOR="Silver" > Silver < /FONT > ==> Silver < FONT COLOR="Gray" > Gray < /FONT > ==> Gray < FONT COLOR="White" > White < /FONT > ==> White < FONT COLOR="Maroon" > Maroon < /FONT > ==> Maroon < FONT COLOR ="#864086"> 864086 < /FONT > Show me

Tables Tables are formed using < TABLE > and < /TABLE > tags The contents of a <TABLE> should be a group of rows specified using the < TR > tags The contents of a row should be a group of table data cells enclosed in < TD > elements

Tables Show Me <TABLE> <TR> <TD>Tag</TD> <TD>Type</TD> </TR> <TD>TITLE</TD> <TD>Head</TD> <TD>P</TD> <TD>Block</TD> </TABLE> Row 1 Row 2 Row 3 Show Me

Borders and Headers Use < TH > rather than < TD > when a table element is really a header The border attribute can be used to specify the thickness of a border drawn around the table cells

Borders and Headers Show Me <TABLE BORDER=3> <TR> <TH>Tag</TH> <TH>Type</TH> </TR> <TD>TITLE</TD> <TD>Head</TD> <TD>P</TD> <TD>Block</TD> </TABLE> Show Me

Cell Spacing The cellspacing attribute Used to specify the amount of space between adjacent table cells

Cell Spacing Show Me <TABLE BORDER=3 CELLSPACING=5> <TR> <TH>Tag</TH> <TH>Type</TH> </TR> <TD>TITLE</TD> <TD>Head</TD> <TD>P</TD> <TD>Block</TD> </TABLE> Show Me

Cell Padding The cellpadding attribute Used to control the amount of space between a cell's border and its contents

Cell Padding Show Me <TABLE BORDER=3 CELLPADDING=5> <TR> <TH>Tag</TH> <TH>Type</TH> </TR> <TD>TITLE</TD> <TD>Head</TD> <TD>P</TD> <TD>Block</TD> </TABLE> Show Me

Irregular Table Cells The rowspan attribute can be used to specify that a single cell spans several rows. The colspan attribute can be used to specify that a single cell spans several columns. rowspan and colspan can be used with <TD> and <TH> tags

Irregular Table Cells Show Me <TABLE BORDER=3> <TR> <TH>Tag</TH> <TH>Type</TH> </TR> <TD>H1</TD> <TD ROWSPAN=2>BLOCK </TD> <TD>P</TD> </TABLE> Show Me

Cell Alignment The align attribute specifies an alignment of "left", "center" or "right" for a table cell. The valign attribute specifies an alignment of "top", "middle" or "bottom" for a table cell. They can be used with <TD>, <TH>, and <TR> tags

Cell Alignment Show Me <TABLE BORDER=3 CELLPADDING=5> <TR valign="bottom" > <TH>Tag</TH> <TH>Type</TH> </TR> <TR align="right" > <TD>TITLE</TD> <TD>Head</TD> <TR rowspan=2> <TD>Block</TD> </TABLE> Show Me

Table Width and Height Attributes The width (or height) attribute can be used to specify the suggested width (or height) of a table or table cell Widths and heights can be specified in pixels Widths can also be given as percentages These tags can also be used for page layout

Table Width and Height Attributes <TABLE BORDER=3 HEIGHT=140> <TR > <TH>Tag</TH> <TH WIDTH="50%" >Type</TH> </TR> <TR> <TD>H1</TD> <TD ROWSPAN=2>BLOCK </TD> <TD>P</TD> </TABLE> Show Me

Good Web Practices General Guidelines Creating a good web site involves using HTML correctly with good organization and style Limit use of colors Generally stick to defaults except for background color Title should be succinct but meaningful Keep download time under 10 seconds

Organizing a Page Put important things at the top Good rule of thumb Page length between 1 and 10 screens Use named anchors in long pages

Contact Information Place at the bottom of each page: Horizontal rule Link to home page Contact information - mailto link HTML looks like <HR> <P>Return to <A HREF="http://people.hsc.edu/faculty-staff/phemler/">Hemler Home Page</A></P> <P>Send comments to <A HREF="mailto:phemler@hsc.edu">Paul F. Hemler</A></P>

Good Web Pages http://www.coolhomepages.com/ Highly ranked Flash http://www.deepblue.com/ http://www.robrady.com/ http://www.orangedrone.com/ Non flash http://www.simplicityhosting.net/ http://www.bonniecarberry.com/bluecheese/ http://www.saunalahtigroup.com/