HTML: Fragments, Frames, and Forms. Overview

Similar documents
HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

Creating a Web Page with HTML

HTML Forms. By Jaroslav Mohapl

Objectives. Tutorial 8 Designing ga Web Site with Frames. Introducing Frames. Objectives. Disadvantages to Using Frames. Planning Your Frames

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Chapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc.

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

CSC Web Technologies, Spring HTML Review

Spring 2014 Interim. HTML forms

Chapter 5. Introduction to XHTML: Part 2

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Summary 4/5. (contains info about the html)

Chapter 6. Using Frames in a Web Site

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

Name Related Elements Type Default Depr. DTD Comment

Row and Column Spans. Homework. Column and Row Span Example (2) Column and Row Span Example. tables: Live Demo. like the following using forms:

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

HTML Element A pair of tags and the content these include are known as an element

Table Basics. The structure of an table

Form Overview. Form Processing. The Form Element. CMPT 165: Form Basics

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

Module: Online Publishing Year: 2 Lecturer: Maxwell Robertson Session: 3 Copyright 2004 (All Rights Reserved.

1 Form Basics CSC309

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1

1.264 Lecture 12. HTML Introduction to FrontPage

Building Web Based Application using HTML

IMY 110 Theme 11 HTML Frames

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

CSE 154 LECTURE 8: FORMS

Creating Web Pages Using HTML

Chapter 3 HTML Multimedia and Inputs

To assign a name to a frame, add the name attribute to the frame tag. The syntax for this attribute is: <frame src= url name= name />

frameset rows cols <frameset> rows cols

Web Programming. Based on Notes by D. Hollinger Also Java Network Programming and Distributed Computing, Chs.. 9,10 Also Online Java Tutorial, Sun.

chapter 7 Interacting with Users Tell me and I will forget. Show me and I will remember. Involve me and I will understand.

core programming HTML Forms Sending Data to Server-Side Programs Marty Hall, Larry Brown

Information and Communication Technology (ICT) CBSE Board Question Paper 2018 Solution

Creating and Building Websites

Index. CSS directive, # (octothorpe), intrapage links, 26

c122sep2914.notebook September 29, 2014

HTML Forms IT WS I - Lecture 11

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

DAY 2. Creating Forms

A Dreamweaver Tutorial. Contents Page

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity

Advanced HTML. Introduction. Frames HTML Forms CGI Scripts Dynamic Documents HTML Tools Next-Generation HTML

Bixby Public Schools Course Essential Elements Grade: Desktop Publishing

Web Development and HTML. Shan-Hung Wu CS, NTHU

HTML and JavaScript: Forms and Validation

INFS 2150 / 7150 Introduction to Web Development & HTML Programming

Chapter 5 Images. Presented by Thomas Powell. Slides adopted from HTML & XHTML: The Complete Reference, 4th Edition 2003 Thomas A.

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

COMSC-031 Web Site Development- Part 2. Part-Time Instructor: Joenil Mistal

NAME: name a section of the page TARGET = "_blank" "_parent" "_self" "_top" window name which window the document should go in

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

Introducing Web Tables

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

INFS 2150 Introduction to Web Development

INFS 2150 Introduction to Web Development

CPSC 481: CREATIVE INQUIRY TO WSBF

Tutorial 8: Designing a Web Site with Frames

Advanced HTML Scripting WebGUI Users Conference

Networking and Internet

COSC 2206 Internet Tools. Brief Survey of HTML and XHTML Document Structure Formatting

HTML Syllabus Instructor: TBD

[AVWSQ-ADWCS6]: WSQ ICDL Adobe Dreamweaver CS6

QRG: Using the WYSIWYG Editor

Attributes & Images 1 Create a new webpage

Web Technology. HTML & xhtml

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) More on Relative Linking. Learning Objectives (2 of 2)

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Horizontal Rule Element

Category: Informational August A Proposed Extension to HTML : Client-Side Image Maps

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Content Designing using HTML(Frames and Forms)

Homepages and Navigation Bars v8.3.0

Wichita State University Libraries SOAR: Shocker Open Access Repository

CSC 121 Computers and Scientific Thinking

introduction to XHTML

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

Image mapping One of the things that mystifies newcomers to the Web is how to

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

The Text scrap sheet is also needed for copying image and webpage URLs for easy access. Additionally you will use it to look at HTML when needed.

Outline. Introducing Form. Introducing Forms 2/21/2013 INTRODUCTION TO WEB DEVELOPMENT AND HTML

