Lecture 9 HTML Lists & Tables (Web Development Lecture 3)



Similar documents
HTML Lesson 7. Your assignment:

In this chapter, you will learn how to...

NURSING 3225 NURSING INQUIRY WEB SITE DEVELOPMENT GUIDE BOOK

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

Web page design in 7 days!

HTML Tables. IT 3203 Introduction to Web Development

core HyperText Markup Language (HTML) Designing Documents for the World Wide Web

Introduction to XHTML. 2010, Robert K. Moniot 1

Introduction to Web Development

FOUNDATION OF INFORMATION TECHNOLOGY Class-X (TERM II)

Getting Started with KompoZer

Learnem.com. Web Development Course Series. Learn em. HTML Web Design in 7 days! By: Siamak Sarmady

New Perspectives on Creating Web Pages with HTML. Considerations for Text and Graphical Tables. A Graphical Table. Using Fixed-Width Fonts

Joomla Article Advanced Topics: Table Layouts

Introduction to Drupal

Using Adobe Dreamweaver CS4 (10.0)

HTML Exercise 6 Linking to Specific Locations within Documents (Bookmarks)

Contents. Downloading the Data Files Centering Page Elements... 6

Language (HTML) Designing Documents for the World Wide Web

Caldes CM12: Content Management Software Introduction v1.9

Introduction to Web Design Curriculum Sample

Introduction Designing your Common Template Designing your Shop Top Page Product Page Design Featured Products...

Creating HTML authored webpages using a text editor

Module 6 Web Page Concept and Design: Getting a Web Page Up and Running

CREATING WEB PAGES USING HTML INTRODUCTION

Essential HTML & CSS for WordPress. Mark Raymond Luminys, Inc mraymond@luminys.com

Web Developer Jr - Newbie Course

Creating Personal Web Sites Using SharePoint Designer 2007

Umbraco v4 Editors Manual

Stylesheet or in-line CSS CSS attributes, used in stylesheets or in-line, can define:

ANDROID TRAINING COURSE MODULES. Module-I: Introduction to Android. Introducing Android. Installing Development Tools. Using the Emulator.

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

Coding HTML Tips, Tricks and Best Practices

Adobe Dreamweaver CC 14 Tutorial

How To Write A Web Page In Html

ADOBE DREAMWEAVER CS3 TUTORIAL

HTML Fundamentals IN THIS APPENDIX

7 th Annual LiveText Collaboration Conference. Advanced Document Authoring

JOOMLA 2.5 MANUAL WEBSITEDESIGN.CO.ZA

Web Development 1 A4 Project Description Web Architecture

WYSIWYG Editor in Detail

HTML Forms and CONTROLS

Site Maintenance. Table of Contents

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

White Paper. Creation of Online Help for Fabasoft Folio. Fabasoft Folio 2015 Update Rollup 2

Web Page Layout. www3. www3 1

