Single Tags <tagName> Example: <BR>

Slides:



Advertisements
Similar presentations
1 CS101 Introduction to Computing Lecture 9 HTML Lists & Tables (Web Development Lecture 3)
Advertisements

HTML TABLES EXPLAINED. What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields,
Using HTML Tables Presenting Information & Layout Control.
Tables Learn to create and enhance TABLES using a variety of attributes and formats.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
HTML TABLES Cyndi Hageman. Tables   Attributes Name or id – used to identify the table Border = set this to determine if there is a border and the size.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
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 Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
Introduction to Computing Lecture 6 Introduction to HTML (Web Development Lecture 1)
Identifies the Structure Table Row Column 1 Table Heading Column 2.
CS105 Introduction to Computer Concepts HTML
HTML Revisited. Learning Goals for Today 1.To develop your personal Web page 2.To upload your Web page to UMT’s Web server so that it becomes visible.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
HTML II ECT 270 Robin Burke. 2 Outline Review Images text flow links Image maps Colors Tables.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
HTML B OOT C AMP Chapter 10 Tables Kirkwood Continuing Education © Copyright 2015, Fred McClurg All Rights Reserved.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
CS101 Introduction to Computing Lecture 9 Introduction to HTML (Web Development Lecture 2)
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
CS101 Introduction to Computing Lecture HTML Lists and Tables (Web Development Lecture 3)
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
Tables Web Authoring. This kind of a table THISIs aTABLE THISIs aTABLE THISIs aTABLE THISIs aTABLE.
Tables in HTML. Table Tag HTML tables always begin and end with a table tag. Syntax:
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
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.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
Chapter 4 HTML Tags. HTML is written in something called tags. Tags come in pairs, an opening one and a closing one. The first pair of tags we'll write.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
1 Mansoor Ahmed Bughio. 2 HTML TABLES With HTML you can create tables. Examples Tables This example demonstrates how to create tables in an HTML document.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
Client-Side Internet and Web Programming
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Marking Up with XHTML Tags describe how a web page should look
Organizing Content with Lists and Tables
Survey of Computer Science CSCI 110, Spring 2011 Lecture 23 HTML
Elements of HTML Web Design – Sec 3-2
>> HTML: Tables.
Programming the Web using XHTML and JavaScript
Web Engineering Hyperlinks, Tables, Frames Lecture 04
Client-Side Internet and Web Programming
H T M L A B E S X P I N D.
Creating Tables Steps for creating a Table Important Facts about Table
Табеле Табеле се представљају елементом TABLE.
HTML/XML HTML Authoring.
Creating Tables Steps for creating a Table Important Facts about Table
TABLES.
Web Design and Development
Marking Up with XHTML Tags describe how a web page should look
Creating Tables in HTML
Marking Up with XHTML Tags describe how a web page should look
Creating Tables in HTML
Web Development & Design Foundations with H T M L 5
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Marking Up with XHTML Tags describe how a web page should look
Basic HTML.
Marking Up with XHTML Tags describe how a web page should look
Creating Tables Steps for creating a Table Important Facts about Table
H T M L A B E S X P I N D.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

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>

List

Table

<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/">Introduction to Computing</A> course. </P> </BODY> </HTML>

The additional code for the list and table goes here <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/">Introduction to Computing</A> course. </P> </BODY> </HTML> The additional code for the list and table goes here

Additional code <P>My favorite PC games are:</P> <UL> <LI>SimCity</LI> <LI>Quake</LI> <LI>Bridge</LI> </UL> <P>My favorite sports are:</P> <TABLE border = “1” > <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TD>Squash</TD> <TD>Cricket</TD> </TABLE> Additional code

Code for the list Code for the table <P>My favorite PC games are:</P> <UL> <LI>SimCity</LI> <LI>Quake</LI> <LI>Bridge</LI> </UL> <P>My favorite sports are:</P> <TABLE border = “1” > <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TD>Squash</TD> <TD>Cricket</TD> </TABLE> Code for the list Code for the table

