IMY 110 Theme 7 HTML Tables

Similar documents
INFS 2150 / 7150 Intro to Web Development / HTML Programming

Chapter 4 Notes. Creating Tables in a Website

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

Web Design and Application Development

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

Tables *Note: Nothing in Volcano!*

Web Development & Design Foundations with HTML5

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

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

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

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

Html basics Course Outline

Dreamweaver CS3 Concepts and Techniques

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

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

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

Introducing Web Tables

Page Layout Using Tables

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

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

Chapter 7 Tables and Layout

Introduction to Computer Science (I1100) Internet. Chapter 7

Chapter 7 Tables and Layout

HyperText Markup Language/Tables

c122sep2214.notebook September 22, 2014

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

Final Exam Study Guide

HTML & XHTML Tag Quick Reference

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

LESSON 3. Coding Tables Continued

Adding CSS to your HTML

ICT IGCSE Practical Revision Presentation Web Authoring

CSS Selectors. element selectors. .class selectors. #id selectors

Creating Tables in a Web Site Using an External Style Sheet

Cascading Style Sheets for layout II CS7026

IMY 110 Theme 11 HTML Frames

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

EDITOR GUIDE. Button Functions:...2 Inserting Text...4 Inserting Pictures...4 Inserting Tables...8 Inserting Styles...9

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Certified HTML5 Developer VS-1029

Bixby Public Schools Course Essential Elements Grade: Desktop Publishing

Styles, Style Sheets, the Box Model and Liquid Layout

CSS: Layout, Floats, and More

COMS 359: Interactive Media

Intermediate HTML Using Dreamweaver

Dreamweaver Tutorials Working with Tables

CITS1231 Web Technologies. HTML Tables and Page Design Issues

What is the Box Model?

Creating a Web Page with HTML

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

epromo Guidelines DUE DATES NOT ALLOWED PLAIN TEXT VERSION

CSC 121 Computers and Scientific Thinking

CSS: Lists, Tables and the Box Model

Exercise #2: your Profile

Introduction to Computer Science (I1100) Internet. Chapter 7

Certified HTML Designer VS-1027

Documentation of the UJAC print module's XML tag set.

Table-Based Web Pages

Table of Contents. MySource Matrix Content Types Manual

Chapter 5. Introduction to XHTML: Part 2

CSS: The Basics CISC 282 September 20, 2014

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

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

The Importance of the CSS Box Model

Page Layout. 4.1 Styling Page Sections 4.2 Introduction to Layout 4.3 Floating Elements 4.4 Sizing and Positioning

Introduction to WEB PROGRAMMING

Website Development with HTML5, CSS and Bootstrap

Final Examination Semester 1 / Year 2012

ORB Education Quality Teaching Resources

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

COMP519 Web Programming Lecture 8: Cascading Style Sheets: Part 4 Handouts

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

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

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

SECTION C GRADE 12 EXAMINATION GUIDELINES

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

By Ryan Stevenson. Guidebook #2 HTML

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

Name Related Elements Type Default Depr. DTD Comment

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Basic HTML Lecture 14

A Balanced Introduction to Computer Science, 3/E

Welcome Please sit on alternating rows. powered by lucid & no.dots.nl/student

Creating web pages Chapter 5. Structuring contents

Chapter 0. HTML review

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

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

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

Bridges To Computing

Advanced HTML Scripting WebGUI Users Conference

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

Creation of templates for Knews. Step by step tutorial for creating Newsletter templates for the Wordpress Knews plug-in

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

IMY 110 Theme 6 Cascading Style Sheets

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

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Table Basics. The structure of an table

Transcription:

IMY 110 Theme 7 HTML Tables

