Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.

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

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 2 HTML Basics Key Concepts
MIS 425 Lecture 2 – HTML Navigation, Colors, tables and Styles Instructor: Martin Neuhard
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Tutorial 6 Creating a Web Form
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Images, Tables, lists, blocks, layout, forms, iframes
® Microsoft Office 2010 Word Tutorial 3 Creating a Multiple-Page Report.
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.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Creating Web Page Forms
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
Lesson 4: Using HTML5 Markup.  The distinguishing characteristics of HTML5 syntax  The new HTML5 sectioning elements  Adding support for HTML5 elements.
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML. Basic HTML HTML document – HTML headings – to HTML paragraphs – HTML links – HTML images –
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Forms.
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.
>> HTML: Structure Elements. Elements in HTML are either Inline or Block. Block-level Elements – Begins on a new line – Occupy the whole width – Stacks.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Internet Technology Dr Jing LU Updated Dr Violet Snell / Dr Kalin Penev 1 Internet Technology (week 6)  Recap: Validating HTML  Page Layout.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
1 HTML forms (cont.)
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML5 Introduction to Web Programming. Plan of the course HTML5 Structure of a document Main HTML Tags –Headings –Paragraphs –Links –Tables –Forms –Images.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
2.4. Choose and configure HTML5 tags to organize content and forms Choose and configure HTML5 tags for input and validation. Building the User Interface.
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.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
HTML for web designing short course. What is an HTML File? HTML stands for Hyper Text Markup Language An HTML file must have an htm or html file extension.
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.
HTML CS 4640 Programming Languages for Web Applications
Web Development & Design Foundations with HTML5 7th Edition
Organizing Content with Lists and Tables
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 7th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with HTML5
HTML 5 SEMANTIC ELEMENTS.
Web Development & Design Foundations with HTML5
HTML5 Tags By Dr Derek Peacock
HTML CS 4640 Programming Languages for Web Applications
Presentation transcript:

Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3

Exam Objective Matrix Skills/ConceptsMTA Exam Objectives Choosing and Configuring HTML5 Tags to Organize Content and Forms Choose and configure HTML5 tags to organize content and forms. (2.4) Choosing and Configuring HTML5 Tags for Input and Validation Choose and configure HTML5 tags for input and validation. (2.5)

div Element Used for years to create structure of an HTML document Often includes a class or ID attribute May include CSS styles such as background- color, height, and width Example: – This is a header

New HTML5 Elements for Structuring and Organizing Content header, footer, section, nav, article, and aside

Semantic Markup Tag names that are intuitive Makes it easier to build and modify HTML documents Makes it easier for Web browsers and other programs to interpret Developers can still use in HTML5 documents; should use new structure elements whenever appropriate

header and footer Elements The header element defines a header for a document, section, or article. HTML 4.01 uses the header div ( ). The footer element defines a footer for a document or section, and typically contains information about the document or section, such as the author name, copyright data, links to related documents, and so on.

header and footer Elements (Continued) Can include multiple headers or footers in an HTML5 document

header and footer Markup Example

section Element Defines a section in a document, such as a chapter, parts of a thesis, or parts of a Web page whose content is distinct from each other According to the W3C, must contain at least one heading and define something that would ordinarily appear in the document’s outline

section Example

nav Element Defines a block of navigation links and is useful for creating –A set of navigation links as a document’s primary navigation –A table of contents –Breadcrumbs in a footer –Previous-Home-Next links

nav Example

article Element Defines a part of an HTML document that consists of a “self-contained composition” independent from the rest of the content in the document Content set off by tags can be distributed in syndication –Think of it as content that makes sense on its own

aside Element Used for sidebars and notes—content that’s related to the current topic but would interrupt the flow of the document if left inline

aside Example

HTML Tables defines overall table defines rows defines column headers defines cells adds a caption above or below table applies inline CSS styles Long, scrolling tables use,, and tags

HTML Table Example

HTML Table Example with Color

Ordered List Orders list entries using numbers, by default Uses the tag with attributes: –reversed : Reverses the order of the list –start number: Specifies the start value of the ordered list –type: Specifies list item marker, such as "1" for displaying decimal numbers

Ordered List Example

Unordered List Displays list entries in a bulleted list Uses a tag Round bullet symbol is the default marker for list items Can change bullet symbols –For squares, add type="square" to the tag –For empty circles, add type="circle"

Unordered List Example

Forms and Input Form input is the information a user enters into fields in a Web or client application form. HTML5 introduces several new form and input element attributes; some are: –url for entering a single Web address – for a single address or a list of addresses –search to prompt users to enter text they want to search for

Creating a Form Use the start and end tags All form content and fields are between tags Common syntax:

Creating a Form (Continued) The fieldset element is used with many forms to group related elements. The tag draws a box around individual elements and/or around the entire form.

Form with Fieldset Example

Simple Form Example

Form required and Attributes The required attribute requires information in a field when the form is submitted. The attribute requires the user to enter an address. Markup example:

required Example

Form placeholder Attribute Placeholder text is text displayed inside an input field when the field is empty. It helps users understand the type of information they should enter or select. When you click on or tab to the input field and start typing, the newly entered text replaces the placeholder text. Markup example:

Form pattern Attribute The pattern attribute provides a format (a regular expression) for an input field, which is used to validate whatever is entered into the field. Markup example: <input type="text" id="empID" name="EmployeeID" required pattern="[A-Z]{2}[0-9]{4}" title="Employee ID is two capital letters followed by four digits">

Form pattern Attribute (Continued) You can use the pattern attribute with these types: –text –search –url –telephone – –password

Form autofocus Attribute The autofocus attribute moves the focus to a particular input field when a Web page loads. Markup example: <input type="text" name="fname" autofocus="autofocus" />

Validation The process of verifying that information entered or captured in a form is in the correct format and usable before sending the data to the server Some things verified during validation: –Required fields are empty – addresses are valid –Dates are valid –Text does not appear in a numeric field or vice versa

Validation (Continued) Automatic validation of input means the browser checks the data the user inputs. –Also referred to as client-side validation Server-side validation occurs when server validates data received from an input form

Validation Example

Recap div element Semantic markup header and footer elements section element nav element article element aside element HTML tables Ordered and unordered lists Forms and input Validation