By completing this practical, the students will learn how to accomplish the following tasks:

Assignments (4) Assessment as per Schedule (2)

* HTML BASICS * LINKING BY: RIHAM ALSMARI, PNU. Lab 2

How to Edit Your Website

Duke Library Website Preliminary Accessibility Assessment

Website Development with HTML5, CSS and Bootstrap

Dreamweaver Basics. Planning your website Organize site structure Plan site design & navigation Gather your assets

Transcription:

HTML: Fragments, Frames, and Forms Michael B. Spring Department of Information Science and Telecommunications University of Pittsburgh spring@ imap.pitt.edu http://www.sis. pitt.edu/~spring Overview Fragment Identifiers Maps Frames Forms Style Sheets September 28, 2001 Advanced HTML 2 9/28/01 1

Fragment Identifiers Any characters following a # character in a hypertext address constitute a fragment identifier. An address of the form #fragment refers to an anchor in the same document. The meaning of fragment identifiers depends on the media type of the anchor's resource. For `text/html' representations, it refers to the <A> element with a NAME attribute whose value is the same as the fragment identifier. The user agent should indicate the anchor element, for example by scrolling to and/or highlighting the phrase. September 28, 2001 Advanced HTML 3 Image tags IMG -- an inline image SRC = URL for the images WIDTH = pixels HEIGHT = pixels NB specifying these in advance allows the browser to leave space speeding the display process. ALT = alternative description BORDER = the thickness in pixels of the border around the image ALIGN specifies where the image is places and how text flows USEMAP = client side map being used for the image September 28, 2001 Advanced HTML 4 9/28/01 2

Map Tags MAP -- a client side image map NAME = the name of the image map AREA -- definition of an area of an image -- part of a map SHAPE = RECT CIRCLE POLY DEFAULT Default is for points not otherwise defined COORDS = coma separated list of coordinates for area HREF = the target NOHREF = a dead area ALT = text to be displayed if image can't load TABINDEX = tab order for the area over the page TARGET = frame in which URL is to be loaded September 28, 2001 Advanced HTML 5 Frame tags FRAMESET -- a frameset definition, may take only one of the following ROWS = sizes of the rows -- pixels or percents COLS = sizes of the columns -- pixels or percents FRAME FRAMEBORDER = 1=true, 0=false MARGINHEIGHT = top margin of frame pixels MARGINWIDTH = left margin of frame pixels NAME NORESIZE resizing of internal borders SCROLLING = NO, YES AUTO SRC = URL to load NOFRAMES display text if frames not supported September 28, 2001 Advanced HTML 6 9/28/01 3

Forms A form is a template for a form data set and an associated method and action URI. A form data set is a sequence of name/value pair fields. The names are specified on the NAME attributes of form input elements The values are given initial values by various forms of markup and edited by the user. The resulting form data set is used to access an information service as a function of the action and method. Form processing is a level 2 feature. September 28, 2001 Advanced HTML 7 Form Elements The <FORM> element contains a sequence of input elements, along with document structuring elements. The attributes are: ACTION specifies the action URI for the form. The action URI of a form defaults to the base URI of the document METHOD selects a method of accessing the action URI. The set of methods is a function of the URI M E T H O D = G E T METHOD=POST ENCTYPE specifies the media type used to encode the name/value pairs for transport. The <INPUT> element represents a field for user input. The TYPE attribute attribute discriminates between variations. September 28, 2001 Advanced HTML 8 9/28/01 4

