INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.

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

Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
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.
Creating Web Page Forms
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
CST JavaScript Validating Form Data with JavaScript.
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.
Chapter 3. Table have many uses in a HTML design but are mostly used for the organization of your web site. Tables also give vertical and horizontal structure.
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.
Forms and Form Controls Chapter What is a Form?
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
Chapter 5 Java Script And Forms JavaScript, Third Edition.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
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.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Chapter 5: XHTML, Part 2 CIS 275—Web Application Development for Business I.
>> Introduction to HTML: Tags. Hyper - is the opposite of linear Text – words / sentences / paragraphs Mark-up – Marking the text Language – It is a language.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
 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.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
ITCS373: Internet Technology Lecture 5: More HTML.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in 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.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer & Mathematical Sciences, Universiti Teknologi.
Graduate School of Library and Information Science LIS 753 Introduction to HTML 5 By: Yijun Gao Week Three.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
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.
HTML Hyper Text Markup Language 1BFCET BATHINDA. Definitions Web server: a system on the internet containing one or more web site Web site: a collection.
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.
©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.
HTML Forms.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
FORMS How to collect information f XX rom visitors Different kinds of form controls New HTML5 form controls.
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
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.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Chapter 5 Validating Form Data with JavaScript
How to Write Web Forms By Mimi Opkins.
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Validation and Building Small Apps
Forms, cont’d.
Presentation transcript:

INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites

Objectives  To insert Links in the HTML document  To create HTML forms to get the input data in the HTML document.  To use password entries  To use name and ID tags  To use meta tags and their use for search engines.  To make a website search engine friendly.

Outline of this lab  Links & Internal Links  using  Forms  Using forms  Using password entries  Name and ID attributes  Use of Meta tags  Differences between using meta tags in HTML and XHTML  Making a website search engine friendly.  In lab Assignments and Home works

LINKS

HTML Links  The HTML tag defines a hyperlink.  The most important attribute of the element is the href attribute, which indicates the link's destination.

HTML Hyperlinks (Links)  By default, links will appear as follows in all browsers:  An unvisited link is underlined and blue  A visited link is underlined and purple  An active link is underlined and red

Internal link

 Use tag  Use name and herf attributes  Example next slide..

internal link (Example 1) Open the notepad and write the following code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " See also Chapter 4. Chapter 1 This chapter explains bla bla bla Chapter 2 This chapter explains bla bla bla Chapter 3 This chapter explains bla bla bla Chapter 4 This chapter explains bla bla bla

Chapter 5 This chapter explains bla bla bla Chapter 6 This chapter explains bla bla bla Chapter 7 This chapter explains bla bla bla Chapter 9 This chapter explains bla bla bla Chapter 10 This chapter explains bla bla bla Chapter 11 This chapter explains bla bla bla Chapter 12 This chapter explains bla bla bla In the bottom of the page add a go up link that will send you to the top of the page.

FORMS

Forms  Proposed form

Forms  implemented in XHTML

Using Forms data entry forms.  The element is used to create data entry forms.  Data collected in the form is sent to the server for processing by server-side scripts such as PHP, ASP, etc..  The form-data can be sent as  URL variables (with method ="get” ) or  as HTTP post transaction (with method ="post“) Basic Attributes  action (URI) Specifies the location of the server-side script used to process data collected in the form.  method Specifies the type of HTTP method used to send data to the server.

Simple form Example  Result  Try it on (

HTML action Attribute  The action attribute specifies where to send the form- data when a form is submitted.  Possible values: 1. An absolute URL - points to another web site (like action=" 2. A relative URL - points to a file within a web site (like action="example.htm") 3. Or leave it as an empty space if there is no action happen when sending a form (like action="")

 The method attribute  can have one of two values:  1) Post  2) Get (not secure)  The get method is the default; get appends the form data to the end of the URL specified in the action attribute. (not secure) (more secure for sensitive data)  The post method sends form data in a separate data stream, allowing the Web server to receive the data through “standard input.” (more secure for sensitive data)  This is more common for a variety of reasons Get and Post method

Forms Elements