HTML Code Browser Display <UL> <LI>SimCity</LI> <LI>Quake</LI> <LI>Bridge</LI> </UL> SimCity Quake Bridge

<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 Browser Display <UL type = “circle”> <LI>SimCity</LI> <LI>Quake</LI> <LI>Bridge</LI> </UL> SimCity Quake Bridge

type = “square”

Q: What happens if I start a new list without closing the original one? <UL> <LI>SimCity</LI> <LI>Quake II</LI> <LI>SimCity 3000</LI> <LI>Quake III</LI> </UL> <LI>Bridge</LI>

Browser Display Different bullets Additional tab SimCity Quake II Quake 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

Numbers instead of discs, circles or squares Ordered List Browser Display OL instead of UL <OL> <LI>SimCity</LI> <LI>Quake</LI> <LI>Bridge</LI> </OL> SimCity Quake Bridge Numbers instead of discs, circles or squares

Ordered List Browser Display <OL type = “a”> <LI>SimCity</LI> <LI>Quake</LI> <LI>Bridge</LI> </OL> SimCity Quake 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 SimCity Quake Bridge

Ordered List Browser Display <OL start = “25”> <LI>SimCity</LI> <LI>Quake</LI> <LI>Bridge</LI> </OL> SimCity Quake Bridge

Definition List Browser Display SimCity <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> SimCity A great simulation game in which one build cities Quake One of the best of the shoot-em-up genre Term Definition

<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 Tables provide another - more customizable - way of displaying ordered information on Web pages

Browser Display Indoor Outdoor Squash Cricket

HTML Code Browser Display Indoor Outdoor Squash Cricket <TABLE border = "1" > <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TD>Squash</TD> <TD>Cricket</TD> </TABLE> Indoor Outdoor Squash Cricket

(Can contain paragraphs, images, lists, forms, tables) (made up of rows) <TR> Row (made up of data cells) <TH> Heading Data Cell (Can contain paragraphs, images, lists, forms, tables) <TD> Data Cell

<TABLE> Attributes BORDER Determines the thickness of the table border Example: <TABLE BORDER = “2”> 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 Browser Display Indoor Outdoor Squash Cricket <TABLE border = "1" > <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TD>Squash</TD> <TD>Cricket</TD> </TABLE> Indoor Outdoor Squash Cricket

HTML Code Browser Display Indoor Outdoor Squash Cricket <TABLE> <TR> <TH>Indoor</TH> <TH>Outdoor</TH> </TR> <TD>Squash</TD> <TD>Cricket</TD> </TABLE> Indoor Outdoor Squash Cricket

<TABLE>,<TR>,<TH>,<TD> Attributes ALIGN Possible values: Center, Left, Right Example: <TH ALIGN = “center”> BGCOLOR Example: <TD BGCOLOR = “red”> WIDTH Example: <TR WIDTH = “40%”> HEIGHT Example: <TABLE HEIGHT = “200”> 50% of the screen width

<TR> 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 <TR>

HTML Code Browser Display Indoor Outdoor Squash Cricket <TABLE border=“1” > <TR> <TH colspan=“2”> Indoor Outdoor </TH> </TR> <TD>Squash</TD> <TD>Cricket</TD> </TABLE> Indoor Outdoor Squash Cricket

Year Quarter Expenses Income Quetta Dubai 2001 1 1,900 8,650 9,000 7,780 2 2,230 8,500 8,670 3 4,000 9,900 9,870 4 2,200 9,800 2002

HTML Code Browser Display My favorite sports Squash Cricket <TABLE border = "1" > <CAPTION> My favorite sports </CAPTION> <TR> <TD>Squash</TD> <TD>Cricket</TD> </TR> </TABLE> My favorite sports Squash Cricket

HTML Code Browser Display My favorite sports Squash Cricket <TABLE border = "1" > <CAPTION> My favorite sports </CAPTION> <TR> <TD>Squash</TD> <TD>Cricket</TD> </TR> </TABLE> My favorite sports Squash Cricket Must be placed immediately after the<TABLE> tag