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

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

HyperText Markup Language/Tables

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Web Design and Application Development

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Chapter 4 Notes. Creating Tables in a Website

IMY 110 Theme 7 HTML Tables

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

Dreamweaver CS3 Concepts and Techniques

Web Development & Design Foundations with HTML5

Page Layout Using Tables

Tables *Note: Nothing in Volcano!*

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

Chapter 7 Tables and Layout

Chapter 7 Tables and Layout

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

HTML and XHTML 5th Edition

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

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

ICT IGCSE Practical Revision Presentation Web Authoring

Designing for Web Using Markup Language and Style Sheets

Website Development with HTML5, CSS and Bootstrap

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

LESSON 3. Coding Tables Continued

c122sep2214.notebook September 22, 2014

Styles, Style Sheets, the Box Model and Liquid Layout

The most important layout aspects that can be done with tables are:

Bixby Public Schools Course Essential Elements Grade: Desktop Publishing

Deccansoft Software Services

Introducing Web Tables

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

CSS MOCK TEST CSS MOCK TEST III

Dreamweaver Tutorials Working with Tables

Html basics Course Outline

ITNP43: HTML Lecture 3

COMS 359: Interactive Media

Exercise #2: your Profile

[AVWSQ-ADWCS6]: WSQ ICDL Adobe Dreamweaver CS6

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

Introduction to Computer Science (I1100) Internet. Chapter 7

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

CS Multimedia and Communications. Lab 06: Webpage Tables and Image Links (Website Design part 3 of 3)

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

CSS: Lists, Tables and the Box Model

HTML & XHTML Tag Quick Reference

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

Final Examination Semester 1 / Year 2012

Final Exam Study Guide

Table-Based Web Pages

HTML and CSS COURSE SYLLABUS

Chapter 5. Introduction to XHTML: Part 2

Intermediate HTML Using Dreamweaver

Use Table Styles to format an entire table. Format a table. What do you want to do? Hide All

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

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

How to lay out a web page with CSS

Assignments (4) Assessment as per Schedule (2)

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

Adding CSS to your HTML

Discuss web browsers. Define HTML terms

Certified HTML5 Developer VS-1029

CITS1231 Web Technologies. HTML Tables and Page Design Issues

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

ADOBE 9A Adobe Dreamweaver CS4 ACE.

Lesson 5 Introduction to Cascading Style Sheets

E-Shiksha Academy. Certified Website Designer & Developer

Creating Tables in a Web Site Using an External Style Sheet

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

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

Lesson 15 Working with Tables

Table Basics. The structure of an table

Table of Contents. MySource Matrix Content Types Manual

SECTION C GRADE 12 EXAMINATION GUIDELINES

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

By Ryan Stevenson. Guidebook #2 HTML

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Lesson 15 Working with Tables

INFS 2150 / 7150 Introduction to Web Development & HTML Programming

HTML-5.com itemscopehttp://data-vocabulary.org/breadcrumb<span itemprop="title">html 5</span> itemscopehttp://data-vocabulary.

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Website Design (Weekday) By Alabian Solutions Ltd , 2016

Creating a Website in Schoolwires

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

ABOUT WEB TECHNOLOGY COURSE SCOPE:

Web Authoring and Design. Benjamin Kenwright

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

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

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

Friday, January 18, 13. : Now & in the Future

How to lay out a web page with CSS

CSS Box Model. Cascading Style Sheets

ICT IGCSE Practical Revision Presentation Web Authoring

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

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

Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh

In this tutorial, we are going to learn how to use the various features available in Flexbox.

USER GUIDE MADCAP FLARE Tables

Transcription:

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

Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple rows and columns Create row and column groups Add a summary to a table New Perspectives on HTML and CSS, Comprehensive 2

Objectives Format a table using HTML attributes Format a table using CSS styles Collapse table borders Display page elements in tabular form Create a multi-column layout New Perspectives on HTML and CSS, Comprehensive 3

Structure of a Web Table New Perspectives on HTML and CSS, Comprehensive 4

Introducing Web Tables Each table in a Web page follows a basic structure consisting of the table element and a collection of table rows nested in the table element <table> <tr> </tr> <tr> </tr>... </table> table cells table cells New Perspectives on HTML and CSS, Comprehensive 5

Introducing Web Tables Table headings, the cells that identify the contents of a row or column, are marked using a th element Data cells are marked with the td element and are used for any content that is not considered a heading New Perspectives on HTML and CSS, Comprehensive 6

Introducing Web Tables New Perspectives on HTML and CSS, Comprehensive 7

Introducing Web Tables To add a border to a Web table using HTML, use the border attribute <table border="value">... </table> where value is the size of the border in pixels New Perspectives on HTML and CSS, Comprehensive 8

