Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc. 2013. All Rights Reserved.

Slides:



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

Introduction to HTML Part 2
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?
Images, Tables, lists, blocks, layout, forms, iframes
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
Tutorial 6 Working with Web Forms
1 Introduction to XHTML: Part 2 Outline Introduction Basic XHTML Tables Intermediate XHTML Tables and Formatting Basic XHTML Forms More Complex XHTML Forms.
Computing Concepts Advanced HTML: Tables and Forms.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
 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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
DAT602 Database Application Development Lecture 14 HTML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
1 XHTML Forms A form is the mechanism to –Collect information from a browser user –Transmit collected information from a browser to a server HTML/XHTML.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Web Development University of Khartoum. Web Development Web Programming Web Design University of Khartoum.
 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.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
1 HTML Advanced Features Dr. Awad Khalil Computer Science Department AUC.
Ch2: Introduction to HTML5. How does the WWW work? Web information is stored in documents called Web pages. Web pages are files stored on computers called.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
 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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Internet & World Wide Web How to Program, 5/e. Revised by Dr. T. Tran for CSI3140 Copyright © Pearson, Inc All Rights Reserved.2.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
CS3101 Internet Programming. Chapter 01 Introduction to XHTML 2Internet Programming - Chapter 01:XHTML Slides based on: Programming the World Wide Web.
Copyright © Pearson, Inc All Rights Reserved. WEEK 7: INTRODUCTION TO HTML5 Sotiris Charalambous.
1 Chapter 2 - Introduction to HTML: Part 2 Outline Basic HTML Tables Intermediate HTML Tables and FormattingBasic HTML Forms More Complex HTML Forms Internal.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
Introduction to XHTML/HTML5 (part 2) Instructor: Sergey Goldman Based on Based on Internet & World Wide Web How To Program (multiple versions) 1.
HTML Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Introduction to HTML5.
Client-Side Internet and Web Programming
4 Introduction to XHTML.
4 Introduction to XHTML.
4 Introduction to XHTML.
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.
Chapter 5 Introduction to XHTML: Part 2
Chapter 5 - Introduction to XHTML: Part 2
4 Introduction to XHTML.
1 Introduction to XHTML.
Introduction to XHTML Cont:.
Introduction to HTML.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Presentation transcript:

Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.

 2008 Pearson Education, Inc. All rights reserved.  Unordered list element ul  creates a list in which each item in the list begins with a bullet symbol (typically a disc)  Each entry is an li (list item) element. Most web browsers render these elements with a line break and a bullet symbol at the beginning of the line. 2

 2008 Pearson Education, Inc. All rights reserved. Links Here are my favorite sites Click on a name to go to that page YouTube Wikipedia Amazon LinkedIn

 2008 Pearson Education, Inc. All rights reserved.

Nested Lists  Lists may be nested to represent hierarchical relationships, as in a multi-level outline.  the next example demonstrates nested lists and ordered lists.  The ordered-list element ol creates a list in which each item begins with a number. 5

 2008 Pearson Education, Inc. All rights reserved. Links Here are my favorite courses and programming language courses DataBases system Operating system Web Design 1 and 2 programming language Java C# HTML

 2008 Pearson Education, Inc. All rights reserved.  Tables are frequently used to organize data into rows and columns.  The table element defines an HTML5 table  The summary attribute summarizes the table’s contents and is used by speech devices to make the table more accessible to users with visual impairments.  The caption element specifies a table’s title.  It’s good practice to include a general description of a table’s information in the table element’s summary attribute—one of the many HTML5 features that make web pages more accessible to users with disabilities.  Speech devices use this attribute to make the table more accessible to users with visual impairments. 7

 2008 Pearson Education, Inc. All rights reserved. student first name (1st column) and last name (2nd column) the grades (third colummn) firstname lastname grades ahmed ali 94 Eve Jackson 94 John Doe 80

 2008 Pearson Education, Inc. All rights reserved.  A table can be split into three distinct sections:  Head ( thead element)  Table titles  Column headers  Body ( tbody element)  Primary table data  Table Foot ( tfoot element)  Calculation results  Footnotes  Above body section in the code, but displays at the bottom in the page 9

 2008 Pearson Education, Inc. All rights reserved.  tr Element  Defines individual table rows  Element th  Defines a header cell  Td Element  Contains table data elements 10

 2008 Pearson Education, Inc. All rights reserved. Using rowspan and colspan with Tables  introduces two new attributes that allow you to build more complex tables.  You can merge data cells with the rowspan and colspan attributes  The values of these attributes specify the number of rows or columns occupied by the cell.  Can be placed inside any data cell or table header cell. 11

 2008 Pearson Education, Inc. All rights reserved. Cell that spans two columns: Name Telephone Bill Gates Table Cells that Span Many ColumnsTable Cells that Span Many Rows Cell that spans two rows: First Name: Bill Gates Telephone:

 2008 Pearson Education, Inc. All rights reserved.  HTML5 provides forms for collecting information from users to be sent to server.  HTML Forms - The Input Element  The most important form element is the element.  An element can vary in many ways, depending on the type attribute.  An element can be of type text field, checkbox, password, radio button, submit button 13. input elements.

 2008 Pearson Education, Inc. All rights reserved.  input types :Text Fields defines a one-line input field that a user can enter text into: Example: First name: Last name:

 2008 Pearson Education, Inc. All rights reserved.  input types :Password Field defines a password field:  Example: Password:

 2008 Pearson Education, Inc. All rights reserved.  input types : Radio Buttons defines a radio button. Radio buttons let a user select ONLY ONE of a limited number of choices: Example: Male Female

 2008 Pearson Education, Inc. All rights reserved.  input types : Checkboxes defines a checkbox. Checkboxes let a user select ZERO or MORE options of a limited number of choices. Example: I have a bike I have a car

 2008 Pearson Education, Inc. All rights reserved.  input types : Submit Button defines a submit button.  A submit button is used to send form data to a server. The data is sent to the page specified in the form's action attribute. The file defined in the action attribute usually does something with the received input: Example Username:

 2008 Pearson Education, Inc. All rights reserved. Forms Feedback Form Please fill out this form to help us improve our site. inserts a text field --> Name:

 2008 Pearson Education, Inc. All rights reserved.

 2008 Pearson Education, Inc. All rights reserved.

