Lecture 6 More Advanced HTML Boriana Koleva Room: C54

Slides:



Advertisements
Similar presentations
Tables Tables provide a means of organising the layout of data
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Svetlin Nakov Telerik Corporation
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
HTML and XHTML Controlling the Display Of Web Content.
© 2004, Robert K. Moniot Chapters 4 & 5 Introduction to HTML, More Details.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Introducing Web Tables
Computing Concepts Advanced HTML: Tables and Forms.
HTML: Tables and Forms. Objectives Use tables to structure a webpage Use forms to collect user input –Method:Get, Post –Input –Select –Textarea.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Table, Forms, Metatags and Frames.
Session 2 Tables and forms in HTML Adapted by Sophie Peter from original document by Charlie Foulkes.
Svetlin Nakov Telerik Corporation
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
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 Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
1 XHTML Tables A table is a matrix of cells, for displaying content in rows and columns The cells can include almost any element Some cells display row.
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.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
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.
Svetlin Nakov Telerik Corporation
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML Pt. 2.
HTML Hyper Text Markup Language It is used for describing web documents or web pages. A markup language is set of markup tags. HTML documents are described.
CP476 Internet Computing Lecture 7 HTML 1 What is HTML? HyperText Markup Language (HTML) is an application of Standard Generalized Markup Language (SGML)
 2004 Prentice Hall, Inc. All rights reserved. Chapter 5 - Introduction to XHTML: Part 2 Outline 5.1 Introduction 5.2 Basic XHTML Tables 5.3 Intermediate.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
76 © 1998, 1999, 2000 David T. Gray, Howard Duncan, Jane Kernan Frames When displaying information in a browser, it is sometimes useful to divide the display.
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
1 Week Four– Advance HTML 2 Dr. Fadi Safieddine. 2 Lecture Content Basic HTML Tables Using based Feedback form Creating and Using Image Maps Nested.
Svetlin Nakov Telerik Corporation
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
HTML Forms A Preliminary Step into Dynamic Web Fred Durao
TJ 3043 – Web Application Development HTML Form. 2.0 Forms A form is the usual way to communicate information from a Web browser to a server HTML has.
CP102 Module 7: HTML 1 Module 7: HTML 1.What is 1.What is HTML? 2. 2.Basic syntax, document structure 3. 3.Basic formatting, images, links 4. 4.Lists,
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.
TJ 3043 – Web Application Development HTML Form. 2.0 Forms - A form is the usual way information is gotten from a browser to a server - HTML has tags.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Forms.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Web Development Basics Lecture 2 – More HTML. Content  More text formatting  Map  Table  Frame  Form.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 5.
Introduction to XHTML/HTML5 (part 2) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web How To Program (multiple versions) 1.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
 Derived from SGML  Original intent: General layout of documents that could be displayed by a wide variety of computers  HTML standards by W3C: › The.
Working with Tables: Module A: Table Basics
>> HTML: Tables.
CS3220 Web and Internet Programming HTML Tables and Forms
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
The Web Warrior Guide to Web Design Technologies
Chapter 5 Introduction to XHTML: Part 2
Chapter 5 - Introduction to XHTML: Part 2
CS3220 Web and Internet Programming HTML Tables and Forms
The Internet 10/27/11 XHTML Forms
Lesson 5: HTML Tables.
Presentation transcript:

Lecture 6 More Advanced HTML Boriana Koleva Room: C54

Overview Tables Forms (mention of frames)

Tables A table is a matrix of cells The cells can include almost any element Some cells have row or column labels and some have data A table is specified as the content of a tag Each row of a table is specified as the content of a tag The row headings are specified as the content of a tag Each data cell of a row is specified as the content of a tag

Table Basic Formatting A border attribute in the tag specifies a border between the cells If border is set to "border", the browser’s default width border is used The border attribute can be set to a number, which will be the border width E.g. border = “4” Without the border attribute, the table will have no lines! border attribute not supported in HTML5 Tables are given titles with the tag, which can immediately follow

Table Example Price of Fruit Fruit Price Apple £0.20 Orange £0.50

