HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.

Slides:



Advertisements
Similar presentations
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?
Advertisements

1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
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
Computing Concepts Advanced HTML: Tables and Forms.
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.
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.
Creating Web Page Forms
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
ECA 228 Internet/Intranet Design I Forms. ECA 228 Internet/Intranet Design I Forms forms are a way for a user to communicate with you – text fields –
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.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Forms and Form Controls Chapter What is a Form?
DAT602 Database Application Development Lecture 14 HTML.
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.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
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.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
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.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
1 HTML Forms
FORMS. Forms are used to receive information from the web surfer, such as: their name, address, credit card, etc. Form fields are objects that allow.
Introduction To HTML Form Inputs Written By George Gimian.
+ FORMS HTML forms are used to pass data to a server. begins and ends a form Forms are made up of input elements Every input element has a name and value.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Project 6 Creating Forms on a Web Page. Objectives Define terms related to forms Describe the different form controls and their uses Use the tag Create.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Creating Forms on a Web Page. 2 Objectives  Discuss the process of creating a form  Distinguish between data input controls and text input controls.
Week 10: HTML Forms HNDIT11062 – Web Development.
1 HTML Forms
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
1 HTML forms (cont.)
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
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.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Tutorial 6 Working with Web Forms
ITE 115 Creating Web Page 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
CNIT 131 HTML5 - Forms.
Creating Forms on a Web Page
HTML Forms
Presentation transcript:

HTML II

Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives

Factors to consider in designing your website  Function of the page Why are you creating the page? What do you want to convey? Are you displaying data, and or capturing data?  Audience  Sort of structure required Do you require more than one page? Order of Navigation  Sketch out the site on paper  Naming convention for files. Simple Consistent Use lower case names Don’t forget the “.htm” or “.html” extension.

Organizing your Files Decide where to store your files Create a central folder or directory to hold all the material that will be available on the site. Divide the central folder in a way that reflects the organization of your site, i.e. create separate folders for images, HTML documents, other external files, etc. HTML Tables Similar to regular tables in that they are made up of columns and rows. Very useful for organizing a page. By creating a borderless table, you can create a well laid out page. Created with the table tag. The closing tag is not optional, as some browsers would fail to display the table in its absence.

The TABLE tag Indicates the creation of a table. Has the following attributes: BORDER, BORDERCOLOR, ALIGN, WIDTH, HEIGHT, BGCOLOR Example: …….. The Table Row Tag Creates a new row in the table. Also has attributes that can be used to set the appearance of that row, such as BGCOLOR. Has a matching closing tag The Table Data tag Used to add content to the cells of the table. Has attributes that can be used to format the content of the cell. Has a matching closing tag

The Table Header tag Creates a header for a table column, that appears in bold text. Has a matching closing tag Example: FIRST NAME SURNAME JAMES BLOGGS PETER CUNNING

FIRST NAMESURNAME JAMESBLOGGS PETERCUNNING Note that 2 columns were created in this example. More columns could have been created by adding more tags as shown below: FIRST NAME SURNAME AGE JAMES BLOGGS 20 PETER CUNNING 25. This produces: FIRST NAMESURNAMEAGE JAMESBLOGGS20 PETERCUNNING25

Unordered Lists (Bullet points) Very commonly used on the web for organizing a page. Used to list items that have no particular order. Created with the tag and matching closing tag. Has an attribute ‘TYPE’ that allows definition of the shape of the bullet points. : solid round bullet : empty round bullet : square bullet. : Used to add list items. Also uses the attribute ‘TYPE’. When used, overrides the TYPE as defined in. Each list item in an unordered list should be enclosed in and matching tags. The closing tag is inserted after the last tag as shown in the next slide.

……… Computing Marketing Accounting …………. would result in: oComputing oMarketing Accounting Ordered Lists Ideal for explaining step-by-step instructions, e.g. in a form Created with the Ordered list tag.

Has a TYPE attribute that determines the kind of symbol to be used. where x represent the type of symbol to be used in numbering the list items (A for capital letters, a for small letters, I for capital roman numerals, i for small roman numerals, and 1 for numbers, the default) List items are added with the tag. Example: …….. Computing Marketing Accounting ……… would result in: A.Computing B.Marketing C.Accounting

HTML Forms HTML forms enable us to capture data on the web. A form may also be used to display data May be used to return information to the visitor. Common examples??? Essentially comprised of a shell (the layout or structure), and a processing script. The principal tool for processing form data is the CGI script, typically written in Perl or some other programming language. It is also possible to send form data by , even though the data would be poorly formatted. Forms are created with the tag. has the following attributes: METHOD: This is either ‘POST’ (most common), or ‘GET’ ACTION: The processing script is referenced in this attribute. where script.url is the location of the cgi script.

Form Elements Most are created with the tag, which has a TYPE attribute that determines the type of element, such as text box, radio button, checkbox, etc. Text Boxes Can contain one line of free form text, typically for user input. Created with. text indicates to the browser that this is a text box name is used to identify the text box value is the default value you assign to it, and would be sent to the server if user doesn’t enter data in the field. If desired, you can set the SIZE=n where n is the desired width in characters. You may also set the MAXLENGTH =n where n is the maximum number of characters that can be entered in the box.

Password Boxes The difference from a text box is that whatever is typed into a password box is hidden by bullets or asterisks. Note that this data is however not encrypted when sent to the server. Larger Text Areas Unlike text boxes, can be as large as your page, and will expand as needed. Ideal for entering large amounts of data e.g comments. where n is the height of the text area in rows (default value is 4), and y is the width in characters (default value is 40). Radio Buttons Ideal when user has to make a choice from a set of values, as only one value can be selected.

The name links the radio buttons together, and identifies the data sent to the server. The value is the text sent to the server if a particular button is checked. Example: Male Female would result in a group of 2 radio buttons, one labelled Male (with value M) and the other labelled Female (value F). Hidden Fields Do not appear on the browser. Typically used to pass data from one form to another.. They can be placed anywhere between and.

Submit Button Used to submit form data If you omit the VALUE attribute, by default, your submit button would be labelled ‘Submit Query’ by the browser. Reset Button Resets the form to blank state, or to default values when they exist ***Class Assignment*** Find out how to create Checkboxes and Drop down Menus