method Attribute of the form Element  A form is defined by a form element  Attribute method specifies how the form’s data is sent to the web server.  Using method = "post" appends form data to the browser request, which contains the protocol (HTTP) and the requested resource’s URL.  The other possible value, method = "get", appends the form data directly to the end of the URL of the script, where it’s visible in the browser’s Address field.  The action attribute of the form element specifies the script to which the form data will be sent 22

 2008 Pearson Education, Inc. All rights reserved. action Attribute of the form Element  The action attribute of the form element specifies the script to which the form data will be sent.  Since we haven’t introduced server-side programming yet, we set this attribute to for now.  input elements that specify data to provide to the script that processes the form (also called the form handler).  An input’s type is determined by its type attribute. 23

 2008 Pearson Education, Inc. All rights reserved. Hidden Inputs  Forms can contain visual and nonvisual components.  Visual components include clickable buttons and other graphical user interface components with which users interact.  Nonvisual components, called hidden inputs, store any data that you specify, such as addresses and HTML5 document file names that act as links. 24

 2008 Pearson Education, Inc. All rights reserved. text input Element  The text input inserts a text field into the form, which allows the user to input data.  The label element provides users with information about the input element’s purpose  The size attribute specifies the number of characters visible in the text field.  Optional attribute maxlength limits the number of characters input into a text field. 25

 2008 Pearson Education, Inc. All rights reserved. submit and reset input Elements  The submit input element is a button.  When the submit button is pressed, the form’s data is sent to the location specified in the form’s action attribute.  The value attribute sets the text displayed on the button.  The reset input element allows a user to reset all form elements to their default values. 26

 2008 Pearson Education, Inc. All rights reserved. Additional Form Elements  Figure 2.15 contains a form that solicits user feedback about a website.  The textarea element inserts a multiline text area into the form.  The number of rows is specified with the rows attribute, and the number of columns (i.e., characters per line) with the cols attribute.  Default text can be specified in other input types, such as text fields, by using the value attribute. 27

 2008 Pearson Education, Inc. All rights reserved. More Forms Feedback Form Please fill out this form to help us improve our site. <input type = "hidden" name = "recipient" value = <input type = "hidden" name = "subject" value = "Feedback Form"> <input type = "hidden" name = "redirect" value = "main.html"> Name:

 2008 Pearson Education, Inc. All rights reserved. creates a multiline textbox --> Comments: Enter comments here. inserts a --> Address: Things you liked: Site design Links Ease of use Images Source code

 2008 Pearson Education, Inc. All rights reserved. creates a radio --> How did you get to our site?: Search engine Links from another site Deitel.com Web site Reference in a book Other Rate our site: tag presents a drop-down list with choices indicated by the --> tags -->

 2008 Pearson Education, Inc. All rights reserved. Amazing Awful </html

 2008 Pearson Education, Inc. All rights reserved.

 The checkbox input element enables users to select and option.  When the checkbox is selected, a check mark appears in the checkbox. Otherwise, the checkbox is empty  checkbox es can be used individually and in groups. checkbox es that are part of the same group have the same name  radio buttons are similar to checkbox es, except that only one radio button in a group can be selected at any time.  All radio buttons in a group have the same name attribute but different value attributes.  The select input provides a drop-down list of items.  The name attribute identifies the drop-down list.  The option element adds items to the drop-down list. 33

 2008 Pearson Education, Inc. All rights reserved.

 The a tag can be used to link to another section of the same document by specifying the element’s id as the link’s href.  To link internally to an element with its id attribute set, use the syntax #id. 35

 2008 Pearson Education, Inc. All rights reserved. Internal Links The Best Features of the Internet Go to Favorite Bugs You can meet people from countries around the world. You have access to new media as it becomes public: New games New applications For Business For Pleasure

 2008 Pearson Education, Inc. All rights reserved. Around the clock news Search Engines Shopping Programming HTML5 Java Dynamic HTML Scripts New languages Links Keeping in touch with old friends It is the technology of the future!

 2008 Pearson Education, Inc. All rights reserved. My 3 Favorite Bugs Go to Favorite Features Fire Fly Gal Ant Roman Tic

 2008 Pearson Education, Inc. All rights reserved.

 One way that search engines catalog pages is by reading the meta element’s contents.  The name attribute identifies the type of meta element  The content attribute  Of a keywords meta element: provides search engines with a list of words that describe a page, which are compared with words in search requests  Of a description meta element: provides a three- to four-line description of a site in sentence form, used by search engines to catalog your site. This text is sometimes displayed as part of the search result 41

 2008 Pearson Education, Inc. All rights reserved.