Spanning Rows and Columns A spanning cell is a single cell that occupies more than one row or one column in the table To create a table cell that spans several columns, add the attribute colspan= columns" to the cell, where columns is the number of columns covered by the cell To create a table cell that spans several rows, add the attribute rowspan= rows" to the cell, where rows is the number of rows covered by the cell New Perspectives on HTML and CSS, Comprehensive 9

Creating a Table Caption To create a table caption, add the caption element directly below the opening <table> tag with the syntax <caption>content</caption> where content is the content of the table caption New Perspectives on HTML and CSS, Comprehensive 10

Marking Row Groups You can divide a table s rows into row groups, in which each group element contains different types of content and can be formatted differently A table can have multiple table body row groups New Perspectives on HTML and CSS, Comprehensive 11

Marking Column Groups Once the table columns have been determined by the browser, you can reference them through the use of column groups New Perspectives on HTML and CSS, Comprehensive 12

Adding a Table Summary The summary attribute allows you to include a more detailed description about the table <table summary="description">... </table> New Perspectives on HTML and CSS, Comprehensive 13

Web Table Styles New Perspectives on HTML and CSS, Comprehensive 14

Formatting Tables with HTML Attributes The amount of space between table cells is known as the cell spacing The cell padding is the space between the cell contents and the cell border New Perspectives on HTML and CSS, Comprehensive 15

Formatting Tables with HTML Attributes To define the space between table cells, add the cellspacing attribute <table cellspacing= value >... </table> to the table element, where value is the space between table cells in pixels To define the padding within table cells, add the cellpadding attribute <table cellpadding= value >... </table> to the table element, where value is the size of the padding space in pixels New Perspectives on HTML and CSS, Comprehensive 16

Formatting Tables with HTML Attributes To set the width of the table to a specific value, add the width attribute <table width="value">... </table> Many browsers also support the height attribute <table height="value">... </table> You can use HTML to set the row heights by applying the height attribute <tr height="value">... </tr> New Perspectives on HTML and CSS, Comprehensive 17

Formatting Tables with HTML Attributes A table frame specifies which sides of the table (or which sides of the table cells) will have borders <table border="value" frame="type">... </table> New Perspectives on HTML and CSS, Comprehensive 18

Formatting Tables with HTML Attributes New Perspectives on HTML and CSS, Comprehensive 19

Formatting Tables with HTML Attributes A table rule specifies how the internal gridlines are drawn within the table <table border="value" rules="type">... </table> New Perspectives on HTML and CSS, Comprehensive 20

Formatting Tables with HTML Attributes By default, browsers horizontally center the contents of table header cells and left-align the contents of table data cells To control the horizontal alignment align="position To control the vertical alignment valign="position" New Perspectives on HTML and CSS, Comprehensive 21

Formatting Tables with CSS Starting with CSS2, Cascading Style Sheets included support for Web tables You can apply one set of borders to the Web table itself and another set of borders to the individual cells within the table New Perspectives on HTML and CSS, Comprehensive 22

Formatting Tables with CSS To define the border model used by the table, apply the table style border-collapse: type where type is separate (the default) to keep all borders around cells and the table itself apart, or collapse to merge all adjacent borders To set the space between separated borders, apply the table style border-spacing: value where value is the space between the borders in any of the CSS units of measure New Perspectives on HTML and CSS, Comprehensive 23

Formatting Tables with CSS The most general styles are those applied to the entire table New Perspectives on HTML and CSS, Comprehensive 24

Formatting Tables with CSS To position a table caption, apply the style caption-side: position where position is top or bottom New Perspectives on HTML and CSS, Comprehensive 25

Applying Table Styles to Other Page Elements New Perspectives on HTML and CSS, Comprehensive 26

Applying Table Styles to Other Page Elements New Perspectives on HTML and CSS, Comprehensive 27

Designing Columnar Layouts with CSS3 To specify the number of columns in the layout, use column-count: number; where number is the number of columns in the layout. To specify the width of the columns, use column-width: width; where width is the width of the columns expressed in one of the CSS units of measure or as a percentage of the width of the element To set the size of the gap between columns, use column-gap: width; where width is the width of the gap. New Perspectives on HTML and CSS, Comprehensive 28

Designing Columnar Layouts with CSS3 To add a border between the columns, use column-rule: border; where border is the format of the border. To specify the width and number of columns in a single style property, use columns: width count; where width is the width of each column and count is the total number of columns in the layout. For specific browsers, add the -moz- vendor prefix for Firefox and the webkit prefix for Safari and Chrome to these style properties. New Perspectives on HTML and CSS, Comprehensive 29

Designing Columnar Layouts with CSS3 New Perspectives on HTML and CSS, Comprehensive 30

Designing Columnar Layouts with CSS3 New Perspectives on HTML and CSS, Comprehensive 31