Session #4 Cascading Style Sheets February 23, 2004

Slides:



Advertisements
Similar presentations
HTML Tags and Their Functions
Advertisements

Table (TABLE) Contains TABLE ROWS (TR) Contains TABLE DATA (TD) Data can contain anything Text Lists Other tables Pictures …
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Working with Web Tables
Introduction to HTML & CSS
Cascading Style Sheets
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
MIS 425 Lecture 2 – HTML Navigation, Colors, tables and Styles Instructor: Martin Neuhard
1 Lesson 5 Introduction to Cascading Style Sheets HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
17/10/11. 2  The form element ( ) is used to include a number of form elements together so that they can be referenced by some other code in order to.
Session #8 Dynamic HTML March 22, 2004
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Computing Concepts Advanced HTML: Tables and Forms.
How to Create Top Ranking Searchable and Accessible Documents Chris Pollett and Elizabeth Tu April, 2010.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
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.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
Chapter 5 Working with Tables. Agenda Add a Table Assign a Table Border Adjust Cell Padding and Spacing Adjust Cell Width and Height Add Column Labels.
Computer Sciences Department
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.
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 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.
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.
Tutorial 6 Creating Tables and CSS Layouts. Objectives Session 6.1 – Create a data table to display and organize data – Modify table properties and layout.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
Principles of Web Design 6 th Edition Chapter 10 – Data Tables.
Web Technologies Website Development Trade & Industrial Education
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Website Development with Dreamweaver
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.
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
1 Web Developer Foundations: Using XHTML Chapter 3 XHTML Hyperlinks and Tables.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Essentials of HTML Class 4 Instructor: Jeanne Hart
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Web Development & Design Foundations with XHTML Chapter 8 Key Concepts.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
Learning HTML Presented By: Wayne Helle What Is HTML? Learning Basic Tags... Formating Your Text... Working With Images and Links... Simple Form Boxes..
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
Web sites Design: Cascading Style Sheet (CSS) (Cont’d) Dimensions and Position of Elements –Width and Height Space –Table Cell Padding –Left and Top Position.
1 TECH1001 Lecture 6 Electronic Publishing and Production 1 More About Tables.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
IT204 – Web Scripting and Authoring I Forms and Image Maps Unit 4.
WEEK -1 ACM 262 ACM 262 Course Notes. HTML What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
Tables creating a table within a web page. What makes up a table? Columns Rows.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
TABLES. Session Checklist ► Learn the ways that tables can help you organize data on your Web site ► Learn how to prepare a spreadsheet-like table that.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
Cascading Style Sheets Layout
Create and edit web pages 4
Working with Tables: Module A: Table Basics
Web Design and Development
Site Development Foundations Lesson 6
The Internet 10/27/11 XHTML Forms
Lesson 5: HTML Tables.
Presentation transcript:

Session #4 Cascading Style Sheets February 23, 2004 B118 Web Programming Session #4 Cascading Style Sheets February 23, 2004

Tonight’s Agenda Campus event announcements Website review grading scheme Tips on preparing for the midterm XHTML examples & discussion Tables (colspan & rowspan) Validation Anything else? Look at CSS examples Chapters 5 & 6 quiz next week !!!

Tonight’s Agenda Website review grading scheme Follow-up on XHTML Look at CSS examples Quiz on Chapter 4 Chapters 5 & 6 quiz next week !!!

Due Tonight XHTML Resume Project team roster Help wanted / positions available Infrastructure team?

Website Review Grading Scheme Points 15 “Perfect” exec summary, criteria analysis (including 2 benefits/speculation per criteria), grammar & appearance 14 One minor flaw (usually grammar) 13 (incomplete exec summary + a minor flaw) or (2 minor flaws) 12 Weak criteria analysis 11 Missing benefits/speculation in most criteria evaluations or significant flaws in several areas

Website Review – Common Misconceptions Navigation pages and whole sites should show gradients of complexity

Follow-up on XHTML XHTML examples & discussion Tables (colspan & rowspan) Validation Anything else? Any questions on lecture or midterm prep exercises?

General Form of a CSS <style type="text/css"> element { property: value } element.class { property: value; property: value } element:pseudoclass { property: value } element1, element2 { property: value } element child-element { property: value } </style>

CSS examples: font color <html> <head> <style type="text/css"> .blue-text {color: blue} </style> </head> <body> <p>This is regular color text. </p> <p class=blue-text>This is colored text. </p> <p>Back to normal color.</p> <p class=“blue-text”>Color. </p> </body> </html> Additional example: css-text.htm

CSS examples: table width & font settings Instead of <table width=“600”>: Define standards for H1 & H2 Example: Jason’s resume <!-- use inline style declaration --> <div style=“width:600px"> </div> <style type="text/css"> h1 { font-family:"times"} h2 { font-family:"arial"; font-style:"oblique"} </style>

CSS examples: positioning & layers top, left, position to define object positioning z-index to define layers higher value layers sit on top of lower value layers Examples: layer.htm & layer2.htm <table style ="top: 0px; left:0px; z-index:1"> <tr> <td>  </td> </table>

Midterm Prep Exercise 6.8 Exercise 6.8: Write an XHTML document that shows the results of a color survey. The document should contain a form with radio buttons that allows users to vote for their favorite color. One of the colors should be selected as a default. The document should also contain a table showing various colors and the corresponding percentage of votes for each color. (Each row should be displayed in the color to which it is referring.) Use attributes to format width, border and cell spacing for the table. You don't need to make the Submit and Clear buttons do anything if they're clicked.

Screen Shot

Tips & Notes Based on layer.htm with radio button & forms added See end of Chapter 5 for details on XHTML forms Use <form method = "post" action = ""> to create submit and clear buttons

Tips & Notes (cont’d) Radio buttons Need common name to group buttons together Value attribute used to set property if selected Use checked attribute to set default radio button Surround radio button tag with <label> to distinguish this type text from the other text elements Define style to align label text (text-align) <p> <label>Blue <input name = "color" type = "radio" checked = "checked" value = "Blue" /> </label> </p>