CO1552 – Web Application Development Lists, Special Characters, and Tables.

Slides:



Advertisements
Similar presentations
HTML 4 Hypertext Markup Language Tables, Lists & Links Science & Art Multimedia.
Advertisements

Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Chapter 3 – Web Design Tables & Page Layout
Cascading Style Sheets
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
Tutorial 4: Designing a Web Page with Tables
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
XP 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial 5.
CIS101 Introduction to Computing Week 07. Agenda Your questions Resume project Review Project Two HTML Project Three This week online Next class.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Using HTML Tables.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
The Power of Tables They aren't just for sitting stuff on anymore...
Create a Web Site with Frames
Web Technologies Lecture # 5 : HTML Frames. Objectives n Create/control appearance & placement of frames n Control the behavior of hyperlinks on pages.
 You've probably come into contact with web sites in which the browser window seemingly allowed you to move around between several different pages. 
XP Tutorial 5New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Designing a Web Site with Frames Using Frames to Display Multiple Web Pages Tutorial.
XHTML Tables. Tables: Allow us to display information on the page in a uniform fashion. Work well for organizing groups of words, images, and links. Are.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
CHAPTER 11 Tables. How Are Tables Used Data Display  Very tidy and very useful Better Text Alignment  Putting text in tables allows you to format indents.
XHTML Tables. Tables create little boxes in which you can place things to keep them organized. The little boxes are called table cells. Tables are created.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Class 3 – Creating Lists In this lesson, you will learn to use HTML to organize your text into lists.
XP 1 Tutorial 5 Using Frames in a Web Site. XP 2 Tutorial Objectives  Describe the uses of frames in a Web site  Lay out frames within a browser window.
Actual Building the Pages Tables. Using Table Elements  To build effective page templates, you must be familiar with the HTML table elements and attributes.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Website Development with Dreamweaver
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
10/4/2015Tables1 Spring, 2008 Modified by Linda Kenney 4/2/08.
Tutorial 8 Designing a Web Site with Frames. XP Objectives Explore the uses of frames in a Web site Create a frameset consisting of rows and columns of.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
IS1824: Introduction to Internet Multimedia Lecture 5: Layout in HTML Rob Gleasure
HTML: Hyptertext Markup Language Doman’s Sections.
Html Tables Basic Table Markup. How Tables are Used For Data Display Tables were originally designed to display and organize tabular data (charts, statistics,
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
Week 5 Working with Tables. 2 Understanding Table Basics.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
Lesson 7. Tables Table Tags and Attributes Tables HTML tables are used in two main ways: 1.To organize tabular data in a familiar spreadsheet-like way.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
1 HTML Frames
Chapter 5 Working with Tables Principles of Web Design, 4 th Edition.
Using Tables for Layout INP150 Session #8. Layout Map out your page Design with paper and pencil Determine number of rows and columns you need Determine.
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Positioning Objects with CSS and Tables
1 HTML Frames
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Building a Website: Layout Fall Overall Structure: Home Page Title Section Title Frame Picture UNCP Math Menu Content Footer Contact Information.
INT222 – Internet Fundamentals
Group 9: Through examples, explain how to build a css navigation bar. Presented by: Daniel Ku, Matt Iannacci & Iphia Henry.
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.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
CIS101 Introduction to Computing Week 07 Spring 2004.
CNIT 131 HTML5 - Tables.
Tables and Frames.
Tutorial 8 Designing a Web Site with Frames
Introduction to XHTML Cont:.
Presentation transcript:

CO1552 – Web Application Development Lists, Special Characters, and Tables

Lists There are two different types of lists within XHTML. Ordered lists numbered and Unordered lists those with a “bullet”, simply an icon or a dot next to the items. Style sheets give us even more options regarding list styles.

Ordered list + An ordered list is numbered We use a combination of tags to display an ordered list on the browser. Number One Number Two Number Three The … tag defines the section that is the ordered list. The … tags define the list items to be displayed.

Unordered list + An unordered list is bulleted Here we use a … tag instead. This is a bullet point This is another bullet point With unordered lists, we can alter the shape of the icon at the left hand side of the item by using CSS attributes

Special Characters HTML is based around text only. We use special characters to tell the browser that we are presenting instructions rather than text for example the characters are special characters that inform the browser we are actually specifying a tag. Within HTML, these special characters are reserved and have special meanings.

Less Than, More Than The less than and more than characters are used by HTML to represent a tag. They are reserved and should not be used in plain HTML text. For example, 4 2 = True will not display correctly. (you’ll see “4 2 = True”) To output these characters in HTML, you should use the following, > (greater than) < (less than) The example would be written correctly as, 4 < 10 and 10 > 2 = True

Ampersand The ampersand is used to let tell the browser that it is displaying a special character. The ampersand is reserved, and requires a special character for itself. For example, John & Kate walked up a hill should not be used. To display an ampersand, use & The above example would be correctly written as, John & Kate walked up a hill

Other Characters Quotation marks are properly used to surround values of attributes. If you want to use a Quotation mark symbol directly in your web pages, you should use " No matter how many times you have tried, browsers will ignore all white space that you insert in a HTML file. If you had written the following HTML, John and Kate It would display in a web browser as, John and Kate To insert spaces in a web page, you should use a non-breaking space. Large amounts of extra space are better controlled through style sheet alignment and margin settings rather than by using lots of instructions.

HTML Tables It is sometimes useful to display data in a tabular format. FacilityBenefitCost Computerfaster data processing £700 A table contains rows, columns and cells

Row The shaded area is a row (there are three rows in total)

Column The shaded area is a column (there are three columns in total)

Cell The two shaded areas are two cells (there are 9 cells in total)

Table borders A table has a “border” attribute defines the number of pixels that are used to show the divisions between cells can range from 0 upwards. When the border attribute is equal to zero, the lines are not displayed.

Tables… All of the facilities up to now can be written easily in HTML. Using a combination of, and we can recreate each of the previous table scenarios. When describing a table in HTML we NEVER have to describe the number of columns that are to be displayed. These are automatically calculated on our behalf by the browser.

Table Tag The tag defines a table. Within a table you must define table rows and table data (cells). You use the tag to define the start and end of a table, use the tag to define the start and end of a row and tag to display any data within the table. You CANNOT display anything within a table unless it is within a cell and a row.

Table Row Tag Use the tag to tell the browser that you are inserting a row into the table. You can only display tags within a table row. It is important to note that any attributes defined within a tag will define values across all cells within that row.

Table Data Tag … A table data tag describes a cell The table data tag is the real work- horse of HTML tables. It is the only tag that will allow any item to be displayed within a table anything outside of a tag is displayed before or after the table.

Tables – Columns and Rows XHTML will automatically calculate the number of columns in a table based on the number of cells within a row. You must ensure that you have the same number of columns in each row. If you don’t, then your table will not look as you wanted it to look …

Columns How many rows and how many columns?

Columns How many rows and how many columns? And how many cells on the rows?

Columns hello 1 hello 2 hello 3 hello 4 How many rows and how many columns? And how wide and how high are the rows and cells?

Cellspacing & Cellpadding These are attributes of the tag. Cellspacing specifies the space between cells, in pixels. Cellpadding specifies the space between the cell border and the item within the cell, in pixels. These attributes are intended to make it easier to read our tables, when they contain tabular data. They are used in the same way margins are used.

Cellspacing and Cellpadding It is possible to remove cellspacing and cellpadding altogether, by giving them a value of zero. This will leave no gaps between cells or the items within the cells. Cellspacing and cellpadding both have a default value of 2px, so you must specify a value of zero to achieve this result.

Table & Cell Widths We can specify the width of a table either in terms of pixels or percentages. If we use a percentage it is relative to the “thing” that contains the table tag. For example if we define a table with 100% width if the container of that table is the browser window then the table will stretch across 100% of the browser window width. However, if the container of the same table is a cell which is 200 pixels wide* then that inner table will stretch for 100% of the width of the outer table cell making the inner table 200 pixels wide. *you can nest tables inside other tables, so a table inside a cell is possible

Width A table row will automatically take on the width of a table. We can also specify the width of individual cells. Be careful when specifying widths of individual cells (next)>>

Width For example, the following doesn’t entirely make sense: why? Undefined numbers are interpreted as pixels: If the table has automatically taken on the width of the user’s browser window, eg 800 pixels, What is the browser to do with the 740 pixels that have not been defined in the table cells? 60 pixels

Column widths It is also an important concept (and a difficult one) to understand that browsers will represent your columns down a table at the same width throughout They follow the widths of the first row of cells

Tables for Formatting One way of using tables is not to display “tabular data”, but to use table cells to help format the contents of the screen. You can insert any XHTML element within a table cell, be it text, form elements, or images. You have all seen web sites with a navigation bar on the top and the left, and main text below on the right, which is commonly done through the use of a table.

Maybe not … Tables, particularly nested tables, can be very hard to navigate using only keyboard controls. Screen Readers, mostly older ones, are very poor at dealing with information which is presented in a side by side format. Some people use browsers, such as Lynx, which linearize tables. When a table is used for layout, it is frequently the case that it is confusing or non-sensical when linearized: Example: Wk Indicative content of lecturesTutorialsLabsWeb resources and notes issuedWk2Background to web – history, basic architecture, historical uses, DNS, FTP. Different uses made of the webThinking about using the Internet to find relevant informationPhotoshop exercise – building a roll-over button

Table headers The intended function of the tag (and its related tags) is to represent tabular data. Tables used for formatting will probably not need table headers Data tables on the other hand DO need table headers A table header is the top row Identifies columns of similar information to devices such as screen readers Default style sheet displays TH differently to TD

Exercise Consider the layout of your assignment web page design Will it be easy to create using a table? Draw it on paper indicating all the cells you will need Try creating a suitable layout in XHTML (preferably using Notepad, Textpad or the Dreamweaver code window only!)