Introducing Web Tables

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

Web Development & Design Foundations with HTML5

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

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

Tables *Note: Nothing in Volcano!*

IMY 110 Theme 7 HTML Tables

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Creating web pages Chapter 5. Structuring contents

Chapter 4 Notes. Creating Tables in a Website

Structure Bars. Tag Bar

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

Objectives. Tutorial 8 Designing ga Web Site with Frames. Introducing Frames. Objectives. Disadvantages to Using Frames. Planning Your Frames

c122sep2214.notebook September 22, 2014

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

Chapter 5. Introduction to XHTML: Part 2

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

Deccansoft Software Services

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

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

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

Creating a Web Page with HTML

frameset rows cols <frameset> rows cols

INFS 2150 / 7150 Introduction to Web Development & HTML Programming

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

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

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

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

To assign a name to a frame, add the name attribute to the frame tag. The syntax for this attribute is: <frame src= url name= name />

Dreamweaver CS3 Concepts and Techniques

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

NAME: name a section of the page TARGET = "_blank" "_parent" "_self" "_top" window name which window the document should go in

Chapter 7 Tables and Layout

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

Chapter 7 Tables and Layout

Name Related Elements Type Default Depr. DTD Comment

Advanced Web Programming C2. Basic Web Technologies

USER GUIDE MADCAP FLARE Tables

ICT IGCSE Practical Revision Presentation Web Authoring

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

HyperText Markup Language/Tables

Web Design and Application Development

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

Create a table to neatly display information

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

Advanced HTML Scripting WebGUI Users Conference

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

Chapter 0. HTML review

Table Basics. The structure of an table

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

HTML and CSS COURSE SYLLABUS

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

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

HTML and XHTML 5th Edition

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

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

Bixby Public Schools Course Essential Elements Grade: Desktop Publishing

CSC 121 Computers and Scientific Thinking

COMS 359: Interactive Media

JSF - H:PANELGRID. JSF Tag. Rendered Output. Tag Attributes. The h:panel tag renders an HTML "table" element. Attribute & Description.

Tutorial 8: Designing a Web Site with Frames

HTML 5 Tables and Forms

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

Introduction to Computer Science (I1100) Internet. Chapter 7

Website Development with HTML5, CSS and Bootstrap

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Html basics Course Outline

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition)

IMY 110 Theme 11 HTML Frames

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

A Balanced Introduction to Computer Science, 3/E

CITS1231 Web Technologies. HTML Tables and Page Design Issues

HTML & XHTML Tag Quick Reference

Intermediate HTML Using Dreamweaver

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Certified HTML Designer VS-1027

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

Table-Based Web Pages

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

Use Table Styles to format an entire table. Format a table. What do you want to do? Hide All

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

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

Certified HTML5 Developer VS-1029

Fairly advanced HTML

HYPERTEXT MARKUP LANGUAGE ( HTML )

LING 408/508: Computational Techniques for Linguists. Lecture 14

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

HTML-5.com itemscopehttp://data-vocabulary.org/breadcrumb<span itemprop="title">html 5</span> itemscopehttp://data-vocabulary.

Web Technology. HTML & xhtml

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

ICT IGCSE Practical Revision Presentation Web Authoring

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

GRAPHIC WEB DESIGNER PROGRAM

