2.2 XHTML (cont.). Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare.

Slides:



Advertisements
Similar presentations
Chapter 3 – Web Design Tables & Page Layout
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?
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.
Markup Languages Controlling the Display Of Web Content.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Computing Concepts Advanced HTML: Tables and Forms.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
 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.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… HTML Lists, Tables and Forms v2.0.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
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.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
 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.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
CP102 Module 7: HTML 1 Module 7: HTML 1.What is 1.What is HTML? 2. 2.Basic syntax, document structure 3. 3.Basic formatting, images, links 4. 4.Lists,
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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
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.
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.
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.
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.
XHTML Dr. Reda Salama. Reading 2.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
XHTML Dr. Reda Salama. Reading 2.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
4 Introduction to XHTML.
4 Introduction to XHTML.
4 Introduction to XHTML.
Objectives Design a form Create a form Create text fields
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.
The Web Warrior Guide to Web Design Technologies
Chapter 5 Introduction to XHTML: Part 2
Chapter 5 - Introduction to XHTML: Part 2
Creating Form Elements
4 Introduction to XHTML.
1 Introduction to XHTML.
Introduction to XHTML Cont:.
Introduction to HTML.
Presentation transcript:

2.2 XHTML (cont.)

Motto Yea, from the table of my memory I’ll wipe away all trivial fond records. —William Shakespeare

Internal Links To link within the same document –supply the target element with an id attribute e.g. … –make a link using an element whose href attribute's value is the target id –use the syntax: #id e.g. See Part 2 –works also with target in another page e.g. See Part 3 of Introduction

Special Characters Entity references for special characters or characters that cannot be rendered otherwise –form: &code; –used within regular text The code can be: –Word abbreviations (starts with & ) –Numbers Decimal (starts with &# ) Hexadecimal (starts with &#x ) Example: & character represented by: – ö (word: o-umlaut = ö) – 0 (decimal) – / (hexadecimal)

Useful Entities < less than: < needed because < starts a tag & ampersand: & needed because & starts an entity > greater than: > nonbreaking space © copyright: ©

Entities: Example Entities Entities less than: < ampersand: & greater than: > copyright: © nonbreaking space:

Line Break element (and tag) –continues text on next line –no vertical space in between lines unlike

Horizontal Rule element (and tag) –is endered as a horizontal line –inserts a line break above and below the line –used to separate sections of contents

Sub- and Superscript element –text inside appears as subscript –used for indices, etc. element –text inside appears as superscript –used for exponents, etc.

Miscellaneous Tags: Example Tags one line another one and a third one a index x exp

Lists List elements: and –create a list where each item is rendered on separate line (single spaced) –a bullet preceeds items of unordered list –items of ordered list are numbered List item element –surrounds contents of a list item Lists can be nested

Lists: Example Web Web To Da Max Applications Mail Search engines Tools Shopping Learning ICS 415 XHTML JavaScript Ajax Wiki Entertainment

Tables element –defines a table with rows –used often for layout purposes –attributes width border : thickness in pixels, 0 means no border cellpadding : empty space inside cells cellspacing : area inside border summary : summarizes the table’s contents –used by text-to-speech to make the table accessible –element describes the table’s content text inside is rendered above the table

Table: Parts A table can have three distinct sections 1.Head: element table titles Column headers –(one) (table row) element with elements for each column 2.Body: element regular table rows – (table row) element with elements for each cell 3.Foot: element footnotes above section in the code, but displays at the bottom of the table

Table: Example Web Table Price of Knowledge Item Price Total $498 Laptop $299 Textbook $199

Merging Table Cells A data cell can span several rows or columns –attribute rowspan –number of rows the cell occupies –attribute colspan number of columns the cell occupies Any or data cell can have these attributes

Forms Used to collect information from users Contain visible interactive components –buttons, text fields, pull-down menus, etc. –not a very rich collection –inconsistent and akward elements May also contain nonvisual components – "hidden inputs" –used for data to be sent to the server, but is of no concern to the user

Forms: Syntax element –attribute method specifies how the form’s data is sent to the server –attribute action : URL of the script where the form data will be sent – element labels an element nested inside it form of the label: the text terse, but descriptive info about its purpose

Forms: Elements element – name attribute: identifies component for the server –it's type attribute determines which interactive component it is – type="text" : a text field size attribute: width of the field (the number of visible characters) maxlength attribute (optional): maximum number of characters user can type in – type="password" : a text field that shows only bullets when user types – type="checkbox" : a check box – type="radio" : a radio button watch out: all radio buttons in the same group must have the same name attribute! – value attribute: for checkbox and radio : value to send to the server if selected – type="submit" : a button labeled "Submit" sends the data entered in the form to the web server – type="reset" : a button labeled "Clear" erases all the information the user entered never use this!

Forms: Other Elements element text area with scrollbar attributes rows and cols determine the size cols is in number of characters element drop-down list of element choices one of the choices can be selected –it has selected="selected" attribute

Forms: Example Rating Rate Us! Name Password Things you liked: Design Ease of Use How did you find us? On the Web Another way Rate us: Great! Repeat 415! Comments: <textarea name = "comments" rows = "3" cols = "25">Type here.

Elements Supply information about the page –invisible to the user –search engines use it you want your pages listed first, right? –used for semantic web

Elements: Syntax Must occur within element Attribute name : the type of element – name="keywords" attribute content is a list of keywords that describe the page (categories or content) search engines match this with search terms e.g. – name="description" attribute content is a (typically three- to four-line) description of the page in sentence form, used by search engines to catalog your site. They may display this text as part of the search result e.g.