Forms elements  HTML forms are used to pass data to a server.  An HTML form can contain:  input elements like (text fields, checkboxes, radio-buttons, submit buttons and more).  select lists,  textarea,  fieldset,  legend,  label elements. The tag is used to create an HTML form:. input elements.

HTML Forms - The Input Element  The most important form element is the element.  The element is used to select user information.  An element can vary in many ways, depending on the type attribute.  An : text field, checkbox, password, radio button, submit button, and more.

Example 2 1. Open the notepad and write the following code 2. See the output in the browser

Feedback Form Feedback Form Please fill out this form to help us improve our site. Name: Comments: Enter comments here. Address: Password: Things you liked: Site design

Links Ease of use Images Source code <input name = "thingsliked" type = "checkbox" value = "Code" /> 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:

Amazing Awful

How To Use "password" Input Fields  A "password" input field is defined as  A "password" input field  allows viewers to enter text strings or numbers without showing the entered in clear text.  A "password" input field is ideal for password inputting.

“password” input field attributes  name="fieldName" - Specifies the name of this field.  value="defaultValue" - Specifies a default value for this field.  size="number" - Specifies the size of the input box in number of characters.  maxlength="number" - Specifies the maximum length of the input data.

Example 3 1. Open the notepad and write the following code 2. See the output in the browser

Password Input Fields Online Survey Your password: Password again: <input type="password" name="pword2" size="12" maxlength="12"/>

Name attribute name Attribute  specifies the name of an element.  used to reference elements in a JavaScript, or to reference form data after a form is submitted. Note: Only form elements with a name attribute will have their values passed when submitting a form.

Example Name:

ID Attribute  The "id" attribute assigns an identifier to the associated element.  This identifier must be unique in the document and can be used to refer to that element in other instances (e.g., from client-side scripts). This is the first paragraph, named "paragraph1". To dynamically change its properties use this identifier.

Name and ID attributes  A "name" or “ID” value must begin with a letter ([A- Z] or [a-z]) and may be followed by  letters,  digits ([0-9]),  hyphens ("-"),  underscores ("_"),  colons (":"),  and periods (".").

tag

Using of Tag o Metadata is data (information) about other data. o The tag provides metadata about the HTML document. o Metadata will not be displayed on the page, but will be machine parseable. o Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.

Using of Tag Notes:  tags always goes inside the element. name/value  Metadata is always passed as name/value pairs. content namehttp-equiv  The content attribute MUST be defined if the name or http-equiv attribute is defined.  If none of these are defined, the content attribute CANNOT be defined.

Differences Between HTML and XHTML  In HTML the tag has no end tag.  HTML example:  In XHTML the tag must be properly closed (by adding a space followed by a forward slash at the end of the tag).  XHTML example:

in XHTML Example 1 - Define keywords for search engines: Example 2 - Define a description of your web page: Example 3 - Define the author of a page: Example 4 - Refresh document every 30 seconds:

Create A Search Engine Friendly Website

Create a Search Engine Friendly Website 1. Add Text to Your Images, Flash and Videos. For example, you should describe each picture in the "alt" text for the image 2. Validate Your HTML Code (see last lab) 3. Create Relevant Title Tags ( tag) title bar of the browser it is the non-visible text in the HTML code that the browser uses to display in the title bar of the browser window.

Some recommendations Google recommends the following to ensure that you gain the most from your search engine indexing: 1. Ensure every page has unique, relevant meta descriptions 2. Ensure you apply metadata for listing pages (e.g. blog & list layouts) in addition to individual articles. 3. Include factual information if relevant (e.g. blog articles may include the author, products might include the price or manufacturer) 4. Consider using automatically generated metadata - but make sure it's relevant, readable and accurate 5. Make your descriptions descriptive!

Assignment 2  Write HTML code to produce the following form

Note(s)  You should submit your answer before 11:59 am  your Answer Folder should be named as:yourName_assignment2_405

Outline of this lab  Links & Internal Links  using  Forms  Using forms  Using password entries  Name and ID attributes  Use of Meta tags  Differences between using meta tags in HTML and XHTML  Making a website search engine friendly.  In lab Assignments and Home works

We’re done! Thank you for listening