@namespace url( /* set default namespace to HTML */ /* bidi */

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

Styles, Style Sheets, the Box Model and Liquid Layout

Dreamweaver Tutorials Working with Tables

Transcription:

TABLE AND FRAMESET

Introducing Web Tables A table can be displayed on a Web page either in a text or graphical format. A text table: Contains only text, evenly spaced on the Web page in rows and columns Uses only standard word processing characters.

Introducing Web Tables A graphical table: It is displayed using graphical elements Can include design elements such as background colors, and colored borders with shading. Allows you to control the size of tables cells, rows, columns and alignment of text within the table.

Text table Creating a text table Using the <pre> tag to display preformatted text. It retains any spaces or line breaks indicated in the HTML file. The <pre> tag displays text using a fixed-width font. By using the <pre> tag, a text table can be displayed by all browsers, and the columns will retain their alignment no matter what font the browser is using.

Text table Creating a text table <body> <pre> Manufacturer Model Price ================================= City Computers P325+ $2500 MidWest CPU 586/Ultra $2700 CowCity Computer p133/+ $2450 CMF Computer p150z $2610 </pre> </body>

Graphical Tables Creating a text table <TABLE > <TR> <TD>content 1</TD> <TD>content n</td> </TR> <TR> <TD>content 1</TD> <TD>content n</td> </TR> </TABLE>

Graphical table Ex: <html><body> <h4>one column:</h4> <table border="1"> <tr> <td>100</td> </tr> </table> <body><html>

Graphical table <html><body> <h4>one row and three columns:</h4> <table border="1"> <tr> <td>100</td> <td>200</td> <td>300</td> </tr> </table> <body><html>

Graphical table <html><body> <h4>two rows and three columns:</h4> <table border="1"> <tr> <td>100</td> <td>200</td> <td>300</td> </tr> <tr> <td>400</td> <td>500</td> <td>600</td> </tr> </table>

Graphical table Creating Header with the <th> tag Headings in a table are defined with the <th> tag.

Graphical table Creating a Table Caption: to create a caption Table you use <caption> tag Syntax: <Table> <Caption align= Value > Caption text</caption> <tr> </tr> <Table> <td>cell1</td>

Modifying a Table Adding a table border <Table Border =n> <Table> Ex: <Table border=0>

Modifying a Table Cellspacing property controls the amount of space inserted between table cells. Ex: <Table CellSpacing = size > <table border="1" cellspacing="10 > <tr><td>first</td><td>row</td></tr> <tr><td>second</td><td>row</td></tr> </table>

Modifying a Table CellPadding property controls the space between the table text and the cell borders. Ex: <Table CellPadding = size > <table border="1" cellpadding="10 > <tr><td>first</td><td>row</td></tr> <tr><td>second</td><td>row</td></tr> </table>

Modifying a Table Table Alignment: By default, the browser places table on the page s left margin. You can change this placement by adding the ALIGN property to the TABLE tag. <Table Align= Left/Right/Center >

Modifying a Table Text Alignment: The Align property of <TD> tag is used to align text within table cells. The Align property include the values: left, right, center, default, text is aligned with the left of the table cell. The Valign property of <TD> tag allows you to control the vertical placement of text within the table cell, it include the values: top, middle, bottom

Modifying a Table Syntax: <Table> <tr> <td align= left/right/center >cell1</td> </tr> <tr> <td valign= top/middle/bootm >cell2</td> </tr> </Table>

Modifying a Table Working with Table and Cell size: Defining the Table size: <Table Width=Size height=size> Defining Cell and Column sizes: <Td Width=Size height=size>

Modifying a Table Modifying the Table Background: To change the background color of the entire table: <table bgcolor = color > To change the background color of individual cells: insert the bgcolor property in the <tr>, <th> or <td> tag.

Modifying a Table Spanning Rows and Columns: a spanning cell is a cell that occupies more than one row or column in a table. You can create spanning cells by inserting the ROWSPAN and COLSPAN properties in a <TD> or <TH> tag. Syntax: <td rowspan=value colspan=value> </td> text

Modifying a Table <Table border="1" bgcolor= fuschia bordercolor= red align= center Width=50% Height=30%> <caption> Properties of Table</caption> <tr> </tr> <tr> </tr> <tr> <th colspan="3"> Colspan</th> <th Rowspan= 2 > Rowspan</th> <td align=center>cell 1</td> <td align=center>cell 2</td> <td align=center> Cell 3</td> <td align=center> Cell 4</td> </tr> </table>

Table Heading, Body, and Footer HTML allows you to identify the different parts of your table using the <thead>, <tbody>, and <tfoot> tags. <thead> is used for the table heading <tbody> is used for the table body <tfoot> is used for the table footer These tags do not format the table, but they do contain collections of rows called row groups.

The table heading, body, and footer syntax is: <table> <thead> Table Heading, Body, and Footer table rows containing heading information... </thead> <tfoot> table rows containing footer information... </tfoot> <tbody> <tr> first group of table rows... </tbody> <tbody> <tr> second group of table rows... </tbody> </table>

Table Heading, Body, and Footer A single table can contain several <tbody> tags to identify different parts of the table. The <thead> and <tfoot> sections must appear before any <tbody> sections in the table structure. These tags are most often used in a table that draws its data from an external data source, or tables that span several Web pages.

Table Heading, Body, and Footer The browser will repeat those sections across multiple pages. Not all browsers support this capability. Notice: no styling is applied by the browser when row groups are used apply your own styling.

Table Frames and Rules The frame attribute was introduced in HTML 4.01- therefore might not be supported in older browsers. With the frame and rule attributes you can control how borders and gridlines are applied to the table. The frames attribute allows you to determine which sides of the table will have borders.

Table Frames and Rules The frame attribute syntax is: <table frame= type > </table> Type: box (the default), above below hsides vsides lhs, rhs, or void

Table Frames and Rules

Table Frames and Rules Ex:

Table Frames and Rules The rules attribute lets you control how the table gridlines are drawn. The syntax of the rules attribute is: <table rules= type > </table> type : All Rows cols or none

Table Frames and Rules Ex:

Using Tables for Page Layout Tables can contain images, headings, paragraphs, lists and other tables, so web designers using tables for page layout. The table borders would be hidden from the user, leaving only the table content visible. Tables support a wide variety of possible page layouts -> jigsaw layout

Using Tables for Page Layout jigsaw layout: The cell borders have been added to make the table structure clear, but they are removed in the final version of the object. The table contains three rows and three columns with eight background images. Only the middle cell contains any actual content;

Using Tables for Page Layout The remaining cells are used to display the graphic images that constitute the rounded border. When rendered by the browser without the table gridlines, it appears like a rectangle with rounded borders.

Using Tables for Page Layout

Using Tables for Page Layout Create table:

Using Tables for Page Layout

Using Tables for Page Layout

Using Tables for Page Layout Set the table styles: table.roundedbox { margin: 5px; border-collapse: collapse } table.roundedbox td {padding: 0px}

Using Tables for Page Layout Set the dimensions of the outside cells: Corner cell Top and bottom cells table.roundedbox td.topleft {width: 16px; height: 16px) table.roundedbox td.topright {width: 16px; height: 16px) table.roundedbox td-bottomleft {width: 16px; height: 16px) table.roundedbox td.bottomright {width: 16px; height: 16px) table.roundedbox td.top {width: auto; height : 16px) table.roundedbox td.bottom {width: auto; height: 16px) Left and right cells table.roundedbox td.left {width: 16px; height: auto) table.roundedbox td.right {width: 16px; height: auto)

Using Tables for Page Layout Adding the Rounded Border: The last part of the jigsaw table is to put background images in the eight outside cells. Add the styles to set the background images for the four corner cells:.topleft {background: url(topleft.png) no-repeat top left).topright {background: url(topright.png) no-repeat top right).bottomleft {background: url(bottomleft.png) no-repeat bottom left).bottomright {background url(bottomright.png) no-repeat bottom right)

Using Tables for Page Layout Add the styles for the top and bottom cell backgrounds:.top {background: url (top.prig) repeat-x -top).bottom {background: url(bottorn.png) repeat-x bottom) Add the background images for the left and right cells.left {background: url(left.png) repeat-y left).right {background: url(right.png) repeat-y right)

FRAMESET When website contain several pages, each page is dedicated to a particular subject. With frames, you can display more than one Web page in the same browser window. Each HTML document is called a frame, and each frame is independent of the others. The disadvantages of using frames are: The web developer must keep track of more HTML documents It is difficult to print the entire page

Creating a Frame Layout Syntax: <html> <head> <title>page title</title> </head> <frameset> frame definitions </frameset> </html>

Creating a Frame Layout Specifying Frame size and Orientation: <HTML> <HEAD><TITLE>Title</TITLE></HEAD> <Frameset Rows= a, b > <Frame name= Name1 Src= Content1.htm> <Frame name= Name2 Src= Content2.htm>.. <Frame name= Namen Src= Content_n.htm> </Frameset> </HTML>

Creating a Frame Layout <html> <frameset rows="25%,50%,25%"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> <frame src="frame_c.htm"> </frameset> </html>

Creating a Frame Layout <HTML> <HEAD><TITLE>Title</TITLE></HEAD> <Frameset Cols= a, b > <Frame name= Name1 Src= Content1.htm> <Frame name= Name2 Src= Content2.htm>.. <Frame name= Name_n Src= Content_n.htm> </Frameset> </HTML>

Creating a Frame Layout <html> <frameset cols="25%,50%,25%"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> <frame src="frame_c.htm"> </frameset> </html>

Creating a Frame Layout Noresize: If a frame has visible borders, the user can resize it by dragging the border. To prevent a user from doing this, you can add noresize="noresize" to the <frame> tag. Add the <noframes> tag for browsers that do not support frames.

Creating a Frame Layout Noframes You cannot use the <body> tags together with the <frameset> tags However, if you add a <noframes> tag containing some text for browsers that do not support frames, you will have to enclose the text in <body> tags.

The appearance of Frames Frame Margins: Marginwidth: is the amount of space that appears to the page s left and right. Marginheight: is the amount of space that appears above and below the content of the page in frame. Faculty of Computer Science and Engineering

Frames and Hypertext Links Assigning a name to a Frame: <Frame name= Frame_name src= Page.htm > Specifying a link Target: <A Href= Page.htm Target= Frame_name > Nhãn mục liên kết </A>

Frames and Hypertext Links Using the <BASE>tag: The <BASE> tag appears within the <HEAD> tags of HTML file and is used to specify global options for the page. <head> <BASE targer=mainframe/top/left> </head> target property indentifies a default target for all of the page s hyperlinks.

Frames and Hypertext Links NOFRAMES The <noframes> tag is used for browsers that do not handle frames. It can contain all the elements that you can find inside the body element of a normal HTML page. It is most used to link to a non-frameset version of the web site or to display a message to users that frames are required.

Frames and Hypertext Links Ex : <html> <frameset cols="25%,50%,25%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /> <noframes> Sorry, your browser does not handle frames! </noframes> </frameset> </html>

Frames and Hypertext Links Iframe: defines an inline frame that contains another document. Syntax: <Iframe Src= Page.htm Name= name Width= x Height=y Align=left/ right> <p>your browser does not support iframes.</p> </Iframe>