How To Write A Cq5 Authoring Manual On An Ubuntu Cq (Windows) (Windows 5) (Mac) (Apple) (Amd) (Powerbook) (Html) (Web) (Font

Code View User s Guide

CHAPTER 10. When you complete this chapter, you will be able to:

Web Authoring. Module Descriptor

Dreamweaver. Links and Tables

State of Nevada. Ektron Content Management System (CMS) Basic Training Guide

DRUPAL BASICS WEBSITE DESIGN & DEVELOPMENT. digital.uoregon.edu/drupal-basics

(E) FOUNDATION OF INFORMATION TECHNOLOGY

RADFORD UNIVERSITY. Radford.edu. Content Administrator s Guide

To change title of module, click on settings

How to Edit Your Website

Introduction to Macromedia Dreamweaver MX

Dreamweaver. Introduction to Editing Web Pages

Going Above and Beyond

IE Class Web Design Curriculum

Drupal Training Guide

FACULTY OF COMMERCE, OSMANIA UNIVERSITY

Basic tutorial for Dreamweaver CS5

About webpage creation

Have you seen the new TAMUG websites?

Website Builder Documentation

Joomla! 2.5.x Training Manual

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Website Development Komodo Editor and HTML Intro

Creating Web Pages with Microsoft FrontPage

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Wireless Web Development, Second Edition RAY RISCHPATER

Microsoft FrontPage 2003

CONTENTM WEBSITE MANAGEMENT SYSTEM. Getting Started Guide

Cut-to-the-Chase Series Web Foundations. HTML Assignment. By Eric Matthews Visit us at:

EUROPEAN COMPUTER DRIVING LICENCE / INTERNATIONAL COMPUTER DRIVING LICENCE WEB EDITING

Entering the example employee satisfaction survey in Survey Crafter Professional s Survey Designer window

This document will describe how you can create your own, fully responsive. drag and drop template to use in the creator.

Advanced HTML Authoring Using Tables

Communication Manager Template Library

Creating Forms with Acrobat 10

1. Tutorial - Developing websites with Kentico Using the Kentico interface Managing content - The basics

Working with the new enudge responsive styles

HTML and CSS. Elliot Davies. April 10th,

Building a Personal Website (Adapted from the Building a Town Website Student Guide 2003 Macromedia, Inc.)

HOW TO USE THIS GUIDE

Web Authoring CSS. Module Descriptor

BLACKBOARD 9.1: Text Editor

How to create database in GlycomcsPortal?

Creating Web Pages with HTML Simplified. 3rd Edition

BT CONTENT SHOWCASE. JOOMLA EXTENSION User guide Version 2.1. Copyright 2013 Bowthemes Inc.

Simply download Beepip from and run the file when it arrives at your computer.

<a href="document URL"... attributes-list>link Text</a>

MS Word 2007 practical notes

Setup and Administration for ISVs

^/ CS> KRIS. JAMSA, PhD, MBA. y» A- JONES & BARTLETT LEARNING

Ingeniux 8 CMS Web Management System ICIT Technology Training and Advancement (training@uww.edu)

Creating tables in Microsoft Access 2007

Transcription:

Lecture 9 HTML Lists & Tables (Web Development Lecture 3) Today is our 3 rd Web Dev lecture During our 2 nd lecture on Web dev 1. We learnt to develop our own Web pages in HTML 2. We learnt about some of the tags used in HTML pages <BR>, <P>, </P>, <B>, <TITLE>, </TITLE>, <H1>, </H1> <HTML></HTML>, <HEAD></HEAD>, <BODY></BODY> <A HREF = action > label </A>, action=http:// or mailto: 3. We also learnt about how to upload our Web pages to VU s Web server so that it becomes visible on the Internet as http://www.vu.edu.pk/~xxxxxxxx/ where xxxxxxxx is your VU user ID Today s Lecture We will extend our Web pages by adding a few more tags Specifically, we will learn about various types of lists that can be added to a Web page And also, about tables But first A few comments on the general structure of HTML tags Single Tags <tagname> Example: <BR> Single Tags with Atributes <tagname attributes> Example: <HR width= 50% > Paired Tags <tagname> </tagname> Example: <H1> </H1> Paired Tags with Attributes <tagname attributes > </tagname> Example: <H1 align= center > </H1> Page 1 of 14

List Page 2 of 14

<HTML> <HEAD> <TITLE>Altaf Khan's Home Page</TITLE> </HEAD> <BODY> <H1>Altaf Khan</H1> <P><B>Adjunct Lecturer in Computer Science</B><BR> <A HREF="http://www.vu.edu.pk/">Virtual University</A><BR> Building 1, 3rd Floor, Aiwan-e-Iqbal, Lahore<BR> +92 42 555 1212<BR> <A HREF="mailto:altaf@vu.edu.pk">altaf@vu.edu.pk</A><BR></P> <P>I teach the <A HREF="http://www.vu.edu.pk/cs101/"></A> course. </P> </BODY> </HTML> <HTML> <HEAD> <TITLE>Altaf Khan's Home Page</TITLE> </HEAD> <BODY> <H1>Altaf Khan</H1> <P><B>Adjunct Lecturer in Computer Science</B><BR> <A HREF="http://www.vu.edu.pk/">Virtual University</A><BR> Building 1, 3rd Floor, Aiwan-e-Iqbal, Lahore<BR> +92 42 555 1212<BR> <A HREF="mailto:altaf@vu.edu.pk">altaf@vu.edu.pk</A><BR></P> <P>I teach the <A HREF="http://www.vu.edu.pk/cs101/"></A> course. </P> </BODY> The additional code for the list and table goes Page 3 of 14

</HTML> <P>My favorite PC games are:</p> <UL> <LI>Quake</LI> </UL> <P>My favorite sports are:</p> <TABLE border = 1 > <TH>Indoor</TH> <TH>Outdoor</TH> Additional code <P>My favorite PC games are:</p> <UL> <LI>Quake</LI> </UL> <P>My favorite sports are:</p> <TABLE border = 1 > <TH>Indoor</TH> <TH>Outdoor</TH> HTML Code Code for the list Code for the table <UL> <LI>Quake</LI> </UL> SimCity Quake Bridge Page 4 of 14

<UL> Un-ordered List <LI> Line Item The default bullet for these lists is a disc That, however, can be changed to a circle or a square with the help of the type attribute HTML Code <UL type = circle > <LI>Quake</LI> </UL> SimCity Quake Bridge Q: What happens if I start a new list without closing the original one? <UL> <LI>Quake II</LI> <UL> <LI>SimCity 3000</LI> <LI>Quake III</LI> </UL> </UL> Page 5 of 14

Page 6 of 14

Different bullets Additional tab SimCity Quake II Sim City 3000 Qua ke III Bridge Such structures, i.e., those in which another starts before the first list is finished, are called Nested Lists Types of Lists In addition to un-ordered lists, HTML supports two other types Ordered Lists Definition List Ordered List OL instead <OL> of UL <LI>Quake</LI> </OL> 1. SimCity 2. Quake 3. Bridge Numbers instead of discs, circles or squares Page 7 of 14

Ordered List <OL type = a > <LI>Quake</LI> </OL> a. SimCity b. Quake c. Bridge Ordered List Types Type Result A A, B, C, a a, b, c, I I, II, III, IV, i i, ii, iii, iv, 1 1, 2, 3, Q: How would one start an ordered list with something other than 1 Browser Display 25. SimCity 26. Quake 27. Bridge Page 8 of 14

Ordered List <OL start = 25 > <LI>Quake</LI> </OL> 25. SimCity 26. Quake 27. Bridge Definition List <DL> <DT>SimCity</DT> <DD>A great simulation game in which one build cities </DD> <DT>Quake</DT> <DD> One of the best of the shoot-em-up genre </DD> </DL> Browser Display SimCity Ter A great m simulation game in which one build cities Definition Quake One of the best of the shoot-emup genre <DL> Definition List <DT> Term <DD> Definition Ordered lists as well as definition lists can be nested just like the un-ordered lists Can any type of list be nested into any other type? Lists are one way of presenting data in a an ordered or formal fashion Page 9 of 14

Tables provide another - more customizable - way of displaying ordered information on Web pages Indoor Outdoor Squash Cricket HTML Code <TABLE border = "1" > <TH>Indoor</TH> <TH>Outdoor</TH> Indoor Squash Outdoor Cricket Table <TABLE> (made up of rows) Row (made up of data cells) Heading Data Cell <TH> (Can contain paragraphs, images, lists, forms, tables) Data Cell <TD> (Can contain paragraphs, images, lists, forms, tables) <TABLE> Attributes BORDER Determines the thickness of the table border Example: <TABLE BORDER = 2 > Page 10 of 14

CELLPADING Determines the distance between the border of a cell and the contents of the cell Example: <TABLE CELLPADDING = 3 > CELLSPACING Determines the empty spacing between the borders of two adjacent cells Example: <TABLE CELLSPACING = 1 > HTML Code HTML Code <TABLE border = "1" > <TH>Indoor</TH> <TH>Outdoor</TH> Indoor Squash Outdoor Cricket HTML Code Browse Display <TABLE> <TH>Indoor</TH> <TH>Outdoor</TH> Indoor Squash Outdoor Cricket <TABLE>,,<TH>,<TD> Attributes ALIGN Possible values: Center, Left, Right Example: <TH ALIGN = center > BGCOLOR 50% of the Copyright Virtual University screen of Pakistan width Page 11 of 14

Example: <TD BGCOLOR = red > WIDTH Example: <TR WIDTH = 40% > HEIGHT Example: <TABLE HEIGHT = 200 > Attributes VLAIGN Determines the vertical alignment of the contents of all of the cells in a particular row Possible values: Top, Middle, Bottom Example: <TR VALIGN = bottom > <TH> & <TD> Attributes NOWRAP Extend the width of a cell, if necessary, to fit the contents of the cell in a single line Example: <TD NOWRAP> COLSPAN No. of rows the current cell should extend itself downward Example: <TD COLSPAN = 2 > ROWSPAN The number of columns the current cell should extend itself Example: <TD ROWSPAN = 5 > VALIGN Same as that for HTML CODE <TABLE border= 1 > <TH colspan= 2 > Indoor Outdoor </TH> Browse Display Indoor Outdoor Squash Cricket Page 12 of 14

Expenses Income Year Quarter Quetta Dubai Quetta Dubai 1 1,900 8,650 9,000 7,780 2 2,230 8,650 8,500 8,670 2001 3 4,000 8,650 9,900 9,870 4 2,200 8,650 9,800 9,900 1 7,780 8,650 7,780 9,000 2 8,670 8,650 8,670 8,500 2002 3 9,870 8,650 9,870 9,900 4 9,900 8,650 9,900 9,800 HTMAL Code <TABLE border = "1" > <CAPTION> My favorite sports </CAPTION> My favorite sports Squash Sports HTMAL Code <TABLE border = "1" > <CAPTION> My favorite sports </CAPTION> Must be placed immediately after the<table> tag My favorite sports Squash Sports Copyright Virtual University Must of be Pakistan placed immediately after the<table> tag Page 13 of 14

Useful URL The Table Sampler http://www.netscape.com/assist/net_sites/table_sample.html In Today s Lecture We learnt how to extend our Web pages by adding a few more tags Specifically, we discussed various types of lists that can be added to a Web page un-ordered, ordered and definition lists And also, about tables: about various tags used in a table and their associated attributes Next Web Dev Lecture: Interactive Forms We will try to understand the utility of forms on Web pages We will find out about the various components that are used in a form We will become able to build a simple, interactive form Page 14 of 14