rowspan and colspan attributes Table cells are sized to fit the data they contain You can create larger data cells by using these attributes: rowspan – set in the or tag to specify that the cell must span some number of rows colspan – set in the or tag to specify that the cell must span some number of columns

align and valign attributes The align attribute controls the horizontal placement of the contents in a table cell Values are left, right, and center Default for labels is center, for data it is left align is an attribute of,, and The valign attribute controls the vertical placement of the contents of a table cell Values are top, bottom, and center (default) valign is an attribute of and Both attributes are not supported in HTML5

cellpadding and cellspacing attributes The cellspacing attribute of is used to specify the distance between cells in a table The cellpadding attribute of is used to specify the spacing between the content of a cell and the inner walls of the cell Both attributes are not supported in HTML5 Colorado is a state of … South Dakota is somewhat…

Table Sections Tables naturally occur in two and sometimes three parts Header – First section, contains header information such as column names Body – Table’s primary data If a document has multiple tbody elements, they are separated by thicker horizontal lines Footer – E.g. for calculation results and footnotes

Forms A form is the usual way information is communicated from a browser to a server HTML has tags to create a collection of objects that implement this information gathering These objects are called controls or widgets (e.g., radio buttons and checkboxes) When the Submit button of a form is clicked, the form’s values are sent to the server

The Tag All of the components (widgets) of a form are defined in the content of a tag The only required attribute of is action specifies the URL of the application that is to be called when the Submit button is clicked action = " bin/survey.pl" if the form has no action, the value is set to the empty string (“ ”) The method attribute of specifies one of the two possible techniques of transferring the form data to the server, get and post

The Tag Many controls are created with the tag The type attribute of specifies the kind of control being created Text Creates a horizontal box for text input Default size is 20 characters; it can be changed with the size attribute If more characters are entered than will fit, the box is scrolled (shifted) left maxlength – max number of characters

The Tag Password type = “password” Only bullets or asterisks displayed by browser Checkboxes – to collect multiple choice input Every checkbox requires a value attribute, which is the widget’s value in the form data when the checkbox is ‘checked’ A checkbox that is not ‘checked’ contributes no value to the form data By default, no checkbox is initially ‘checked’ To initialize a checkbox to ‘checked’, the checked attribute must be set to "checked"

The Tag Radio Buttons - collections of checkboxes in which only one button can be ‘checked’ at a time Every button in a radio button group MUST have the same name If no button in a radio button group is selected the browser often selects the first one

The Tag - Menus There are two kinds of menus those that behave like checkboxes and those that behave like radio buttons (the default) Menus that behave like checkboxes are specified by including the multiple attribute, which must be set to " multiple " The name attribute of is required

The Tag - Menus The size attribute of can be included to specify the number of menu items to be displayed (the default is 1) If size is set to > 1 or if multiple is specified, the menu is displayed as a scrolled list Each item of a menu is specified with an tag whose pure text content (no tags) is the value of the item An tag can include the selected attribute, which when assigned " selected " specifies that the item is pre-selected

The Tag Creates a multiline text area Usually include the rows and cols attributes to specify the size of the text area Default text can be included as the content of Scrolling is implicit if the area is overfilled

Submit and Reset Buttons Both are created with Reset clears all controls to their initial states Submit has two actions: 1.Encode the data of the form 2.Request that the server execute the server- resident program specified as the value of the action attribute of A Submit button is required in every form Complete form:

Frames Rectangular sections of the display window, each of which can display a different document Uses of frames Navigation systems (table of contents) Static title Advertising Frames are not supported in XHTM5 Use discouraged becaus e they: break the fundamental paradigm of the web The page is the basic unit of the web represented by a URL cause usability problems

Framesets The tag specifies the number of frames and their layout in the window takes the place of Cannot have both! must have either a rows attribute or a cols attribute, or both (usually the case) The possible values for rows and cols are: numbers – size in pixels percentages – % of total browser window size asterisks – remainder of window

Frame tag The tag specifies the content of a frame The first tag in a specifies the content of the first frame, etc. Row-major order is used Frame content is specified with the src attribute Without a src attribute, the frame will be empty (such a frame CANNOT be filled later) If has fewer tags than frames, the extra frames are empty

Summary Tables Forms (Frames)