Meta Tags You can add metadata to your web pages by placing tags inside the header of the document which is represented by and tags. A meta tag can have.

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

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?
23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
Tutorial 6 Creating a Web Form
Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
HTML and XHTML Controlling the Display Of Web Content.
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
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.
Creating Web Page Forms
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 07: Forms - Spring 2011.
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.
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?
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.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
1 HTML Forms
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
ITCS373: Internet Technology Lecture 5: More 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.
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
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
XP 1 Tutorial 6 Creating Web Page Forms. XP 2 Tutorial Objectives  Describe how Web forms can interact with a server-based program  Review the various.
1 Building FORMS In When a visitor enters information into a web form displayed in a web browser and clicks the submit button, the information is sent.
1 Review of Form Elements. 2 The tag Used in between tags.  Form elements(text control, buttons, etc.. ) goes here. OR  Form elements(text control,
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
HTML Forms a form is a container for input elements on a web page input elements contain data that is sent to the web server for processing.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
+ 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.
©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.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Forms.
Week 10: HTML Forms HNDIT11062 – Web Development.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
FORMS How to collect information f XX rom visitors Different kinds of form controls New HTML5 form controls.
1 HTML Forms
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
1 HTML forms (cont.)
03 – HTML (2) Informatics Department Parahyangan Catholic University.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
Tutorial 6 Creating a Web Form
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 Web Site Development Department of Computer Science California State University, Los Angeles Lecture 8: Forms and Controls.
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
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
ARUSHA TECHNICAL COLLEGE WEB DESIGN(html forms)
CNIT 131 HTML5 - Forms.
Presentation transcript:

Meta Tags You can add metadata to your web pages by placing tags inside the header of the document which is represented by and tags. A meta tag can have following attributes in addition to core attributes: CENG 449 Lecture 11 AttributeDescription NameName for the property. Can be anything. Examples include, keywords, description, author, revised, generator etc. contentSpecifies the property's value. schemeSpecifies a scheme to interpret the property's value (as declared in the content attribute). http-equivUsed for http response message headers. For example http- equiv can be used to refresh the page or to set a cookie. Values include content-type, expires, refresh and set-cookie.

Specifying Keywords You can use tag to specify important keywords related to the document and later these keywords are used by the search engines while indexing your webpage for searching purpose. Meta Tags Example Hello HTML5! CENG 449 Lecture 12

Document Description You can use tag to give a short description about the document. This again can be used by various search engines while indexing your webpage for searching purpose. Meta Tags Example Hello HTML5! CENG 449 Lecture 13

Document Revision Date You can use tag to give information about when last time the document was updated. This information can be used by various web browsers while refreshing your webpage. Meta Tags Example Hello HTML5! CENG 449 Lecture 14

Document Refreshing A tag can be used to specify a duration after which your web page will keep refreshing automatically. If you want your page keep refreshing after every 5 seconds then use the following syntax. Meta Tags Example Hello HTML5! CENG 449 Lecture 15

Page Redirection You can use tag to redirect your page to any other webpage. You can also specify a duration if you want to redirect the page after a certain number of seconds. Following is an example of redirecting current page to another page after 5 seconds. If you want to redirect page immediately then do not specify content attribute. Meta Tags Example Hello HTML5! CENG 449 Lecture 16

Setting Author Name You can set an author name in a web page using meta tag. See an example: Meta Tags Example Hello HTML5! CENG 449 Lecture 17

Specify Character Set You can use tag to specify character set used within the webpage. Example By default, Web servers and Web browsers use ISO (Latin1) encoding to process Web pages. Following is an example to set UTF-8 encoding: Meta Tags Example Hello HTML5! CENG 449 Lecture 18

HTML FORMS HTML Forms are required when you want to collect some data from the site visitor. For example during user registration you would like to collect information such as name, address, credit card, etc. A form will take input from the site visitor and then will post it to a back- end application such as CGI, ASP Script or PHP script etc. The back-end application will perform required processing on the passed data based on defined business logic inside the application. There are various form elements available like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc. The HTML tag is used to create an HTML form and it has following syntax: form elements like input, textarea etc. CENG 449 Lecture 19

Form Attributes AttributeDescription actionBackend script ready to process your passed data. methodMethod to be used to upload data. The most frequently used are GET and POST methods. targetSpecify the target window or frame where the result of the script will be displayed. It takes values like _blank, _self, _parent etc. enctypeYou can use the enctype attribute to specify how the browser encodes the data before it sends it to the server. Possible values are: application/x-www-form-urlencoded - This is the standard method most forms use in simple scenarios. mutlipart/form-data - This is used when you want to upload binary data in the form of files like image, word file etc. CENG 449 Lecture 110

HTML Form Controls There are different types of form controls that you can use to collect data using HTML form: Text Input Controls Checkboxes Controls Radio Box Controls Select Box Controls File Select boxes Hidden Controls Clickable Buttons Submit and Reset Button CENG 449 Lecture 111

Text Input Controls There are three types of text input used on forms: Single-line text input controls - This control is used for items that require only one line of user input, such as search boxes or names. They are created using HTML tag. Password input controls - This is also a single-line text input but it masks the character as soon as a user enters it. They are also created using HTMl tag. Multi-line text input controls - This is used when the user is required to give details that may be longer than a single sentence. Multi-line input controls are created using HTML tag. CENG 449 Lecture 112

Single-line text input controls This control is used for items that require only one line of user input, such as search boxes or names. They are created using HTML tag. Syntax: CENG 449 Lecture 113

Attributes Following is the list of attributes for tag for creating text field. AttributeDescription typeIndicates the type of input control and for text input control it will be set to text. nameUsed to give a name to the control which is sent to the server to be recognized and get the value. valueThis can be used to provide an initial value inside the control. size Allows to specify the width of the text-input control in terms of characters. maxlength Allows to specify the maximum number of characters a user can enter into the text box. CENG 449 Lecture 114

Text Input Control First name: Last name: CENG 449 Lecture 115

Password input controls Password Input Control User ID : Password: CENG 449 Lecture 116

Multiple-Line Text Input Controls This is used when the user is required to give details that may be longer than a single sentence. Multi-line input controls are created using HTML tag. Multiple-Line Input Control Description : Enter description here... CENG 449 Lecture 117

Attributes Following is the list of attributes for tag AttributeDescription nameUsed to give a name to the control which is sent to the server to be recognized and get the value. rowsIndicates the number of rows of text area box. cols Indicates the number of columns of text area box CENG 449 Lecture 118

Checkbox Control Checkboxes are used when more than one option is required to be selected. They are also created using HTML tag but type attribute is set to checkbox. Checkbox Control Maths Physics CENG 449 Lecture 119

Attributes Following is the list of attributes for tag. AttributeDescription typeIndicates the type of input control and for checkbox input control it will be set to checkbox. nameUsed to give a name to the control which is sent to the server to be recognized and get the value. valueThe value that will be used if the checkbox is selected. checkedSet to checked if you want to select it by default. CENG 449 Lecture 120

Checkbox Please select your favorite music service(s): iTunes Last.fm Spotify CENG 449 Lecture 121

Radio Button Control Radio buttons are used when out of many options, just one option is required to be selected. They are also created using HTML tag but type attribute is set to radio. Radio Box Control Maths Physics CENG 449 Lecture 122

Attributes Following is the list of attributes for radio button. AttributeDescription typeIndicates the type of input control and for checkbox input control it will be set to radio. nameUsed to give a name to the control which is sent to the server to be recognized and get the value. valueThe value that will be used if the radio box is selected. checkedSet to checked if you want to select it by default. CENG 449 Lecture 123

Radio Button Please select your favorite genre: Rock Pop Jazz CENG 449 Lecture 124

Select Box Control A select box, also called drop down box which provides option to list down various options in the form of drop down list, from where a user can select one or more options. Select Box Control Maths Physics CENG 449 Lecture 125

When mouse is clicked on down arrow, the other options are also displayed CENG 449 Lecture 126

Attributes Following is the list of important attributes of tag: Attribute Description name Used to give a name to the control which is sent to the server to be recognized and get the value. size This can be used to present a scrolling list box. multipleIf set to "multiple" then allows a user to select multiple items from the menu. CENG 449 Lecture 127

Following is the list of important attributes of tag: AttributeDescription valueThe value that will be used if an option in the select box is selected. selectedSpecifies that this option should be the initially selected value when the page loads. labelAn alternative way of labeling options CENG 449 Lecture 128

File Upload Box If you want to allow a user to upload a file to your web site, you will need to use a file upload box, also known as a file select box. This is also created using the element but type attribute is set to file. File Upload Box CENG 449 Lecture 129

Attributes Following is the list of important attributes of file upload box: AttributeDescription nameUsed to give a name to the control which is sent to the server to be recognized and get the value. accept Specifies the types of files that the server accepts. CENG 449 Lecture 130

Button Controls There are various ways in HTML to create clickable buttons. You can also create a clickable button using tag by setting its type attribute to button. The type attribute can take the following values: TypeDescription submit:This creates a button that automatically submits a form. reset:This creates a button that automatically resets form controls to their initial values. button:This creates a button that is used to trigger a client-side script when the user clicks that button. image:This creates a clickable button but we can use an image as background of the button. CENG 449 Lecture 131

File Upload Box CENG 449 Lecture 132

Hidden Form Controls Hidden form controls are used to hide data inside the page which later on can be pushed to the server. This control hides inside the code and does not appear on the actual page. For example, following hidden form is being used to keep current page number. When a user will click next page then the value of hidden control will be sent to the web server and there it will decide which page has be displayed next based on the passed current page. File Upload Box This is page 10 CENG 449 Lecture 133

Multiple Select Box Do you play any of the following instruments? (You can select more than one option by holding down control on a PC or command key on a Mac while selecting different options.) Guitar Drums Keyboard Bass CENG 449 Lecture 134

CENG 449 Lecture 135

Using CTRL button you can select multiple options CENG 449 Lecture 136

File Input Box Upload your song in MP3 format: CENG 449 Lecture 137

Grouping Form Elements You can group related form controls together inside the element. This is particularly helpful for longer forms. The element can come directly after the opening tag and contains a caption which helps identify the urpose of that group of form controls. CENG 449 Lecture 138

Grouping Form Elements Contact details Mobile: Telephone: CENG 449 Lecture 139

CENG 449 Lecture 140

Form Validation You have probably seen forms on the web that give users messages if the form control has not been filled in correctly; this is known as form validation. HTML5 Form Validation Username: Password: CENG 449 Lecture 141

HTML5 Form Validation Username: Password: CENG 449 Lecture 142

Date Input HTML5 introduces new form controls to standardize the way that some information is gathered. Older browsers that do not recognize these inputs will just treat them as a single line text box. HTML5 Date Input Departure date: CENG 449 Lecture 143

CENG 449 Lecture 144

HTML 5: Emai l & URL Input HTML5 has also introduced inputs that allow visitors to enter addresses and URLs. Browsers that do not support these input types will just treat them as text boxes. HTML5 Input Please enter your address: CENG 449 Lecture 145

HTML5 URL Input Please enter your website address: CENG 449 Lecture 146

Image Button Subscribe to our list: CENG 449 Lecture 147

HTML5: SEARCH INPUT To create the HTML5 search box the element should have a type attribute whose value is search. Older browsers will simply treat it like a single line text box. HTML5 Search Input Search: CENG 449 Lecture 148

HTML5 Placeholder Search: CENG 449 Lecture 149

Forms Your Details: Name: Your Review: How did you hear about us? Google Friend Advert Other Would you visit again? Yes No Maybe Comments: Sign me up for updates CENG 449 Lecture 150

CENG 449 Lecture 151

DOCTYPEs Because there have been several versions of HTML, each web page should begin with a DOCTYPE declaration to tell a browser which version of HTML the page is using (although browsers usually display the page even if it is not included). CENG 449 Lecture 152

CENG 449 Lecture 153

Comments in HTML If you want to add a comment to your code that will not be visible in the user's browser, you can add the text between these characters: CENG 449 Lecture 154

Iframes An iframe is like a little window that has been cut into your page — and in that window you can see another page. The term iframe is an abbreviation of inline frame. One common use of iframes (that you may have seen on various websites) is to embed a Google Map into a page. The content of the iframe can be any html page (either located on the same server or anywhere else on the web). CENG 449 Lecture 155

CENG 449 Lecture 156

iFrames Daha Büyük Görüntüle CENG 449 Lecture 157

CENG 449 Lecture 158

iFrames Daha Büyük Görüntüle CENG 449 Lecture 159

CENG 449 Lecture 160

iFrames CENG 449 Lecture 161

There are some characters that are used in and reserved by HTML code CENG 449 Lecture 162