1. HTML Tables 1.1. Tables The HTML table model allows authors to arrange data into rows and columns of cells, just as in word processing software such as Microsoft Word. It looks somewhat like the following: Heading 1 Heading 2 Heading 3 Heading 4 Cell 1 Cell 2 Cell 3 Cell 4 Cell 5 Cell 6 Cell 7 Cell 8 Cell 9 Cell 10 Cell 11 Cell 12 Cell 13 Cell 14 Cell 15 Cell 16 We can put any HTML content into cells, such as paragraphs, images, forms, even other pages. 1.2. Table Tag The table tag contains everything in the table. If you want to style the whole table, you will apply styling to this tag. Attributes border width = pixel value = pixel value or % Specifies a width for an external and internal border. border = none or border = 0 will remove the border. Specifies the overall width of the table as an absolute or relative value. cellpadding = pixel value Specifies the distance in pixels between the cell contents and cell boundary. cellspacing = pixel value Specifies the distance in pixels between cells. align = left or right Aligns the table with the left or right margin and allows text to flow around it.

Attributes bgcolor = #rrggbb Specifies a background colour for the whole table. bordercolor (not supported by all browsers) = #rrggbb Specifies a background colour for the table border. bordercolorligh t (not supported by all browsers) bordercolordar k (not supported by all browsers) = #rrggbb = #rrggbb Specifies a colour value for the light edge of shaded borders. Specifies a colour value for the dark edge of shaded borders. Table Styling Example: <html> <head> <title> Tables </title> </head> <body> <table border = "5px" cellpadding = "15px" cellspacing = "5px" style = "background-color:gold; color:blue"> table content </body> </html> Will look like:

Attributes bordercollapse (not supported by all browsers) Collapsed (1 border) separate (individual border) Either gives each cell a separate border or merges it all to together. table-layout auto or fixed Auto allows size of table to change with its content. Fix causes the size to be fixed. <caption></caption> 1.3. Table Caption A caption provides a short description of the table's purpose. By default it appears as plain text centered at the top of the table. <caption> This is a lovely table </caption>... Attribut es align valign = left centre right = top bottom Align the caption horizontally. Align the caption at the top/ bottom of table.

1.4. Summary Attribute A summary is a longer description provided for the benefit of people using speech or Braille-based user agents. <table summary = "This table gives some statistics about fruit flies: average height and weight, and percentage with red eyes (for both males and females).">... 2. Table Structuring A table consists of rows and columns that together form cells. In html we specify rows, each containing a certain amount of cells: Cell 1 Cell 2 Cell 3 Cell 4 Cell 5 Cell 6 Cell 7 Cell 8 Cell 9 table row 1: table cell 1 table cell 2 table cell 3 table row 2: table cell 4 table cell 5 table cell 6 table row 3: table cell 7 table cell 8 table cell 9 2.1. Table Rows A table row is used to group items in the same row (horizontally)....

... 2.2. Table Header This tag holds the column headings. Column headings MUST be placed inside a table row. By default column headings are bold and centered. <th> Name </th> <th> Surname </th> <th> Student No. </th>... 2.3. Table Data This tag holds the table data and represents one cell in the table. Table data MUST be placed inside a table row. <th> Name </th> <th> Surname </th> <th> Student No. </th> <td> Sarah </th> <td> Nothling </th> <td> 24286801 </th>

Attributes rowspan = number Specifies the number of rows that the cell extends across. colspan = number Specifies the number of columns that the cell extends across. nowrap Forces the contents of the cell to be displayed without wrapping. This can result in horizontal scrolling if the resulting table is wider than the browser window. Avoiding it unless you have a very good reason to use it. 2.4. Example <td rowspan = "2"> Left </td> <td colspan = "2"> Middle Top </td> <td rowspan = "2"> Right </td> <td> Middle Bottom Left </td> <td> Middle Bottom Right </td> 2.5. Nesting Tables <td>

<td> Inner Cell 1 </td> <td> Inner Cell 2 </td> </td> <td> Average </td> 3. Alternative to using Tables 3.1. Division tag This element is shown by <div> </div> tags. It defines a block-level structure in the body of a document and divides the page into groups of tags, giving the designer more control over the selected area. <div class = leftmenu > <img src = imagename.jpg /> <a href = link1.html >link 1</html> <a href = link2.html >link 2</html> </div> 3.2. Span tag The span tag pecifies a block of content inside other element contents, e.g. a paragraph. Span defines inline structure. <p>this is a <span> sehr gut </span> paragraph.</p>