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

Similar documents
Web Design and Application Development

Lecture 13. Page Layout. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Chapter 4 Notes. Creating Tables in a Website

INFS 2150 / 7150 Intro to Web Development / HTML Programming

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

Lecture 17. History, Navigator, Screen and Form Objects. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Web Development & Design Foundations with HTML5

Tables *Note: Nothing in Volcano!*

Lecture 10. CSS Properties. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

IMY 110 Theme 7 HTML Tables

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

COMS 359: Interactive Media

Dreamweaver CS3 Concepts and Techniques

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

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

Chapter 7 Tables and Layout

Chapter 7 Tables and Layout

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)

HyperText Markup Language/Tables

Introducing Web Tables

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

Output a HTML Table to file PDF use FPDF

HTML & XHTML Tag Quick Reference

Structure Bars. Tag Bar

Table-Based Web Pages

Exercise #2: your Profile

Final Examination Semester 1 / Year 2012

Creating a Web Page with HTML

Chapter 0. HTML review

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

CITS1231 Web Technologies. HTML Tables and Page Design Issues

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

Certified HTML5 Developer VS-1029

LESSON 3. Coding Tables Continued

Html basics Course Outline

c122sep2214.notebook September 22, 2014

How to use the Dealer Car Search ebay posting tool. Overview. Creating your settings

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

Advanced HTML Scripting WebGUI Users Conference

Intermediate HTML Using Dreamweaver

Chapter 5. Introduction to XHTML: Part 2

HTML 5 Tables and Forms

Creating web pages Chapter 5. Structuring contents

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

Chapter 2. List, Tables,Frame and Forms

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

Certified HTML Designer VS-1027

Creating Tables in a Web Site Using an External Style Sheet

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

Bixby Public Schools Course Essential Elements Grade: Desktop Publishing

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

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

Website Development with HTML5, CSS and Bootstrap

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

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

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

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

SECTION C GRADE 12 EXAMINATION GUIDELINES

Designing for Web Using Markup Language and Style Sheets

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

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

E-Shiksha Academy. Certified Website Designer & Developer

Tai-Jin Lee. Handout #5 11/01/2005. Navigation

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

Basic HTML Lecture 14

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

ITNP43: HTML Lecture 3

Introduction to Computer Science (I1100) Internet. Chapter 7

Final Exam Study Guide

Lecture 14. Introduction to JavaScript. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

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

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

Web Authoring and Design. Benjamin Kenwright

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

Deccansoft Software Services

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

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

ICT IGCSE Practical Revision Presentation Web Authoring

Bridges To Computing

Create a table to neatly display information

[AVWSQ-ADWCS6]: WSQ ICDL Adobe Dreamweaver CS6


OVERVIEW. How tables are structured. Table headers. Cell spanning (rows and columns) Table captions. Row and column groups

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

Creating and Building Websites

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

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

Name Related Elements Type Default Depr. DTD Comment

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

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

Page Layout Using Tables

Building HTML Tables and Introducing. Tables on the Web

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

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

How to lay out a web page with CSS

Part A Short Answer (50 marks)

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

Transcription:

Lecture 08 Tables in HTML Mr. Mubashir Ali Lecturer (Dept. of dr.mubashirali1@gmail.com 1

Summary of the previous lecture Adding images to web page Using images as links Image map Adding audio and video to web page 2

Outline How to create tables Page lay-out using tables 3

1. Creating HTML tables Tables display information in rows and columns Tables are commonly used to display all manner of data that fits in a grid such as train schedules, television listings, financial reports etc. 4

1. Creating HTML tables In HTML <table> tag is used to start a table while </table> tag indicates the end of the table <table> Table Structure </table> <tr> tag starts a row of the table and </tr> ends the row <td> is used to create a cell inside the row while </td> ends the cell 5

1. Creating HTML tables The contents of the cell are written between <td> and </td> tags <th> tag is used to declare the cell of the heading row of the table 6

1. Creating HTML tables <table border= 1 > <tr> <td> Name </td> <td> Registration No. </td> </tr> <tr> <td>ali</td> <td>fa13-bcs-001</td> </tr> </table> Name Ali Registration No. FA13-BCS-001 7

1. Creating HTML tables 8

1. Creating HTML tables 9

1.1 Table Attributes Table level attributes Row level attributes Cell level attributes 10

1.1.1 Table Attributes The Border Attribute: Indicates the presence of the border around the table <table border= 1 > The align Attribute: <table align= center, right or left > The bgcolor Attribute: sets the background color of the table <table bgcolor= gray > The background Attribute: sets the specified image at the background of the table <table background= image-title > 11

1.1.1 Table Attributes The height and width Attributes: The cellpadding Attribute: The cellpadding attribute is used to create a gap between the edges of a cell and its contents <table cellpadding= 50 > The cellspacing Attribute: The cellspacing attribute is used to create a space between the borders of each cell 12

1.1.1 Table Attributes 13

Height 1.1.1 Table Attributes cellpaddin g cellspacing Width 14

1.1.2 Row level attributes The align Attribute: <tr align= center,right or left > The bgcolor Attribute: <tr bgcolor= gray > The background Attribute: <tr background= image-name > The height and width Attributes: <tr height= 20 widht= 20 > The valign Attributes: <tr valign= top, middle or bottom > 15

1.1.2 Row level attributes 16

Row Height 1.1.2 Row level attributes Vertical Align 17

1.1.3 Cell level attributes The align Attribute: <td align= center,right or left > The bgcolor Attribute: The valign Attributes: The rowspan Attributes: used when a cell should span across more than one rows The colspan Attribute: used when a cell should span across more than one column 18

1.1.3 Cell level attributes <table border= 1 > <tr> <td rowspan= 2 >Name</td> <td colspan= 2 >Subjects</td> </tr> <tr> <td >OOP</td> <td >DB</td> </tr> <tr> <td >ALi</td> <td >75</td> <td >80</td> </tr> </table> Subjects Name OOP DB ALi 75 80 19

1.2 Adding caption to the table <caption> tag is used to add a caption of the table We usually add caption before the first row of the table 20

1.2 Adding caption to the table 21

1.2 Adding caption to the table Caption 22

2. Page Layout using Tables We can use tables to define the structure of the web page 23

Header 2. Page Layout using Tables Links Body Footer 24

Footer Header 2. Page Layout using Tables Body and links Example: Step 1 (Structure of the page) 25

2. Page Layout using Tables Example: Step 1 (Structure of the page) 26

2. Page Layout using Tables Example: Step 2 (Header section) Adding Logo Title 27

1.5. Page Layout using Tables Example: Step 2 (Header section) 28

Links table 2. Page Layout using Tables Example: Step 3 (Links section) 29

2. Page Layout using Tables Example: Step 3 (Links section) 30

2. Page Layout using Tables Example: Step 4 (body section) 31

Footer 2. Page Layout using Tables Example: Step 5 (footer section) 32

2. Page Layout using Tables Example: Step 5 (footer section) 33

Summary Creating tables in HTML Table attributes Page lay-out using tables 34

References Chapter 4, Beginning HTML, XHTML,CSS, and JavaScript, by Jon Duckett, Wiley Publishing; 2009, ISBN: 978-0-470-54070-1. Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan. 35