INPUT TYPE=TEXT Required attributes are: NAME name for the form field of the element. The optional attributes are: MAXLENGTH the number of characters that can be entered. If the value of MAXLENGTH is greater the the value of the SIZE attribute, the field should scroll. The default number of characters is unlimited. SIZE specifies the amount of display space allocated to this input field according to its type. VALUE The initial value of the field. <p>street Address: <input name=street><br > Postal City code: <input name=city size=16 maxlength=16><br > Zip Code: <input name=zip size=10 maxlength=10 value="99999-9999"><br > September 28, 2001 Advanced HTML 9 INPUT TYPE=PASSWORD An <INPUT> element with `TYPE=PASSWORD' is a text field as above, the value is obscured as it is entered. <p>name: <input name=login> Password: <input type=password name=passwd> September 28, 2001 Advanced HTML 10 9/28/01 5

INPUT TYPE=CHECKBOX <INPUT TYPE=CHECKBOX> is a boolean choice. A set of elements with the same name represents an n-of-many choice field. Required attributes are: NAME symbolic name for the form field corresponding to this ele ment or group of elements. VALUE The value of the field contributed by this element. Optional attributes are: CHECKED indicates that the initial state is on. <p>what flavors do you like? <input type=checkbox name=flavor value=vanilla>vanilla<br > <input type=checkbox name=flavor value=strawberry>strawberry<br> <input type=checkbox name=flavor value=chocolate checked>chocola te<br > September 28, 2001 Advanced HTML 11 INPUT TYPE=RADIO <INPUT TYPE=RADIO> is a booleanchoice A set of such elements with the same name represents a 1-of-many choice field. The NAME and VALUE attributes are required. Optional attributes are: CHECKED indicates that the initial state is on. At all times, exactly one of the radio buttons in a set is checked. If none of the <INPUT> elements of a set of radio buttons specif ies CHECKED', then the user agent must check the first radio button initially. <p>which is your favorite? <input type=radio name=flavor value=vanilla>vanilla<br > <input type=radio name=flavor value=strawberry>strawberry<br> <input type=radio name=flavor value=chocolate>chocolate<br> of the set September 28, 2001 Advanced HTML 12 9/28/01 6

INPUT TYPE=IMAGE <INPUT TYPE=IMAGE> specifies an image resource to display, and allows input of two form fields: the x and y coordinate of a pix el chosen from the image. The names of the fields are the name of the field with `.x' and `.y' appended. `TYPE=IMAGE' implies `TYPE=SUBMIT' processing; that is, when a pixel is chosen, the form as a whole is submitted. NAME and SRC attributes are required ALIGN is optional as for the <IMG> element <p>choose a point on the map: <input type=image name=point src ="map.gif"> September 28, 2001 Advanced HTML 13 INPUT TYPE=HIDDEN An <INPUT> element with `TYPE=HIDDEN' represents a hidden field. The user does not interact with this field; instead, the VALUE attribute specifies the value of the field. The NAME and VALUE attributes are required. <input type=hidden name=context value="l2k3j4l2k23"> September 28, 2001 Advanced HTML 14 9/28/01 7

INPUT TYPE=SUBMIT An <INPUT> element with `TYPE=SUBMIT' represents an input option, typically a button, that instructs the user agent to submit the form. Optional attributes are: NAME indicates that this element contributes a form field whose value is given by the VALUE attribute. If the NAME attribute is not prese nt, this element does not contribute a form field. VALUE indicates a label for the input (button). You may submit this request internally: <input type=submit name=recipient value=internal><br> or to the external world: <input type=submit name=recipient value=world> September 28, 2001 Advanced HTML 15 INPUT TYPE=RESET An <INPUT> element with `TYPE=RESET' represents an input option, typically a button, that instructs the user agent to reset the form's fields to their initial states. The VALUE attribute, if present, indicates a label for the input (button). September 28, 2001 Advanced HTML 16 9/28/01 8

Selection: SELECT The <SELECT> element presents an enumerated list. The initial state is first option, unless a SELECTED attribute is specified for an <OPTION> element. Attributes are: MULTIPLE indicates multiple select allowsed. NAME specifies the name of the form field. SIZE specifies the number of visible items. Select fields of size one are typically pop- down menus. <SELECT NAME="flavor"> <OPTION>Vanilla <OPTION>Strawberry <OPTION value=" RumRasin">Rum and Raisin <OPTION selected>peach and Orange</SELECT> September 28, 2001 Advanced HTML 17 Option: OPTION The Option element can only occur within a Select element. It represents one choice Option has the following attributes: SELECTED Indicates that this option is initially selected. VALUE indicates the value to be returned if this option is chosen. The field value defaults to the content of the <OPTION> element. September 28, 2001 Advanced HTML 18 9/28/01 9

Selected Keys to Good Pages Navigation Aids Use a single local imagemap to navigate the site have x versions of a single image that identify location Use a frame with a TOC to bring up pages Use target = TOP for distant unrelated links Format Use borderless frames to organize material more invisibly Use width % rather than absolute pixel September 28, 2001 Advanced HTML 19 Selected Keys to Good Pages Images Don t use images as anchors Use alt with images Use <BR CLEAR= with <IMAGE ALIGN= Use HEIGHT and WIDTH to speed loading Use small animated gifs in tables for important points Forms Use tables within forms to add structure Use good data entry form rules about grouping and spacing in building building forms September 28, 2001 Advanced HTML 20 9/28/01 10