liberate_htmlref

Reviews
Shared by: Alex Cameron
Categories
Tags
Stats
views:
40
rating:
not rated
reviews:
0
posted:
7/11/2008
language:
pages:
0
HTML Reference First Edition Liberate TV Platform™ HTML Reference, First Edition Liberate TV Platform Part number N00119-01 Copyright © 2002 Liberate Technologies, All Rights Reserved. Last revised: January 11, 2002 Restricted Rights This document contains proprietary and confidential information that is the property of Liberate Technologies. It is protected by copyright and distributed under licenses restricting its use, copying, and distribution. No part of this document may be reproduced in any form without prior written authorization from Liberate Technologies. This manual is provided “as is” without warranty of any kind, either expressed or implied, including, without limitation, merchantability, fitness for a particular purpose or noninfringement. It may include technical inaccuracies or typographical errors. Changes are periodically made to the information it contains. Liberate Technologies may make improvements and/or changes in the programs and/or interfaces described in this publication at any time. Trademarks Notice Liberate, the Liberate logo and design, IQView, Liberate Command, Liberate Connect, Liberate Datapoint, Liberate Imprint, Liberate Mediacast, Liberate Profile, Liberate Security, Liberate Transcode, Liberate TV Chat, Liberate TV Customizer, Liberate TV Emulator, Liberate TV Extender, Liberate TV Info, Liberate TV Mail, Liberate TV Message, Liberate TV Navigator, Liberate TV Phone, Liberate TV Platform, Liberate TV Porter, Liberate TV Producer, Liberate TV Ticker, PopTV, ShowLinks, ShowSurf, ShowSync, and TV Bar are trademarks or registered trademarks of Liberate Technologies. Macromedia, Dreamweaver, Macromedia Flash and Flash are trademarks or registered trademarks of Macromedia, Inc. in the United States and/or other countries. All other brand names or product names are, or may be, trademarks of their respective owners and are used to identify the products or services of those owners. Feedback Please send comments and queries to: Liberate Technologies Technical Publications Department 2 Circle Star Way San Carlos, CA 94070-6200 e-mail: docs@liberate.com Contents Chapter 1: Introduction 1 Liberate TV Navigator . . . . . . . . . . . . . . . . . . . . . . . . . 1 Anatomy of an HTML Element . . . . . . . . . . . . . . . . . . . . . 2 Anatomy of an HTML Attribute . . . . . . . . . . . . . . . . . . . . . 4 Font Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Organization of This Manual . . . . . . . . . . . . . . . . . . . . . . 6 Chapter 2: HTML Reference Overview . . . . . . . Link Appearance . . Variations . . . . Attributes . . . . . . . highlightable . . . href . . . . . . left, right, up, down name . . . . . . rel . . . . . . . rev . . . . . . . target . . . . . . 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 . 9 . 9 . 9 . 9 . 10 . 10 . 11 . 11 . 11 . 11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Overview . . . . . Variations . . Attributes . . . . . align . . . . alt . . . . . archive . . . code, codebase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 . 13 . 14 . 14 . 14 . 14 . 14 JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM iii height, width . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 hspace, vspace . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Overview . . . . . . . Variations . . . . . Attributes . . . . . . . alt . . . . . . . coords . . . . . . href, nohref . . . . left, right, up, down . name . . . . . . shape . . . . . . target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 17 17 17 18 18 19 19 19 19 20 20 21 21 21 21 22 22 22 22 22 22 23 23 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Variation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview . Attributes . href . target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Overview . . Variation Attributes . . color . face . . size . . Overview . Attributes . loop src . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . cite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 24 24 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 iv TABLE OF CONTENTS JANUARY 2002 Overview . . . . Variations . Attributes . . . . alink . . . background bgcolor . . layer . . . link. . . . overscan . . text . . . vlink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 . 25 . 26 . 26 . 26 . 26 . 27 . 27 . 27 . 30 . 31
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 align . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 compact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Overview . . . Variations Attributes . . . align . . layer . . style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 . 37 . 37 . 37 . 37 . 38
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 compact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM v
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Overview . . . Font Sizing Variations . Attributes . . . color . . face . . . size . . . Overview . . . Variations . Attributes . . . action . . enctype . method . name . . target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 41 43 43 43 43 44 44 46 46 46 47 47 48 48 48 48 49 49 49 49 50 50 50 51 52 53 53 53 54 55 56 56 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Overview . . . . . . . . . . Variations . . . . . . . . Attributes . . . . . . . . . . bordercolor, frameborder . . marginheight, marginwidth . name . . . . . . . . . noresize . . . . . . . . scrolling . . . . . . . . src . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Overview . . . . . . . . . . . . Variations . . . . . . . . . . Attributes . . . . . . . . . . . . background . . . . . . . . . border, bordercolor, frameborder . cols . . . . . . . . . . . . overscan . . . . . . . . . .

-

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi TABLE OF CONTENTS JANUARY 2002 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 align . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Overview . . . Attributes . . . align . . noshade . size . . width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 . 58 . 58 . 58 . 58 . 58 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Overview . . . . . . Transparency . . Images as Buttons Variations . . . Attributes . . . . . . align . . . . . alt . . . . . . border . . . . height, width . . hspace, vspace . ismap . . . . . layer . . . . . lowsrc . . . . name . . . . . src . . . . . . usemap . . . . Overview . . . . . . Variations . . . Input Types . . . . . type="button". . type="checkbox" type="file" . . . type="hidden" . type="image" . . type="password" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 . 60 . 60 . 61 . 61 . 61 . 62 . 63 . 63 . 63 . 64 . 64 . 65 . 65 . 65 . 66 . 67 . 68 . 68 . 68 . 69 . 70 . 70 . 71 . 72 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM vii type="radio" type="reset" . type="submit" type="text" . Attributes . . . . align . . . bgcolor . . border . . . checked . . disabled . . maxlength . name . . . nocursor . . readonly . . size . . . . src . . . . value . . . Overview . . . Variations . Attributes . . . prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 73 74 74 75 75 76 76 76 76 76 77 77 77 78 78 78 78 79 79 79 80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
  • . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 Overview . Attributes . type value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 81 81 82 82 83 83 83 83 83 83 84 84 84 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Overview . . . Variations . Attributes . . . charset . href . . . rel . . . rev . . . type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii TABLE OF CONTENTS JANUARY 2002 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 compact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Overview . . . Variations Attributes . . . content . history . http-equiv initialfocus name . . scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 . 86 . 87 . 87 . 87 . 87 . 91 . 92 . 93 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 <noscript> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 <ol> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Overview . . . Attributes . . . compact . start . . type . . Overview . . . Attributes . . . disabled . selected . value . . Overview . . . Variations Attributes . . . align . . layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 . 97 . 97 . 97 . 98 . 98 . 99 . 99 . 99 . 99 . 99 100 100 100 100 <option> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 <p>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM ix <param> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Overview . . . Variations . Attributes . . . name . . value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 101 101 101 101 <plaintext> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 <pre> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 Overview . . . Variations . Attributes . . . wrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 103 103 103 <s> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 <samp> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 <script> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 Overview . . . Variations . Attributes . . . language . src . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 104 105 105 105 <scrollstop> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 <select> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Overview . . . . . . . . . . TV Navigator Enhancements Variations . . . . . . . . Attributes . . . . . . . . . . align . . . . . . . . . background . . . . . . . bgcolor . . . . . . . . disabled . . . . . . . . multiple . . . . . . . . name . . . . . . . . . popupbg . . . . . . . . popupdirection . . . . . selbgcolor . . . . . . . seltext . . . . . . . . . size . . . . . . . . . . text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 107 108 109 109 109 109 109 109 110 110 110 111 111 111 111 <small> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 x TABLE OF CONTENTS JANUARY 2002 <spacer> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 Overview . . . . Variations . Attributes . . . . align . . . height, width size . . . type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 113 113 113 113 113 113 <strike> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 <strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 <sub> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 <sup> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 <table> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Overview . . . . . . . . . . . Table Structure . . . . . . Table Position and Size . . . Color Layering in Tables . . . HTML Error Correction . . . Variations . . . . . . . . Dynamic Tables . . . . . . . . Limitations on Content . . . Font Attributes of Cells . . . Attributes . . . . . . . . . . . align . . . . . . . . . . background . . . . . . . bgcolor . . . . . . . . . border, cellpadding, cellspacing cols . . . . . . . . . . dynamiccols . . . . . . . frame . . . . . . . . . . height, width . . . . . . . highlightable . . . . . . . hspace, vspace . . . . . . layer . . . . . . . . . . name . . . . . . . . . . rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 117 117 119 120 120 120 120 121 122 122 122 122 122 124 124 125 126 126 126 127 127 128 <td> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM xi Attributes . . . . . . . . . . . . . . . . . . align . . . . . . . . . . . . . . . . . background . . . . . . . . . . . . . . . behavior, direction, loop, scrollamount, scrolldelay bgcolor . . . . . . . . . . . . . . . . colspan . . . . . . . . . . . . . . . . direction . . . . . . . . . . . . . . . . focusable . . . . . . . . . . . . . . . . height, width . . . . . . . . . . . . . . highlightable . . . . . . . . . . . . . . loop . . . . . . . . . . . . . . . . . nowrap . . . . . . . . . . . . . . . . rowspan . . . . . . . . . . . . . . . . scrollamount . . . . . . . . . . . . . . scrolldelay . . . . . . . . . . . . . . . valign . . . . . . . . . . . . . . . . . Overview . . . Variations . Attributes . . . bgcolor . cols . . . disabled . focusable . name . . rows . . wrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 130 130 131 132 132 133 133 133 134 135 135 135 136 136 136 137 138 138 138 139 139 139 139 140 140 <textarea> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . <title> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 <tr> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Overview . . Attributes . . align . bgcolor valign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 141 141 141 142 <tt> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 <u> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 <ul> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 Overview . . . Variations . Attributes . . . compact . type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 144 145 145 145 xii TABLE OF CONTENTS JANUARY 2002 <var> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 <wbr> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 <xmp> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Variations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Chapter 3: Event Handlers 147 Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Attributes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 onabort . . . onblur . . . onchange . . onclick . . . onerror . . . onfocus . . . onkeyout . . onload . . . onmouseout . onmouseover . onnavigate . . onreset . . . onselect . . . onsubmit . . onunload . . onvisible . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 148 148 148 148 148 149 149 149 149 149 150 150 150 150 150 Chapter 4: Using Color link, alink, vlink bgcolor . . . color . . . . text . . . . 151 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 152 152 152 Color Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 . . . . . . . . . . . . Hexadecimal RGB . . . . . . . . . . . . . . . . . . . . . . . . . . 153 Color Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153 Transparent Backgrounds . . . . . . . . . . . . . . . . . . . . . . . 156 JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM xiii Chapter 5: Content Data Types Text Formats 159 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 text/plain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 text/html . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 audio/aiff, audio/x-aiff . . . . . . . . . . . . . . . . . . . . . . . . 161 audio/basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 audio/wav, audio/x-wav . . . . . . . . . . . . . . . . . . . . . . . 162 Audio Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Image and Video Formats . . . . . . . . . . . . . . . . . . . . . . . 163 image/gif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 image/jpeg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 image/png . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Other Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 application/x-javascript . . . . . . . . . . . . . . . . . . . . . . . 164 application/x-shockwave-flash . . . . . . . . . . . . . . . . . . . . . 164 Chapter 6: Protocols 165 Protocols for TV and Broadcast . . . . . . . . . . . . . . . . . . . . 165 tv: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 mcast: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 goto: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 Standard Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . 171 http: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 https: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 javascript: . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 Unsupported Protocols . . . . . . . . . . . . . . . . . . . . . . . . 172 Chapter 7: Playing Sounds Chapter 8: Playing Flash Movies Attributes . . . . base . . . bgcolor . . highlightable loop . . . name . . . 173 175 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 176 176 177 177 177 <embed> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv TABLE OF CONTENTS JANUARY 2002 play . . . pluginspage quality . . salign . . . scale . . . src . . . . ui . . . . width, height . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 178 178 178 179 179 179 180 Chapter 9: Character Sets 181 Basic HTML Character Entities . . . . . . . . . . . . . . . . . . . . 181 JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM xv xvi TABLE OF CONTENTS JANUARY 2002 Introduction CHAPTERS 1 Liberate uses the standards of the Internet to deliver interactive capabilities to a variety of information appliances, all of which have three things in common: they’re inexpensive; they’re easy to use; and they perform just a few functions superbly. These three characteristics will change the way people think about the Internet. LIBERATE TV NAVIGATOR Liberate TV Navigator™ is not something you can buy on a store shelf. It is middleware that service providers, like cable and satellite operators, customize and then provide on STBs (settop boxes) for their customers. Liberate makes several versions of TV Navigator: • Liberate TV Navigator Standard, versions 1.2 and 1.3 (high-performance STBs with HTML 3.2 and JavaScript 1.1) • Liberate TV Navigator Standard, version 1.5 (double-byte capability for Asian languages with HTML 3.2 and JavaScript 1.1) • Liberate TV Navigator Compact, version 3.0 (basic STB’s with HTML “microBrowser” and “microVM” for Java™ applications) The version of TV Navigator you develop for depends on the architecture of the service provider’s network and the type of set-top box your audience uses. This book serves as a guide and a reference to HTML-based content for the Liberate TV Navigator Platform. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM Liberate TV Navigator 1 ANATOMY OF AN HTML ELEMENT Figure 1 shows an HTML element as it is presented in this book: Element name Element usage Supported versions <body> USAGE: s1 yes <body attributes>...[</body>] background="URL" bgcolor="color" layer=["background" | "foreground"] link="color" text="color" overscan=["left" | "top" | "right" | "bottom" | "all" | "none"] onfocus="JavaScript" onblur="JavaScript" onerror="JavaScript" onload="JavaScript" onunload="JavaScript" onkeyout="JavaScript" onvisible="JavaScript" c3 yes Available attributes (documented in a following section) Event-handler attributes (documented as a group in a later chapter) ATTRIBUTES: EVENT HANDLERS: General discussion Overview The BODY element holds the content that will be displayed on the TV screen. In TV Navigator, BODY has the additional attribute OVERSCAN that lets you specify if and how content spreads into the background of the page. The event-handling attributes of the BODY element actually apply to the window object associated with the document. Those attributes are not documented here. For more information, refer to “Event Handlers” on page 161. Implementation details Attribute reference for this element Variations The event-handling attributes of BODY are not supported by TV Navigator Compact. Attributes Figure 1: HTML Element The book uses the following method to describe HTML elements. • The element name, in this case “<body>” appears in the heading, surrounded by left- and right-angle brackets. In text, the element appears as “BODY.” • To the far right of the element name, on the same line, is a shorthand reference to the versions of TV Navigator that support this element: — “s1” indicates TV Navigator Standard 1.2, 1.3, and 1.5. — “c3” indicates TV Navigator Compact 3.0 microBrowser. 2 Anatomy of an HTML Element CHAPTER 1: INTRODUCTION JANUARY 2002 After the version code is a statement indicating the level of support: — — — — “yes” indicates full support for this element. “no” indicates no support for this element. “only” indicates only the named version supports this element. “partial” indicates partial support for this element. • “USAGE” provides a shorthand description of how to use the element in HTML code. Optional components are shown in italic. For example: “attributes”. If an attribute is required, it will (generally) be shown inside the opening tag. Otherwise, the required attribute is mentioned in the “Overview” section. Some HTML elements require end tags, some forbid end tags, while others have optional end tags. Proper usage is as follows: — No end tag shown means an end tag is forbidden — An end tag shown means an end tag is required (for example: “</strong>”). — An end tag in square brackets means an end tag is optional, (for example: “[</body>]”). • “ATTRIBUTES” provides a list of the attributes unique to this element, and a shorthand description of how to use the attribute in HTML code. In online versions of this document, a blue attribute name indicates a hyperlink to the description of that attribute. All attributes listed under this heading are described thoroughly in a following section. • “EVENT HANDLERS” provides a list of event-handling attributes that may be used with this element. These attributes apply only to versions of TV Navigator Standard, not to TV Navigator Compact nor to TV Navigator Micro Edition. All event handlers listed under this heading are described thoroughly in a later chapter. • “Overview” gives a complete description of how and why to use the element, often with code samples, and references to related elements and attributes. This section may include optional subsections. • “Variations” is a subsection of “Overview,” and notes how the different releases of TV Navigator implement the HTML element. • “Attributes” provides a complete description of the unique attributes for this element. Some elements may refer to attributes in other element descriptions. Refer to the following section for how to read the attribute descriptions. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM Anatomy of an HTML Element 3 ANATOMY OF AN HTML ATTRIBUTE Figure 2 shows a sample of an HTML attribute as it is presented in this book. Attribute name(s) Italics indicate a parameter name A vertical bar (“|”) indicates a choice of values border, bordercolor, frameborder Attribute usage General discussion SYNOPSIS: border="pixels" bordercolor="color" frameborder=["yes" | "no"] DESCRIPTION: For clarity, adjacent frames usually need to be separated by a border, so TV Navigator honors the BORDER attribute of the FRAMESET element. However, to keep the border from taking up too much room, its width is limited to a maximum of 5 pixels. If the BORDER attribute is set to a value greater than 5, a border 5 pixels wide will be displayed. ... Implementation details VARIATIONS: These attributes are not supported in TV Navigator Compact. Figure 2: HTML Attribute The book uses the following method to describe the attributes of HTML elements: • The attribute name, in this case “border,” appears in the heading. In text, the attribute appears as “BORDER.” If the description applies to more than one attribute, the applicable attributes are listed in the heading. • “SYNOPSIS” provides a shorthand description of how to use the attribute in HTML code. These are the conventions used in this section: "pixels" Italic text in quotes indicates a parameter. "yes" Plain text in quotes indicates a literal string. ["yes" | "no"] Separation of literal strings and/or parameters by a vertical bar (“|”) indicates a choice of values. • “DESCRIPTION” gives a complete description of how and why to use the attribute(s), often with code samples, and references to related elements and attributes. 4 Anatomy of an HTML Attribute CHAPTER 1: INTRODUCTION JANUARY 2002 • “VARIATIONS” (optional) notes how the different releases of TV Navigator implement the HTML element. • “SEE ALSO” (optional) provide a direct reference to another element or attribute description. FONT CONVENTIONS This book uses the following additional font conventions in text: Category HTML elements and attributes Literal strings Type Style fixed-width, small caps (blue for hyperlinks) plain text in quotation marks Examples BODY BGCOLOR “640” “darkcyan” “audio/wav” “#00FFFF” findChannel() true Document MimeType ProgramStream TvChannel setName(string name, boolean flag) max-age=seconds <body bgcolor="color" . . .> send(object netEvent, string options) var netter = new NetRequest(); <td focusable="true"> for ( i=0; i < length; i++ ) <a name="marker"></a> Java and JavaScript API elements Object classes bold and sans-serif (but plain text and sansserif in tables) plain text and capitalized Arguments to JavaScript functions and other variables Code examples italic and sans-serif fixed-width font File and path names, URLs, protocol names, and key names italic waterfalls.jpg /food/dairy/cheese/italian.html tv: http://www.somesite.com/dir Enter, Control+J, Escape JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM Font Conventions 5 ORGANIZATION OF THIS MANUAL This book is divided into topic-based chapters. Chapters devoted strictly to reference material are presented alphabetically. The chapters and appendixes are as follows: Chapter 1: Introduction The chapter that you’re now reading. Chapter 2: HTML Reference A complete alphabetical reference to all HTML elements used by the different versions of TV Navigator. Each element contains an alphabetical reference of its unique attributes. Chapter 3: Event Handlers An alphabetical reference to all event-handler attributes used by TV Navigator Standard. Chapter 4: Using Color A reference to methods for specifying color in TV Navigator. This chapter includes a color chart showing the 140 named Netscape colors supported by TV Navigator. Chapter 5: Content Data Types A listing of all the MIME media types that TV Navigator handles. Chapter 6: Protocols The protocol section references all public protocols that can be used in URLs understood by TV Navigator, including tv: and mcast:. Chapter 7: Playing Sounds A brief overview of using sound in TV Navigator. Chapter 8: Playing Flash Movies A brief overview of using Macromedia Flash movies in TV Navigator. This chapter discusses only HTML features of Flash movies. JavaScript features are discussed in the Liberate JavaScript API Reference. Chapter 9: Character Sets A reference to supported character sets. 6 Organization of This Manual CHAPTER 1: INTRODUCTION JANUARY 2002 HTML Reference CHAPTERS 2 This chapter provides a complete reference to HTML elements and attributes supported by the current versions of Liberate TV Navigator. Additional attributes that are common to many elements are presented in other chapters: • Event Handling Attributes, Chapter 3 • Color Attributes, Chapter 4 Refer to the previous chapter for a guide to how these element and attribute descriptions are presented. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 7 <a> USAGE: ATTRIBUTES: s1 yes c3 yes <a href="URL" attributes>...</a> <a name="name" attributes>...</a> highlightable=["true" | "false"] href="URL" left="name"; right="name"; up="name"; down="name" name="string" target="frameName" rel="relationship" rev="relationship" onclick="JavaScript" onmouseover="JavaScript" onmouseout="JavaScript" EVENT HANDLERS: Overview The A anchor element creates hyperlink pointers and destinations. Create an anchor by surrounding content (text and/or images) with opening and closing <a> tags. To make the anchor a link, add an HREF attribute to the opening tag. For example, the following code inserts a hyperlink into a section of text: To learn more <a href="http://www.river.com/index.htm">click here.</a> To create a destination for a link, name the anchor with a NAME attribute. For example, this code in index.htm creates a named anchor: <a name="anc_01">Information for visitors arriving from the other page...</a> Link to this named anchor by adding a hashmark (#) plus the NAME attribute of the anchor to the HREF attribute URL parameter. For example: To learn more <a href="http://www.river.com/index.htm#anc_01"> click here.</a> If you are linking to a destination in the same document, you can omit the URL portion before the hashmark. The A anchor element can accept both HREF and NAME attributes on the same opening tag, and can therefore function as both a link and a destination. 8 <a> CHAPTER 2: HTML REFERENCE JANUARY 2002 Link Appearance The default color of hyperlinks is “blue” unless you change the LINK attribute of BODY to use a different color. Links are not underlined in TV Navigator, contrary to the behavior of PC browsers. Variations TV Navigator Compact supports additional attributes that can alter the behavior of the focus rectangle as it moves from link to link. For more information, refer to the LEFT attribute of the A element. Attributes highlightable SYNOPSIS: DESCRIPTION: highlightable=["true" | "false"] Indicates whether or not the focus rectangle will automatically highlight a link anchor when it’s the focus of the user’s attention. Only anchors with HREF attributes—link sources, not destinations—are focusable and can be highlighted. If the HIGHLIGHTABLE attribute is omitted, listed without a value, or set to “true”, the link can be highlighted. However, if set to “false”, the focus rectangle will not be drawn. For example, you could use highlightable="false" to display a “bug” over the TV picture without a distracting highlight. A “bug” is a small, semitransparent graphic that overlays the full-screen TV image and generally resides in one corner of the screen. Pressing the Enter key selects the link associated with the bug. This kind of display can be used to notify the viewer of an incoming mail message, or to signal the presence of an enhanced television (eTV or ATVEF) program enhancement. The “bug” should be the only focusable element the user sees. In other words, a page that sets highlightable="false" should contain only one focusable element so that highlighting is not needed to indicate where the focus lies. The HIGHLIGHTABLE attribute can also be set dynamically from JavaScript as a property of the Link object. For more information, refer to the Content Developer’s Reference. AVAILABILITY: Not available in TV Navigator Compact. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <a> 9 href SYNOPSIS: href="URL" href="[URL]+[#]+[name]" The HREF attribute makes the anchor a hypertext link. It points to a document at the destination URL parameter. To specify an anchor as the destination of the link, use the second form above, which appends a hashmark and the name of the anchor to the URL parameter. If no HREF is specified, the A anchor element can only function as an anchor. Additionally, for those platforms that support JavaScript, the URL parameter can use the javascript: protocol to execute a JavaScript statement. For example: <a href=javascript:alert("Clicked")>Click Me</a> DESCRIPTION: VARIATIONS: In TV Navigator Compact, the URL must be fully qualified, with http: protocol and document name. For example, this A element will not work: <a href="www.liberate.com">Liberate</a> This is the correct, fully-qualified version: <a href="http://www.liberate.com/index.html">Liberate</a> left, right, up, down SYNOPSIS: left="name" right="name" up="name" down="name" These attributes explicitly define the behavior of the focus rectangle when it is on an A anchor element. For the name parameter, use the NAME of another A anchor element (or AREA element in an image map) on the page. When the left, right, up, or down key is pressed on the remote or the keyboard, the focus rectangle moves onto the named link for the direction. Available in TV Navigator Compact only. DESCRIPTION: AVAILABILITY: 10 <a> CHAPTER 2: HTML REFERENCE JANUARY 2002 name SYNOPSIS: DESCRIPTION: name="string" Provides a name for the A anchor element so that it can serve as a destination for a hyperlink. It also provides a way to identify the element in JavaScript. rel SYNOPSIS: DESCRIPTION: AVAILABILITY: rel="relationship" Refer to the attribute descriptions of the LINK element. Not available in TV Navigator Compact. rev SYNOPSIS: DESCRIPTION: AVAILABILITY: rev="relationship" Refer to the attribute descriptions of the LINK element. Not available in TV Navigator Compact. target SYNOPSIS: DESCRIPTION: target="frameName" The TARGET attribute designates the name of the frame where the content named in the HREF attribute will be loaded. For information about identifying frames by name, refer to the FRAME element. TV Navigator gives the following TARGET values special meaning: _blank TV Navigator loads the content into the current window. Therefore, "_blank" is equivalent to "_top". This is different from the common behavior on PC browsers, which will load the content into a new window. _parent TV Navigator loads the content into the space defined by the current frame’s FRAMESET parent. This is effective only if the current frameset has been loaded inside another document’s frameset. Otherwise, the behavior is identical to "_top". JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <a> 11 _self TV Navigator replaces the content in the current frame with the new content. This is the default value of the TARGET attribute. _top TV Navigator replaces the current window (and any existing nested framesets) with the content. AVAILABILITY: Not available in TV Navigator Compact. <abbr> USAGE: ATTRIBUTES: s1 no c3 no <abbr>...</abbr> none The ABBR element marks abbreviations in document text. This element is ignored by TV Navigator. <acronym> USAGE: ATTRIBUTES: s1 no c3 no <acronym attributes>...</acronym> none The ACRONYM element marks acronyms in document text. This element is ignored by TV Navigator. <address> USAGE: ATTRIBUTES: s1 yes c3 yes <address>...</address> none The ADDRESS element marks a block of text as contact information. TV Navigator italicizes text enclosed in the ADDRESS element to distinguish it visually from surrounding text. Variations In TV Navigator Compact, this element does not change the appearance of text in the foreground layer. It is only supported in the background layer. 12 <abbr> CHAPTER 2: HTML REFERENCE JANUARY 2002 <applet> USAGE: ATTRIBUTES: s1 no c3 yes <applet code="filename.class" attributes>...</applet> align="value" alt="text" archive="URL" code="filename.class" codebase="path" height="pixels" hspace="pixels" name="name" vspace="pixels" width="pixels" Overview The APPLET element embeds Java and Liberate microVM applets in Web pages (only for versions of TV Navigator with microVM). The APPLET element can contain 0 or more PARAM elements. Before the applet runs, TV Navigator passes the name/value pairs of the PARAM elements to the applet. The applet must be programmed to accept these values, otherwise the values are ignored. For example, this applet places a menu on the page, sets the background color, and turns off an optional animation feature: <applet code="menu.class"> <param name="bgcolor" value="black"> <param name="animation" value="off"> </applet> Variations • The APPLET element is not supported in TV Navigator Standard 1.x. • TV Navigator Compact 3.x supports only the CODE attribute. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <applet> 13 Attributes align SYNOPSIS: DESCRIPTION: align="value" The ALIGN attribute dictates the position of the applet in relation to its surrounding text. The acceptable values for the ALIGN attribute of the APPLET element are identical to those for the ALIGN attribute of the IMG element. This attribute is not supported in TV Navigator Compact. AVAILABILITY: alt SYNOPSIS: DESCRIPTION: alt="text" Text assigned to the ALT attribute displays only if the version of TV Navigator does not support Java applets. Those versions of TV Navigator that do not support Java applets will also display any text that is placed between the opening and closing <applet> tags. This attribute is not supported in TV Navigator Compact. AVAILABILITY: archive SYNOPSIS: DESCRIPTION: AVAILABILITY: archive="URL" This attribute is not supported. This attribute is not supported in TV Navigator Compact. code, codebase SYNOPSIS: code="filename.class" codebase="path" These two attributes provide the directory path and name of the main class file. For example, the following HTML embeds an applet from the directory ../java/tictactoe named tictactoe.class: <applet code="tictactoe.class" codebase="../java/tictactoe/" width="120" height="120"></applet> DESCRIPTION: The CODE attribute is required for the APPLET element. AVAILABILITY: The CODEBASE attribute is not supported in TV Navigator Compact. 14 <applet> CHAPTER 2: HTML REFERENCE JANUARY 2002 height, width SYNOPSIS: height="pixels" width="pixels" Use the HEIGHT and WIDTH attributes to specify the size of the applet on the page. You cannot use zero or negative numbers. If the dimensions of the applet exceed the available space on the page, TV Navigator will automatically (and uniformly) scale the applet to prevent horizontal scrolling. This attribute is not supported in TV Navigator Compact. DESCRIPTION: AVAILABILITY: hspace, vspace SYNOPSIS: hspace="pixels" vspace="pixels" Use the HSPACE and VSPACE attributes to add a margin of empty (backgroundcolored) space between the applet and adjacent content. HSPACE adds a margin to the left and right of the applet; VSPACE does the same for the top and bottom of the applet. This attribute is not supported in TV Navigator Compact. DESCRIPTION: AVAILABILITY: name SYNOPSIS: DESCRIPTION: name="name" The NAME attribute identifies the applet for reference from JavaScript. For more information, refer to “Event Handlers” on page 147. This attribute is not supported in TV Navigator Compact. AVAILABILITY: vspace see hspace width see height JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <applet> 15 <area> USAGE: ATTRIBUTES: s1 yes c3 yes <area attributes eventhandlers> alt="text" coords="coordinates" href="URL" left="name"; right="name"; up="name"; down="name" name="string" nohref shape=["default" | "circle" | "poly" | "rect"] target="frameName" onclick="JavaScript" onmouseover="JavaScript" onmouseout="JavaScript" EVENT HANDLERS: Overview Use the AREA element in conjunction with IMG and MAP to create a selectable client-side image map. Each AREA element defines a “hotspot” with a shape type, size, and position, and a hypertext link for launching URLs or JavaScript statements. All the AREA elements for a particular image are enclosed by a MAP element with a defined NAME attribute. The image map is then associated with the image by defining the USEMAP attribute of the IMG element. The following code creates an image map over sheep.gif using three <area> tags with a circle, a rectangle, and a polygon: <img src="sheep.gif" width="144" height="119" usemap="#sheepmap"> <map name="sheepmap"> <area shape="circle" coords="33,36,40" href="sheephead.htm" target="bframe" alt="sheep head"> <area shape="rect" coords="46,78,120,117" href="sheeplegs.htm" alt="sheep legs" target="bframe"> <area shape="poly" coords="108,14,140,23,127,69" href="sheepdip.htm" target="bframe" alt="sheep dip"> </map> Figure 3 shows how the code applies the image map to sheep.gif. 16 <area> CHAPTER 2: HTML REFERENCE JANUARY 2002 <area shape="circle" coords="33,36,40" href="sheephead.htm"…> <area shape="poly" coords="108,14,140,23,127,69" href="sheepdip.htm"…> <area shape="rect" coords="46,78,120,117" href="sheeplegs.htm"…> <img src="sheep.gif"… usemap="#sheepmap"> Figure 3: Defining an Image Map Because TV is a mouseless environment, image maps should be used sparingly in TV Navigator. Users navigate pages by moving the yellow focus rectangle with the cursor keys, or by jumping the rectangle from link to link with the Tab key. When navigating this way, the entire image map is treated as though it were a single link. To activate the image map, the user must select the image (with the Enter key). The focus rectangle turns blue, and a mouse pointer appears on the image. The user moves the pointer pixel-bypixel with the cursor keys. If the pointer is over a hotspot when Enter is pressed, the link is launched. If the pointer is not over a hotspot when Enter is pressed, the image map is exited, the focus rectangle turns yellow, and link-to-link navigation returns. Variations TV Navigator Compact supports additional attributes that can alter the behavior of the focus rectangle as it moves from area to area. For more information, refer to the LEFT attribute of the AREA element. Attributes alt SYNOPSIS: DESCRIPTION: alt="text" The ALT attribute provides a description of the image map’s hotspots for browsers that do not display graphics, or for browsers for the visually impaired. If your page will be viewed in environments other than TV Navigator, you should always provide ALT descriptions of the hotspots. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <area> 17 coords SYNOPSIS: DESCRIPTION: coords="coordinates" The COORDS attribute defines the size and position of the AREA hotspots. Distances are measured in pixels from the upper-left corner of the image. When the SHAPE attribute is undefined or set to "rect" (the default value), it is a rectangle defined by the distance of the edges from the upper-left corner: <area shape="rect" coords="left,top,right,bottom"...> When the SHAPE attribute is set to "circle", you specify the x and y coordinates of the circle center, and the radius of the circle: <area shape="circle" coords="center-x,center-y,radius"...> When the SHAPE attribute is set to "poly" (polygon) , you specify the x and y coordinates of each point of the polygon: <area shape="poly" coords="x1,y1,x2,y2,...xn,yn"...> href, nohref SYNOPSIS: href="URL" nohref The HREF attribute associates a URL link with the defined area. You can use any TV Navigator-compatible URL, including javascript: pseudo-URLs. The NOHREF attribute deactivates the area. In TV Navigator Compact, the URL must be fully qualified, with http: protocol and document name. For example, this AREA element will not work: <area ... href="www.liberate.com">Liberate</a> DESCRIPTION: VARIATIONS: This is the correct, fully-qualified version: <area ... href="http://www.liberate.com/index.html">Liberate</a> 18 <area> CHAPTER 2: HTML REFERENCE JANUARY 2002 left, right, up, down SYNOPSIS: left="name" right="name" up="name" down="name" These attributes explicitly define the behavior of the focus rectangle when it is on an AREA element. For the name parameter, use the NAME of another AREA or A element on the page. When the left, right, up, or down key is pressed on the remote or the keyboard, the focus rectangle moves onto the named link for the direction. Available in TV Navigator Compact only. DESCRIPTION: AVAILABILITY: name SYNOPSIS: DESCRIPTION: name="string" Provides a name for the AREA element, when identifying it as a destination from a LEFT, RIGHT, UP, or DOWN attribute. This attribute is not accessible from JavaScript. Available in TV Navigator Compact only. AVAILABILITY: shape SYNOPSIS: DESCRIPTION: shape=["default" | "circle" | "poly" | "rect"] This attribute defines the shape of the hotspot. See the ALT attribute for more information. If no value is specified, TV Navigator assumes shape="rect". target SYNOPSIS: DESCRIPTION: target="frameName" The TARGET attribute specifies which named frame will hold the content specified in the HREF attribute. For more information, refer to the NAME attribute of the FRAME element. Not available in TV Navigator Compact. AVAILABILITY: JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <area> 19 <b> USAGE: ATTRIBUTES: s1 yes c3 yes <b>...</b> none This text-formatting element renders enclosed text bold. If no bold variation exists for the font, or if the font is already bold, the element has no effect. Variation Bold is not supported on foreground layers in TV Navigator Compact. <base> USAGE: ATTRIBUTES: s1 yes c3 yes <base attributes> href="URL" target="frame" Overview The BASE element tells the browser where to find relative URLs with the HREF attribute. TV Navigator automatically determines the base of relative URLs from the URL of the currently loaded document, so this element is typically superfluous. You can override a document-wide TARGET setting by specifying TARGET for the individual A links. Use the BASE element inside the document HEAD. For example: <head> <base href="http://www.liberate.com/index.html" target="mainframe"> </head> Clicking a link to menu.htm on this page automatically retrieves the document at the full path http://www.liberate.com/menu.htm, and the document will load into the frame named “mainframe”. 20 <b> CHAPTER 2: HTML REFERENCE JANUARY 2002 Attributes href SYNOPSIS: DESCRIPTION: href="URL" Defines the server path that will be used as the base URL. You must include a complete URL, with document filename. target SYNOPSIS: DESCRIPTION: target="frame" Optionally, you can specify the destination frame for all links in the document with the TARGET attribute. <basefont> USAGE: ATTRIBUTES: s1 yes c3 no <basefont attributes> color="color" face="fontname1, fontname2,..." size=["1"–"7" | "small" | "medium" | "large"] Overview The BASEFONT element sets the default font behavior for all text items in the document that follow it. It also affects the behavior of local formatting elements, such as FONT, B, and I. The BASEFONT element can appear as many times as necessary in a document, and can either replace or augment previously defined attributes. For example, a SIZE attribute can be declared in one <basefont> tag, and then a COLOR attribute can be declared later in the document: <body> Text... <basefont size="3"> Text... <basefont color="blue"> Text... </body> JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <basefont> 21 Variation The BASEFONT element is not supported in TV Navigator Compact. Attributes color SYNOPSIS: DESCRIPTION: color="color" Declares the color of the following text. For more information about the COLOR attribute, refer to Chapter 4, “Using Color.” face SYNOPSIS: DESCRIPTION: face="fontname1, fontname2,..." Declares a list of suggested fonts, in order of preference, to use for the following text. For more information about FACE, refer to the FACE attribute of FONT. size SYNOPSIS: DESCRIPTION: size=["1"–"7" | "small" | "medium" | "large"] Declares the relative point size to use for the following text. For more information about SIZE, refer to the SIZE attribute of FONT. <bgsound> USAGE: ATTRIBUTES: s1 yes c3 no <bgsound src="URL" attributes> loop=["infinite" | "number"] src="URL" Overview The BGSOUND element provides a way to play a sound file while the page is displayed. BGSOUND is an optional subelement of the HEAD element. For example: <head> <title>Annoying sound page</head> <bgsound src="mysounds/kaboom.wav"> </head> 22 <bgsound> CHAPTER 2: HTML REFERENCE JANUARY 2002 When placed without the LOOP attribute, the sound is played only once. Background sounds have no visual presence on the page. For more information on sound, refer to Chapter 7, “Playing Sounds.” Variations The BGSOUND element is not supported by TV Navigator Compact. Additionally, sound playback is limited by the capabilities of the set-top box. If you plan on using the BGSOUND element, you must test the results on the target hardware. Attributes loop SYNOPSIS: DESCRIPTION: loop=["infinite" | "number"] Sets the number of times to play the BGSOUND element. A value of "infinite" or "-1" repeats the sound indefinitely as long as the page is displayed. A value of "0" or "1", or no LOOP attribute (the default) plays the sound once. Any other positive integer for number causes the sound to be played the number of times, or until another page is displayed. src SYNOPSIS: DESCRIPTION: src="URL" Sets the URL of the sound file. The file must be in one of the supported audio formats listed in Chapter 7, “Playing Sounds.” <big> USAGE: ATTRIBUTES: s1 yes c3 yes <big>...</big> none Increases the size of the enclosed text by moving up one value in the 1-7 scale. BIG elements can be nested for a cumulative effect. For more information on font sizing, refer to the SIZE attribute of FONT. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <big> 23 <blink> USAGE: ATTRIBUTES: s1 no c3 no <blink>...</blink> none The BLINK element is not supported by any version of TV Navigator. <blockquote> USAGE: ATTRIBUTES: s1 yes c3 yes <blockquote attributes>...</blockquote> cite="URL" Overview BLOCKQUOTE is a body-structuring element that marks a block of text as an extended quote. To visually distinguish blockquotes from the surrounding text, TV Navigator adds a 30 pixel margin to the left, top, and bottom of the block. It is important to note that because BLOCKQUOTE generates a carriage return to start a new line for the quote, it automatically terminates the opening tag of a P paragraph element. Attributes cite SYNOPSIS: DESCRIPTION: cite="URL" The CITE attribute is not yet implemented in any version of TV Navigator. The intention of this attribute is to provide a reference to the source of the quoted material. 24 <blink> CHAPTER 2: HTML REFERENCE JANUARY 2002 <body> USAGE: ATTRIBUTES: s1 yes c3 yes <body attributes>...[</body>] background="URL" bgcolor="color" layer=["background" | "foreground"] link="color" text="color" overscan=["left" | "top" | "right" | "bottom" | "all" | "none"] onfocus="JavaScript" onblur="JavaScript" onerror="JavaScript" onload="JavaScript" onunload="JavaScript" onkeyout="JavaScript" onvisible="JavaScript" EVENT HANDLERS: Overview The BODY element holds the content that will be displayed on the TV screen. In TV Navigator, BODY has the additional attribute OVERSCAN that lets you specify if and how content spreads into the background of the page. The event-handling attributes of the BODY element actually apply to the window object associated with the document. Those attributes are not documented here. For more information, refer to “Event Handlers” on page 147. Variations The event-handling attributes of BODY, and the OVERSCAN attribute are not supported by TV Navigator Compact. TV Navigator Compact supports the nonstandard LAYER attribute, which specifies the default rendering layer for all elements on the page. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <body> 25 Attributes alink SYNOPSIS: DESCRIPTION: alink="color" Specifies the color of links that are being clicked. This is not supported in any version of TV Navigator. background SYNOPSIS: DESCRIPTION: background="URL" The BACKGROUND attribute specifies an image file to use as a page background. The URL parameter can point to any .jpg, .png, or .gif image file. If the image is smaller than the page, the image will be tiled. GIF images with transparent areas will display the BGCOLOR of the BODY through the transparent areas. You can put television in the background of any window or frame by assigning the tv: URL to the BACKGROUND attribute. <body background="tv:"... > So that the same syntax can be used for a window that has been subdivided into frames (or a frame subdivided into other frames), the FRAMESET element has been extended to use the same BACKGROUND attribute as BODY. The only difference is that television is the only image that can be assigned to a frameset background: <frameset cols="52, *" background="tv:"> <frame src="leftframe.html"> <frame src="rightframe.html"> </frameset> Then, if the BODY element for any document in a frame specifies a transparent background color, as discussed in “Transparent Backgrounds” on page 156, the TV image will show though. VARIATIONS: TV Navigator Compact renders the background image (and any other content assigned layer="background") to an MPEG I-frame. bgcolor SYNOPSIS: DESCRIPTION: bgcolor="color" The background of a page can be set to a color, or to "transparent". Refer to Chapter 4, “Using Color” for information on color specifications. 26 <body> CHAPTER 2: HTML REFERENCE JANUARY 2002 VARIATIONS: In TV Navigator Compact, the default background color is "#C0C0C0". In TV Navigator Standard 1.x, the default background color is "#C6C6CE". layer SYNOPSIS: DESCRIPTION: layer=["background" | "foreground"] Specifies the rendering layer for all elements on the page. By default, layer="background" means that all content is combined with the BACKGROUND image and rendered to an MPEG I-frame using background colors and fonts. If you set layer="foreground", the contents of the BODY element are sent to the set-top box to be rendered above the I-frame. Foreground text elements can appear only as plain text, and with size restrictions. For more information about layering in Compact, refer to the LAYER attribute of the DIV, H1, IMG, P, and TABLE elements, and the font size restrictions of the FONT element. AVAILABILITY: Available in TV Navigator Compact only. link SYNOPSIS: DESCRIPTION: link="color" Specifies the color of hypertext links on the page. The default value of color is "blue". Refer to Chapter 4, “Using Color” for information on color specifications. overscan SYNOPSIS: DESCRIPTION: overscan=["left" | "top" | "right" | "bottom" | "all" | "none"] Generally, it’s a good idea to confine all content to the safe area of the screen so that everything is sure to be visible to the user. (The safe area is discussed in the Content Developer’s Guide.) However, even as you keep text, foreground images, and other Web content within the safe area, you may want background colors and images to fill the whole screen, or perhaps one corner or one or two sides of the screen. The OVERSCAN attribute lets you accomplish this effect. It allows backgrounds, including background TV, to spill outside the boundaries of a window. It takes a list of comma-separated values that name the affected edges of the window. These ar the possible values of the OVERSCAN attribute: JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <body> 27 left Lets background colors and images spill from the left side of the window to the left edge of the screen. top Lets background colors and images spill from the top of the window to the top edge of the screen. right Lets background colors and images spill from the right side of the window to the right edge of the screen. bottom Lets background colors and images spill from the bottom of the window to the bottom edge of the screen. all Lets background colors and images spill from all sides of the window to all edges of the screen. If the OVERSCAN attribute is mentioned but isn’t assigned a value, "all" is assumed. none Confines background colors and images to the window itself. This is the default value if the OVERSCAN attribute isn’t mentioned at all. Figure 4 shows the areas of the screen that are controlled by each of these values. To put a background color or image in a corner of the screen, both of the adjacent sides must be specified. r left & top top right & top left window right left & bottom bottom right & bottom Figure 4: Overscan Regions 28 <body> CHAPTER 2: HTML REFERENCE JANUARY 2002 For example, the following HTML would cover the window, the area above the window, and the areas to its left and right with a maroon background, leaving only the bottom strip untouched: <body bgcolor="maroon" overscan="left,top,right" . . . > The following example would place an image in a band as wide as the window from the top to the bottom of the screen, excluding only the left and right sides: <body background="image.jpg" overscan="top,bottom" . . . > Finally, this example would place TV in the lower right corner of the screen: <body background="tv:" overscan="right,bottom" . . . > A background TV picture is scaled, not cropped. If it’s confined to a window, it’s scaled to the size of the window. If it spills outside the window, it’s scaled to the section of the screen where it’s displayed. In the example above, it would be scaled to fill the area from the left edge of the window to the right edge of the screen and from the top of the window to the bottom of the screen. Background images other than TV are not scaled. They’re first placed in the window and then extended into the overscan area: • In the window: If the image is larger than the window, it’s cropped to fit. If it’s smaller than the window, it’s tiled to fill the space within the window itself. • In the overscan area: The image may be tiled into the overscan area (possibly showing parts of it that otherwise would have been cropped at the window’s edge), or it may be smeared. Smearing means that the column or row of background pixels lying along the edge of the window is repeated in the area between the window and the edge of the screen; corners are filled with the background color of the pixel at the corner of the window. Currently, TV Navigator decides whether or not to smear by comparing each background pixel at the edge of the window to the adjacent background pixel one step in from the edge. If each pair of pixels along an edge to be overscanned matches, those pixel values are extended into the overscan area. Otherwise, the image is tiled along that edge. For example, if the column of background pixels along the right edge of the window is identical to the column immediately to its left, that same column will be repeated from the right edge of the window to the right edge of the screen. Diagrammatically, smearing along the right and bottom edges of a window might look something like Figure 5 (where the small squares represent pixels in the window): JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <body> 29 Overscan Region Pixels (enlarged to show detail) Window Window border expands by smearing Figure 5: Smearing the Window Border into the Overscan Region Therefore, if a background image fits the window and has a well-defined border, the border will be expanded into the overscan area; the image won’t be tiled. Note: In some deployments, a flicker filter and a chroma filter are applied to images before the images are delivered to the set-top box. These filters alter pixel values to reduce visual artifacts on the TV screen. For example, the filter that minimizes flickering may modify a row of pixels to reduce the contrast with the preceding and following rows. Where these filters are used, an image may require three (not two) identical rows at the top and bottom to ensure smearing and up to seven identical columns at the right and left. Because it affects the window in its relation to the screen, the OVERSCAN attribute is valid only for BODY and FRAMESET elements in the topmost window, not in a FRAME. AVAILABILITY: The OVERSCAN attribute is not supported in TV Navigator Compact. text SYNOPSIS: DESCRIPTION: text="color" This attribute sets the base color for text on the page. Refer to Chapter 4, “Using Color” for information on color specifications. The default value of color is "black". 30 <body> CHAPTER 2: HTML REFERENCE JANUARY 2002 vlink SYNOPSIS: DESCRIPTION: vlink="color" Specifies the color of links that have been visited. Not supported in any version of TV Navigator. <br> USAGE: ATTRIBUTES: s1 yes c3 yes <br attributes> clear=["all" | "left" | "right" | "none"] Overview The BR element forces text to start on the next line, without generating a carriage return. This effect is created in most text editors and authoring tools by holding down the Shift key while pressing Enter. Attributes clear SYNOPSIS: DESCRIPTION: clear=["all" | "left" | "right" | "none"] The CLEAR attribute determines the behavior of the next line of text relative to an inline graphic (applet, image, iframe, embed, object or spacer) after the <br> tag. When text wraps around a graphic, a <br> in the text normally causes the text to start a new line, and continue wrapping the image. This default behavior is equivalent to clear="none". Instead, you can force the next line to start below the graphic, depending on which side of the graphic the text is flowing. Figure 6 illustrates an example of CLEAR in TV Navigator Standard. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <br> 31 clear="left" clear="none" Figure 6: Behavior of the BR Element CLEAR Attribute <caption> USAGE: ATTRIBUTES: s1 yes c3 yes <caption attributes>...</caption> align=["top" | "bottom"] Overview The CAPTION element provides a caption for a table, and must occur directly after the opening tag of a TABLE element. For example: <table> <caption align="top">caption text</caption> ... </table> Attributes align SYNOPSIS: DESCRIPTION: align=["top" | "bottom"] The ALIGN attribute of CAPTION determines the position of the caption in relation to the table. TV Navigator generally accepts only "top" and "bottom" as 32 <caption> CHAPTER 2: HTML REFERENCE JANUARY 2002 valid settings for ALIGN. HTML 4.0 accepts a broader range of values, but these are ignored and treated as "top" (the default value). See Figure 7 for a summary of ALIGN values. Figure 7: CAPTION Element Behavior The "right" and "left" values of ALIGN can be simulated in versions of TV Navigator that do not support them. To do this, enclose the caption text in a P element with the desired alignment: <caption><p align="left">caption text</p></caption> You can also apply local formatting to the caption with FONT. <center> USAGE: ATTRIBUTES: s1 yes c3 yes <center>...</center> none The CENTER element provides a way to create a block of centered text on the page. CENTER is deprecated in HTML 4.0, and its use is generally discouraged in TV Navigator in preference for other centering methods. For example, each of the following three lines of code create centered text: <center>This text is centered, but poorly</center> <p align="center">This is a better way to center</p> <div align="center"><p>And this is too!</p></div> For more information on proper centering techniques, refer to DIV and P. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <center> 33 <cite> USAGE: ATTRIBUTES: s1 yes c3 yes <cite>...</cite> none The CITE element assigns a source to any block of text. For example: <p>"...knowledge does not come to us by detail, but in flashes of light from heaven..." Thoreau, <cite>Life Without Principle</cite> </p> TV Navigator italicizes the text “Life Without Principle”. The CITE element serves no other function in TV Navigator. Variations In TV Navigator Compact, this element does not change the appearance of text in the foreground layer. It is only supported in the background layer. <code> USAGE: ATTRIBUTES: s1 yes c3 yes <code>...</code> none To show a coding example on your page, you can use the CODE element as follows: <code> &lt;script&gt; function doFocus(fruits, nuts) { updateRow(fruits); updateColumn(nuts); } &lt;/script&gt; </code> TV Navigator renders text enclosed with CODE in a monospaced font if one is available on the system. The CODE element is not very useful in TV Navigator, as it is highly unlikely that viewers will want to see coding examples on their televisions screens. If you absolutely must display a coding example, you may prefer to use the PRE element instead, because it does not “collapse” whitespace (see Figure 8). 34 <cite> CHAPTER 2: HTML REFERENCE JANUARY 2002 <code>&lt;script&gt; function doFocus(fruits, nuts) { updateRow(fruits); updateColumn(nuts); } &lt;/script&gt;</code> <pre>&lt;script&gt; function doFocus(fruits, nuts) { updateRow(fruits); updateColumn(nuts); } &lt;/script&gt;</pre> Figure 8: Comparing the CODE and PRE Elements Note in these examples that < and > (left and right brackets) are created with character entities "&lt" and "&gt". This prevents the browser from recognizing code example tags as valid HTML. For information on using character entities, refer to Chapter 9 “Character Sets.” Variations In TV Navigator Compact, this element does not change the appearance of text in the foreground layer. It is only supported in the background layer. <dd> USAGE: ATTRIBUTES: s1 yes c3 yes <dd>...</dd> none The DD element is used to mark a definition item in a definition list. For more information, refer to the DL element. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <dd> 35 <dfn> USAGE: ATTRIBUTES: s1 no c3 no <dfn>...</dfn> none The DFN element marks the first occurrence of a word in a document, which is generally where that term is defined. For example: <p>Move the <dfn>focus ring</dfn> (the yellow highlight box in the upper left corner of the screen) by using the arrow keys on the remote control.</p> The common convention among browsers is to italicize the contents of the DFN element. <dir> USAGE: ATTRIBUTES: s1 yes c3 yes <dir attributes>...</dir> compact Overview The DIR element creates a directory list in the document. Use DIR to enclose the definition list, and LI elements to mark each list item. For example: <dir> <li>DO, <li>RE, <li>ME, <li>FA, </dir> a a a a deer, a female deer drop of golden sun name I call myself long, long way to run The DIR element is deprecated in HTML 4.0. You should use the UL element to create lists instead. Attributes compact SYNOPSIS: DESCRIPTION: compact The COMPACT attribute is intended to compress the appearance of a directory list. In TV Navigator, this attribute has no visible effect. 36 <dfn> CHAPTER 2: HTML REFERENCE JANUARY 2002 <div> USAGE: ATTRIBUTES: s1 yes c3 yes <div attributes>...</div> align=["left" | "center" | "right"] layer=["background" | "foreground"] style="cssDeclaration" Overview To assign properties to content on a block level, use the DIV element. A DIV can span multiple blocks of text, as opposed to P and other elements that operate on only a single block. All versions of TV Navigator support the ALIGN attribute. For example, the following code aligns a block of paragraphs to the right: <div align="right"> <p>This paragraph is right-aligned <p>and this one is too </div> <p>but this paragraph reverts to default alignment. Variations TV Navigator Compact supports the nonstandard LAYER attribute, which specifies the default rendering layer for all content inside the DIV element. Attributes align SYNOPSIS: DESCRIPTION: align=["left" | "center" | "right"] Sets the alignment of all text contained by the DIV element. layer SYNOPSIS: DESCRIPTION: layer=["background" | "foreground"] Specifies the rendering layer for all elements inside the DIV element. By default, the DIV element inherits its layer setting from the BODY element. If layer="background" (the default setting for BODY), all elements inside the DIV and the BODY are combined with the BACKGROUND image and rendered to an MPEG I-frame using background colors and fonts. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <div> 37 If you set layer="foreground", the contents of the DIV element are sent to the settop box to be rendered above the I-frame. Foreground text elements can appear as plain text only. As a rule, if the BODY element is in the foreground, any contained DIV elements must be in the foreground as well, regardless of the LAYER attribute. AVAILABILITY: Available in TV Navigator Compact only. style SYNOPSIS: style="position:absolute; left:x; top:y;" specific form for TV Navigator Compact TV Navigator Compact supports only one style declaration: "position: absolute; left:x; top;y". This feature allows content developers to specify an explicit position for elements on the page, where x and y define the location of the topleft corner of the content inside the DIV element. This makes it easier to align foreground elements with the background of the page. In this example, a block of text is positioned 72 pixels over, and 96 pixels down from the top left corner of the screen: <div style="position:absolute; left:72; top:96;"> <p>A block of text</p> </div> DESCRIPTION: When using the absolute positioning technique in TV Navigator Compact, a number of restrictions apply: • Positions are always calculated from the top-left corner of the page, even for nested DIV elements. • Nested DIV elements are partially supported, but should be avoided. • If one coordinate is omitted, it is assumed to be "0", and the contents are then positioned 0 pixels from the top-left corner of the page, not the normal flow. • If you use the STYLE attribute for absolute positioning, do not use the ALIGN attribute on the same DIV element. • Use only pixels as the unit of measurement. If no unit is specified, pixels are assumed. If another unit of measurement is specified, the coordinate is ignored and therefore assumed to be "0". VARIATIONS: The STYLE attribute is not supported in TV Navigator Standard 1.x. 38 <div> CHAPTER 2: HTML REFERENCE JANUARY 2002 <dl> USAGE: ATTRIBUTES: s1 yes c3 yes <dl attributes>...</dl> compact Overview The DL element creates a definition list, which is a glossary-type list of terms and definitions. Use DL to enclose the definition list, DT elements to mark the terms, and DD elements to mark the definitions. Only the DL element requires an end tag; end tags for DD and DT are not necessary, because these elements terminate automatically at the start of any other definition list element. For example: <dl> <dt>DO<dd>A <dt>RE<dd>A <dt>ME<dd>A <dt>FA<dd>A </dl> deer, a female deer drop of golden sun name I call myself long, long way to run TV Navigator renders the DT element as plain text, and then indents the associated DD element on the next line. Attributes compact SYNOPSIS: DESCRIPTION: compact The COMPACT attribute is intended to compress the appearance of a DL definition list. In Internet Explorer and Netscape Navigator, this attribute forces the DD element to start on the same line immediately after the DT element, if space is available. In TV Navigator, this attribute has no visible effect. <dt> USAGE: ATTRIBUTES: s1 yes c3 yes <dt>...[</dt>] none The DT element is used to mark a definition term in a definition list. For more information, refer to the DL element. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <dl> 39 <em> USAGE: ATTRIBUTES: s1 yes c3 yes <em>...</em> none The purpose of EM is to mark a section of text as “emphasized.” TV Navigator renders this text as italic, and therefore its behavior is visually identical to the I element. Variations In TV Navigator Compact, this element does not change the appearance of text in the foreground layer. It is only supported in the background layer. <embed> USAGE: ATTRIBUTES: s1 optional c3 no <embed attributes>...</embed> Refer to specific media type description. The EMBED element lets you place certain non-HTML elements on the page to be rendered by TV Navigator. Some versions of TV Navigator let you place items such as sounds, videos, or Flash movies on the page using EMBED. • To play sounds using EMBED, refer to Chapter 7, “Playing Sounds.” • To play Flash movies using EMBED, refer to Chapter 8, “Playing Flash Movies.” <font> USAGE: ATTRIBUTES: s1 yes c3 yes <font attributes>...</font> color="color" face="fontname1, fontname2,..." size=["1"–"7" | "+number" | "-number"] Overview The FONT element lets you specify the display characteristics of the enclosed text by assigning properties to the available attributes. FONT elements can be nested, as in the following example: <font size="6" color="blue">A bunch of large, blue content... 40 <em> CHAPTER 2: HTML REFERENCE JANUARY 2002 <font color="red">some large, red content...</font> more large, blue content.. </font> This assigns size="6" and color="blue" to the whole section, and color="red" to a subsection. Because of the limitations imposed by the television display, you will find that the FONT element works differently in TV Navigator than it does in a PC browser. For more information about these limitations, refer to the descriptions of the COLOR, FACE, and SIZE attributes. Font Sizing When text is shown on a TV screen, it needs to be larger than when it’s displayed on a monitor for a personal computer. The increased size takes into account the characteristics of TV monitors and the much greater distance between the user and the screen. In standard HTML, the font size for body text is set by a number in the range 1 (smallest) through 7 (largest), with size 3 as the default. TV Navigator keeps the same default, but maps all seven font sizes to larger fonts. The actual size of a font as it appears on the TV screen depends on a number of factors—the font family, the rendering mechanism, the video format, and the platform. TV Navigator Standard 1.x, for example, lets each deployment determine the actual font sizes that correspond to the relative sizes set in HTML. Although actual font sizes may vary from platform to platform, you can get a general idea of how font sizes are increased for the TV screen by noting that the default font (medium, size 3) is 12 points for Netscape Navigator but typically translates to about an 18-point font for TV Navigator on an NTSC display. For an example of how HTML font sizes map to actual points sizes, see Figure 9. Note: Sizes shown are approximate, and will vary between deployments. Point size estimates are based on a 72-dpi (dot-per-inch) display JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <font> 41 Typical display in Standard 1.x 16 points 16 points 18 points 20 points 22 points 24 points 27 points Typical display in Compact 3.x (background layer) 18 points 18 points 18 points 19 points 21 points 22 points 25 points Typical display in Compact 3.x (foreground layer) 21 points 21 points 21 points 27 points 27 points 27 points 27 points Figure 9: Typical HTML Font Size Mapping Some platforms provide a user interface that permits users to choose a scale—small, medium, or large—for all fonts. The scale determines what FONT and BASEFONT size settings in the range 1 through 7 mean. As you’d expect, a given font size—say, size 3—in the large scale is bigger than it would be in the medium scale, and bigger in the medium scale than it would be in the small scale. In the absence of a user preference, the medium scale is the default. The font scale also affects the size of headings (H1-H6). Web pages can establish a scale that’s different from the user’s preference by setting the BASEFONT size to "small", "medium", or "large" as shown here: <basefont size="small"> <basefont size="medium"> <basefont size="large"> 42 <font> CHAPTER 2: HTML REFERENCE JANUARY 2002 These settings affect only the current page; the user’s preference remains in place for all other pages. You might want to set the scale to "medium" or "large", for example, if you have material that won’t lay out well with small-scale fonts. (You can also use these settings during development to test what your page will look like in all three scales.) You should override the user’s preference only when absolutely necessary. In general, the "small" scale should never be set except as a user preference, because it could make your text illegible on the user’s TV screen. Variations The available font sizes (and styles) in TV Navigator Compact depend on whether the content is in the foreground or background layer. Text in the foreground layer can only be plain, and is restricted to two sizes: 18 points and 27 points (approximately). Refer to Figure 9 to see an example of how font sizes display for the foreground and background layers. For more information about layering in Compact, refer to the LAYER attribute of the BODY, DIV, H1, IMG, P, and TABLE elements. Attributes color SYNOPSIS: DESCRIPTION: color="color" Declares the color of the enclosed text. Refer to Chapter 4, “Using Color” for information on color specifications. face SYNOPSIS: DESCRIPTION: face="fontname1, fontname2,..." Declares a list of suggested fonts, in order of preference, to use for the enclosed text. As a developer, you will typically not have control over the font used to render your content. To provide the best possible display on television, the actual font used will be determined by the service provider. In general, the font displayed on the screen will be a sans-serif font. If you declare a font name using the FACE attribute, TV Navigator will ignore your setting and use the default font. Some deployments will provide at least one size of monospace (fixed-width) font. To display content using the monospace font, you must use either the CODE or PRE elements. You cannot force the monospace font (if installed) to display with the FACE attribute. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <font> 43 size SYNOPSIS: DESCRIPTION: size=["1"–"7" | "+number" | "-number"] The SIZE attribute can be specified as an integer ranging from "1" to "7" for an absolute size, or as a relative size (based on a previous FONT element) with a signed integer value such as "-2" or "+4". For more information about sizing, refer to the previous section, “Font Sizing” on page 41. <form> USAGE: ATTRIBUTES: s1 yes c3 no <form attributes>...</form> action=["serverURL" | "mailURL" | none] enctype="mimeType" method=["post" | "get"] name="string" target="frameName" onreset="JavaScript" onsubmit="JavaScript" EVENT HANDLERS: Overview The FORM element is used to define an HTML form. Forms provide a way for the user to supply information which will then be processed by a server script, or passed to a JavaScript function in the same document. You can have more than one form in the same document, but forms cannot be nested. Forms can contain a wide range of other elements, including single and multi-line text fields, radio button groups, checkboxes, and menus. As an example, the following code is a simplified version of the form Liberate uses to sign up new members to our PopTV program; you can see the full version of the form at http://partners.liberate.com/overview/partner_application.html: <form name="NewPartner" action="/cgi-bin/pop.pl" method="post"> <input type="hidden" name="recipient" value="poptvpartners@liberate.com"> <input type="hidden" name="required" value="apply_partner_type,first_name,last_name..."> <input type="hidden" name="redirect" value="http://partners.liberate.com/thanks.html"> <input type="hidden" name="already_reg_redirect" value="http://partners.liberate.com/alreadyapplied.html"> <input type="hidden" name="subject" value="new partner submission"> <br> type of partnership <select name="apply_partner_type"> 44 <form> CHAPTER 2: HTML REFERENCE JANUARY 2002 <option value="none">&lt;select&gt; <option value="partnertype_content">content partner <option value="partnertype_device">device partner <option value="partnertype_infra">infrastructure partner <option value="partnertype_notsure">i'm not sure </select><br> first name <input type="text" name="first_name" size="16"><br> last name <input type="text" name="last_name" size="16"><br> e-mail address <input type="text" name="email" size="16"><br> your company's URL <input type="text" name="company_URL" size="16"><br> please describe your interest in becoming a partner. <br> <textarea name="interest" cols="32" rows="3"></textarea><br> <input type="checkbox" name="emailme" value="emailme" checked> please contact me about poptv news and events. <br> <a href="http://corporate.liberate.com/privacy.html" target="_blank">privacy statement</a> <input name="apply" type="submit" value="apply"> <input type="reset" value="reset form"> </form> In TV Navigator, the form would look like Figure 10: <select> <input type="text"> <textarea> <input type="reset"> <a> <input type="submit"> <input type="submit"> Figure 10: FORM Element in TV Navigator Standard JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <form> 45 The first group of INPUT elements in the form are type="hidden" and therefore do not appear on the screen. You can use hidden inputs to submit additional data to the server. For more information about the other elements in the form, refer to A, INPUT, SELECT, and TEXTAREA. Variations TV Navigator Compact does not support the FORM element or its subelements. Attributes action SYNOPSIS: DESCRIPTION: action="URL" When the user submits a form, a sequence of events happens, depending on the value of ACTION. Four cases are possible: • URL points to a server-side script • URL points to an e-mail address • URL points to a JavaScript statement • URL is null, or ACTION is omitted If URL points to a server-side script, TV Navigator sends the form’s data to the script for processing. In the previous example (under FORM), a Perl script named pop.pl processes the data. This particular Perl script returns one of the URLs named in the hidden input elements, depending on the script outcome (for example, thanks.html or alreadyapplied.html). If the script returns a URL, you may want to direct the output to a frame or window name specified by the TARGET attribute. If URL points to an e-mail address, you must use the mailto: protocol. For example, the opening FORM tag from the previous example could read: <form name="NewPartner" action="mailto:fstelter@liberate.com" enctype="text/plain" method="post"> Then the form’s data would be mailed to the recipient, with the data in the message body. The mailto: protocol is generally not supported on the TV Navigator platform. If you cannot be certain that all users of the form support this protocol, you should avoid using this method. If URL points to a JavaScript statement, you must use the javascript: protocol. Typically, you would use the statement to launch a client-side script. Because 46 <form> CHAPTER 2: HTML REFERENCE JANUARY 2002 the data submission is local, you would not specify a METHOD attribute in the FORM element. If URL is null, or you omit ACTION from the FORM element, the page reloads and the form returns to its initial state. Normally, this would render the form useless, because data could not be submitted. However, you could specify an action for the onsubmit event handler. This event handler triggers before the page reloads, allowing a script on the page to run. The end result is similar to specifying a javascript: URL. For example: <form name="NewPartner" action="" onsubmit="processnewpartner()"> enctype SYNOPSIS: DESCRIPTION: enctype="mimeType" The ENCTYPE attribute sets the MIME type of the data sent from the form. TV Navigator supports the following encoding types: "application/x-www-form-URLencoded" "multipart/form-data" "text/plain" If you use the mailto: protocol in the ACTION attribute, and do not specify enctype="text/plain", then TV Navigator attaches the form data to the e-mail message as a document. method SYNOPSIS: DESCRIPTION: method=["post" | "get"] The METHOD you specify to send form data will depend on how the server-side script is written. METHOD has three possible settings: • If you specify method="get", the data is appended to the ACTION URL, after a question mark (“?”). • If you specify method="post", the data is encoded in the message body using the ENCTYPE MIME type. • If you specify method="" (null), or leave it out of the FORM element, no data will be sent when the user submits the form. For more information about this condition, refer to the ACTION attribute. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <form> 47 name SYNOPSIS: DESCRIPTION: name="string" The NAME attribute assigns an identifier to the form so that it can be referenced in JavaScript. If you use more than one FORM element in a document, the NAME attributes for each must be unique. target SYNOPSIS: DESCRIPTION: target="frameName" The TARGET attribute specifies which named frame (or window) will show the content specified in the URL returned from the server-side script. <frame> USAGE: ATTRIBUTES: s1 yes c3 no <frame attributes> bordercolor="color" frameborder=["yes" | "no"] marginheight="pixels" marginwidth="pixels" name="string" noresize scrolling=["yes" | "no" | "auto"] src="URL" Overview You use FRAME elements to divide the visible portion of a document into subdocuments, each with its own unique URL. All the frames in a document are contained in a single FRAMESET element. For more information about arranging FRAME elements in a document, refer to the FRAMESET element. Frames behave somewhat differently in TV Navigator than they do in a typical PC browser. For example, frame borders are never displayed because they take up valuable screen space, and resizing is not permitted. Variations Frames and framesets are not supported in TV Navigator Compact. 48 <frame> CHAPTER 2: HTML REFERENCE JANUARY 2002 Attributes bordercolor, frameborder SYNOPSIS: bordercolor="color" frameborder=["yes" | "no"] TV Navigator does not allow you to set border attributes on individual frames within a frameset. For more information about borders, refer to the FRAMESET element. DESCRIPTION: marginheight, marginwidth SYNOPSIS: marginheight="pixels" marginwidth="pixels" These attributes set the amount of space between the frame border and the frame contents. MARGINHEIGHT sets the margin from the top and bottom of the content, while MARGINWIDTH sets the margin on the left and right sides of the content. When a frame is adjacent to a window edge (for most content, this will be the screen safe area boundary), the margin is measured from the window edge. For example: <frame src="chanlogo.htm" name="brand" marginheight="6" marginwidth="4"> DESCRIPTION: frameborder see bordercolor name SYNOPSIS: DESCRIPTION: name="string" The name of a frame serves two purposes: • It identifies the frame so that it can be controlled from JavaScript • It identifies the frame so it can receive content identified by an A element hyperlink. The following names are reserved, and must not be used: "_blank", "_parent", "_self", and "_top". For more information about these reserved names, refer to the TARGET attribute of the A element. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <frame> 49 noresize SYNOPSIS: DESCRIPTION: noresize In a PC browser, this attribute prevents the frame from being resized by the user. In TV Navigator, frames are never resizeable, and therefore NORESIZE is ignored. scrolling SYNOPSIS: DESCRIPTION: scrolling=["yes" | "no" | "auto"] When TV Navigator cannot fit a document’s content into the space allotted for the frame, it automatically generates vertical scroll bars. This is the default behavior, equivalent to setting scrolling="auto". The "yes" setting is equivalent to "auto" (scroll bars won’t appear if they are not needed), while the "no" setting prevents scrolling. src SYNOPSIS: DESCRIPTION: src="URL" Specifies the URL of the frame’s content. The URL can take any of the following forms: • Complete URL with a path that specifies any supported content type • Relative URL based on the framesetting document’s established path • JavaScript pseudo-URL (javascript:) While SRC is not considered a required attribute of the FRAME element, if you do not specify a URL, TV Navigator will display an error dialog when the frame is loaded. 50 <frame> CHAPTER 2: HTML REFERENCE JANUARY 2002 <frameset> USAGE: ATTRIBUTES: s1 yes c3 no <frameset attributes>...</frameset> background="tv:" cols="columnSizeList" rows="rowSizeList" border="pixels" bordercolor="color" frameborder=["yes" | "no"] overscan=["top" | "right" | "bottom" | "left" | "all" | "none"] onfocus="JavaScript" onblur="JavaScript" onload="JavaScript" onunload="JavaScript" onkeyout="JavaScript" onvisible="JavaScript" EVENT HANDLERS: Overview Use the FRAMESET element to create a page layout with FRAME elements. An HTML page that contains a frameset uses the FRAMESET element in place of a BODY element, and this page is then referred to as the “framesetting document.” The framesetting document can contain scripts that can be accessed from all pages in the frameset. The framesetting document must not contain any HTML that would normally go inside a BODY element, unless that content is placed inside a NOFRAMES element to be displayed in browsers that do not support frames. The FRAMESET element uses the COLS or ROWS attributes to create layouts with columns or rows, respectively. To create a layout that uses both rows and columns, you can nest FRAMESET elements. For example, the following HTML framesetting document creates a narrow left-side frame where a menu would reside, a narrow top-side frame where a logo or banner would reside, and a main frame whose content changes depending on the user’s selections in the main frame: <html> <head> ...standard head content: title, scripts, meta declarations, etc... </head> <frameset cols="100,*"> <frame name="menuFrame" src="menu.htm"> <frameset rows="25%,*"> <frame name="headFrame" src="head.htm"> <frame name="bodyFrame" src="bodyframe.htm"> </frameset> JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM <frameset> 51 </frameset> <noframes> <body> ...content to be displayed by browsers that do not support frames... </body> The framesetting document looks like Figure 11 when displayed in TV Navigator. 25% of the available height remaining available space 100 pixels wide remaining available space Figure 11: Document with Nested Frames Variations Frames and framesets are not supported in TV Navigator Compact. 52 CHAPTER 2: HTML REFERENCE JANUARY 2002 Attributes background SYNOPSIS: DESCRIPTION: background="tv:" Provides a similar function as the BACKGROUND attribute of the BODY element, however, television is the only kind of image that can be assigned to a frameset background. The background image shows through all frames of the FRAMESET element, as long as the frames have transparent backgrounds. border, bordercolor, frameborder SYNOPSIS: border="pixels" bordercolor="color" frameborder=["yes" | "no"] For clarity, adjacent frames usually need to be separated by a border, so TV Navigator honors the BORDER attribute of the FRAMESET element. However, to keep the border from taking up too much room, its width is limited to a maximum of 5 pixels. If the BORDER attribute is set to a value greater than 5, a border 5 pixels wide will be displayed. Similarly, to prevent the display problems associated with 1-pixel-wide lines, the minimum border width is 2. If the BORDER attribute is set to 1, a border 2 pixels wide is displayed. Therefore the choices for a frame border are no border (when the border attribute is set to 0) or a border 2, 3, 4, or 5 pixels wide. The default is a 2-pixel-wide border. TV Navigator simulates a 3-D (three-dimensional) effect on borders by placing 1-pixel-wide lines in various shades of grey around a solid central border. The total width of the border including the 3-D effect always equals the value of the BORDER attribute. See Figure 12 for an illustration of this effect. DESCRIPTION: JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 53 Vertical Border pixels Central borders are a default grey color. In Standard 4.0, set with the BORDERCOLOR attribute. Horizontal Border Central border is surrounded by 1-pixel-wide lines that simulate a “3-D” effect. Total width equals the value of the BORDER attribute. Figure 12: Frame Borders in TV Navigator The BORDERCOLOR attribute will be supported in a future version of TV Navigator. The FRAMEBORDER attribute controls whether or not a border appears between frames in a frameset. For predictable results, you should avoid this attribute and set a BORDER value instead. bordercolor see border cols SYNOPSIS: cols="columnSizeList" rows="rowSizeList" The COLS and ROWS attributes are lists of columns widths and row heights to create. There are three ways to define a list item: • Size in pixels. For example: cols="280,280" DESCRIPTION: • Size in percent. For example: cols="50%,50%" 54 CHAPTER 2: HTML REFERENCE JANUARY 2002 • An asterisk (*), a wildcard that represents the remaining space. For example: cols="280,*" The previous three items each define two equal-sized columns on an NTSC screen in TV Navigator 1.x. The advantage of using the asterisk is that you can create layouts that will work on multiple browsers and resolutions. You can also mix pixels and percents in a list. For example: If you use both ROWS and COLS as attributes on a single FRAMESET element, you create a grid of frames. For example: This creates four equally-sized frames on the page. To create asymmetrical layouts, you will have to nest FRAMESET elements (see the example in Figure 11). frameborder see border overscan SYNOPSIS: DESCRIPTION: overscan=["top" | "right" | "bottom" | "left" | "all" | "none"] The OVERSCAN attribute of FRAMESET determines how backgrounds from the safe area spill into the boundaries of the viewing area. For more information, refer to the discussion of the OVERSCAN attribute for the BODY element. rows see cols JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 55

    -

    USAGE: s1 yes c3 yes

    ...

    ...

    ...

    ...

    ...
    ...
    align=["left" | "center" | "right"] layer=["background" | "foreground"] ATTRIBUTES: Overview The H1-H6 elements define a set of heading levels for the document, with H1 being the most important, and H6 the least. In TV Navigator, headings H1 through H6 match font sizes 6 though 1, but invert the order. Refer to FONT for a description of how font sizing works on TV Navigator. One consequence of font sizing on TV Navigator is that on some deployments, there may be very little, if any, visual distinction between heading levels. Also, on platforms that support the BASEFONT element, the scale that’s chosen for the base font size—“small,” “medium,” or “large”—affects the size of headings just as it affects the size of body text. For example, the following HTML defines two headings:

    Really Big Heading

    This is some body text.

    Somewhat Smaller Heading, Centered

    And some more body text

    Variations TV Navigator Compact supports the nonstandard LAYER attribute. Attributes align SYNOPSIS: DESCRIPTION: align=["left" | "center" | "right"] The ALIGN attribute determines the position of the text within the heading. 56

    -

    CHAPTER 2: HTML REFERENCE JANUARY 2002 layer SYNOPSIS: DESCRIPTION: AVAILABILITY: layer=["background" | "foreground"] For more information, refer to the LAYER attribute of the DIV element. Available only in TV Navigator Compact. USAGE: s1 yes c3 yes ... Overview The HEAD element contains information that provides instruction to the browser about the document. The contents of HEAD are not displayed to the user. TV Navigator supports the following elements inside the HEAD element: BASE, BASEFONT, ISINDEX, LINK, META, SCRIPT, and TITLE. Variations TV Navigator Compact supports only the META and TITLE elements inside the HEAD element. BASE, BASEFONT, ISINDEX, LINK, and SCRIPT are ignored.
    USAGE: ATTRIBUTES: s1 yes c3 yes
    align=["left" | "center" | "right"] noshade size="pixels" width=["pixels" | "percent"] Overview The HR element draws a horizontal rule. If no attributes are specified, TV Navigator draws a solid, 2-pixel grey line across the width of the content container. Lines thicker than 2 pixels will have softened or antialiased edges (drawn in an intermediate shade of grey) to reduce screen flicker. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 57 To create custom lines with colors or three-dimensional effects, you should insert a GIF or JPEG image to simulate the desired appearance. Attributes align SYNOPSIS: DESCRIPTION: align=["left" | "center" | "right"] Sets the alignment of the HR element. This has an effect only if the WIDTH of the line is narrower than the content container. The default alignment is "center". noshade SYNOPSIS: DESCRIPTION: noshade TV Navigator always draws the line in a solid color, without any shading, as if the NOSHADE attribute was always specified. size SYNOPSIS: DESCRIPTION: size="pixels" Sets the thickness of the HR element. Because the TV display is interlaced, a horizontal line that’s just one pixel wide will visibly flicker on a TV screen (or will be blurred by a flicker filter). To prevent this problem, TV Navigator disallows 1-pixel lines in a number of contexts—such as frameset and table borders and the spacing between cells in a table. One of those contexts is a horizontal rule, the HR element. If you set the SIZE attribute of HR to 0 or 1, the rule will nevertheless be 2 pixels wide. The default size is also 2. TV Navigator Compact do not support the SIZE attribute. All HR elements are 2 pixels thick. VARIATIONS: width SYNOPSIS: DESCRIPTION: width=["pixels" | "percent"] Sets the size of the HR element in pixels (absolute) or in a percentage of the content container width. For example, in TV Navigator Standard 1.x on an NTSC screen, the following two HR elements have the same width:

    58
    CHAPTER 2: HTML REFERENCE JANUARY 2002 USAGE: ATTRIBUTES: s1 yes c3 yes ... none The HTML element contains the entire HTML document, typically with the opening tag on the first line, and the closing tag on the last line. TV Navigator does not require the use of this element, but it should be included as part of good coding practice. In a well-formed HTML document, the HTML element contains one (optional) HEAD element and one (required) BODY element. For example: ...elements providing information about the document, as well as style sheets and/or scripts, when supported... ...elements to be displayed including text, images, and forms... Framesetting documents typically place the FRAMESET element between the closing tag and the opening tag. These documents must not contain any viewable content. For more information, refer to the FRAMESET element. USAGE: ATTRIBUTES: s1 yes c3 yes ... none This text-formatting element renders enclosed text italic. If no italic variation exists for the font, or if the font is already italic, the I element has no effect. Variations In TV Navigator Compact, this element does not change the appearance of text in the foreground layer. It is only supported in the background layer. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 59 USAGE: ATTRIBUTES: s1 yes c3 yes align="value" alt="text" border height=["pixels" | "percent"] hspace="pixels" ismap layer=["background" | "middle" | "foreground" | "transparent"] lowsrc="URL" name="string" src="URL" usemap="[#]+[mapname]" vspace="pixels" width=["pixels" | "percent"] onabort="JavaScript" onerror="JavaScript" onload="JavaScript" EVENT HANDLERS: Overview Use the IMG element to display a graphics file located at the SRC attribute URL. In TV Navigator, the HEIGHT and WIDTH attributes are strongly recommended for optimal performance. The image occupies space that, depending on the value of the ALIGN attribute, is treated like a text character. An image placed in text increases the line height of the text to accommodate the size of the image. Transparency TV Navigator supports image transparency. Transparent images (generally GIFs) can show the background color, a background image, or even video (depending on the design of the page) through the transparent regions. Partial or “alpha” transparency (where the image appears “ghosted” over the background) is only possible on platforms that support alpha transparency, and then only for the entire page, not for individual images. For more information about transparency, refer to the Content Developer’s Guide for your release. Images as Buttons A common use of image elements is to create buttons which function as active hyperlinks. To do this, surround the image element with an A element: 60 CHAPTER 2: HTML REFERENCE JANUARY 2002 You can also create client-side and server-side image maps to accompany the IMG element. For more information about this topic, refer to the AREA element. Variations TV Navigator Compact supports the nonstandard LAYER attribute of IMG. Attributes align SYNOPSIS: DESCRIPTION: align="value" The ALIGN attribute dictates the position of the IMG element’s container in relation to the text on the page. TV Navigator accepts the following values for the ALIGN attribute: absbottom The container appears in the text at the insertion point. The bottom of the container aligns with the absolute bottom of the text at the insertion point. If there is not enough room to display the image on the same line, the container starts the next line, and text continues after it. absmiddle The container appears in the text at the insertion point. The vertical middle of the container aligns with the vertical middle of the text at the insertion point. If there is not enough room to display the image on the same line, the container starts the next line, and text continues after it. baseline The container appears in the text at the insertion point. The bottom of the container aligns with the baseline of the text at the insertion point. If there is not enough room to display the container on the same line, the container starts the next line, and text continues after it. bottom Same as "baseline". left The container is aligned to the left side of the text container, and starts on the next line below the insertion point. Text after the container continues JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 61 after the insertion point and then wraps around the container on successive lines. middle The container appears in the text at the insertion point. The vertical middle of the container aligns with the baseline of the text at the insertion point. If there is not enough room to display the container on the same line, the container starts the next line, and text continues after it. right The container is aligned to the right side of the text container, and starts on the next line below the insertion point. Text after the container continues after the insertion point and then wraps around the image on successive lines. top The container appears in the text at the insertion point. The top of the container aligns with the top of the text line at the insertion point. If there is not enough room to display the container on the same line, the container starts the next line, and text continues after it. The following example displays the small image raw.gif inline with the text: ...text more text... The bottom of the image aligns with the baseline of the surrounding text. VARIATIONS: TV Navigator Compact does not support the values "absbottom", "absmiddle", or "baseline". alt SYNOPSIS: DESCRIPTION: alt="text" The ALT attribute displays a text string in place of the image for browsers that cannot display graphical images. You may use this attribute with TV Navigator, but it will have no effect. For example: A tasty piece of raw shrimp on a pillow of sticky rice 62 CHAPTER 2: HTML REFERENCE JANUARY 2002 border SYNOPSIS: DESCRIPTION: border="pixels" A border can take up valuable space on the television screen. Moreover, the sharply contrasting vertical and horizontal lines of a border can create unwanted visual artifacts when displayed on TV, especially if the border is narrow. For this reason, TV Navigator does not display borders around images; it ignores the border attribute of the IMG element. If an image absolutely requires a border, you can include it as part of the image. height, width SYNOPSIS: height=["pixels" | "percent"] width=["pixels" | "percent"] These attributes set the dimensions of the IMG element. Although HEIGHT and WIDTH are not required, you should always set them. If you do not, TV Navigator has to calculate the size of the image before performing the page layout. If the image has a different size than that specified by HEIGHT and WIDTH, TV Navigator scales the image (unevenly, if specified) to fit the defined area. If an image is too wide to fit the available screen area, it’s scaled to fit. The scaling retains the original proportion of WIDTH to HEIGHT; in other words, the image isn’t distorted, just made smaller. If a table contains nothing but images and spacers (no text), all of them are resized proportionally. DESCRIPTION: hspace, vspace SYNOPSIS: hspace="pixels" vspace="pixels" The HSPACE attribute of the IMG element puts space between the image and any text to its left or right. The default, if a more explicit value is not specified, is 3 pixels if the image is aligned left or right; otherwise the default is 0 pixels. This matches the behavior of Netscape Navigator. For instance, this line of HTML automatically gives you a 3-pixel space between the right edge of the image and the “H” of “Here.” DESCRIPTION: JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 63 Here is text. This can present problems if you’re trying to get a left- or right-aligned image to fit in a table cell or line up with other images. To explicitly set the image to display without the 3 pixels of space, set HSPACE to 0: Here is text. The line above displays the image with no pixels between the image and the “H.” ismap SYNOPSIS: DESCRIPTION: ismap The ISMAP attribute tells TV Navigator that the IMG element has a server-side image map. The use of server-side image maps is not recommended in TV Navigator, which supports client-side image maps with the USEMAP attribute. To create a server-side image map, you must place the IMG element inside an A element with a link to the server-side program. For example: For information about client-side image maps, refer to the AREA element. layer SYNOPSIS: DESCRIPTION: layer=["background" | "middle" | "foreground" | "transparent"] Specifies the rendering layer for the IMG element. background If layer="background" (the default setting), the image is rendered as part of the background to an MPEG I-frame. middle If layer="middle", the contents of the IMG element are sent to the set-top box to be rendered as a P-frame above the background I-frame. The P-frame is built from 16-pixel macroblocks that contain the image and any background pixels around the image if the image is not exactly aligned on 16-pixel boundaries (which is true in most cases). foreground If layer="foreground", the behavior is identical to layer="middle". 64 CHAPTER 2: HTML REFERENCE JANUARY 2002 transparent If layer="transparent", the IMG element is not rendered, but its spacing is retained. This creates an effect similar to that of the spacer element. If the BODY element is in the foreground, any contained IMG elements must be in the foreground as well, and will be rendered as P-frames above the background I-frame. Care must be taken to avoid overlapping P-frames. Use the Compact Layout Tool to check for overlapping P-frames. If overlapping is detected, the content must be corrected accordingly. AVAILABILITY: Available in TV Navigator Compact only. lowsrc SYNOPSIS: DESCRIPTION: lowsrc="URL" The LOWSRC attribute is used by PC browsers to retrieve a low-resolution image that can be displayed temporarily while a higher-resolution image (specified by the SRC attribute) is downloaded. TV Navigator ignores this attribute and downloads only the image specified by SRC. Not available in any version of TV Navigator. AVAILABILITY: name SYNOPSIS: DESCRIPTION: name="string" The NAME attribute provides a way to reference the image from JavaScript. For example: src SYNOPSIS: DESCRIPTION: src="URL" Points to the URL for the image. The image must be a format supported by TV Navigator, such as GIF, JPEG, or PNG. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 65 usemap SYNOPSIS: DESCRIPTION: usemap="[#]+[mapname]" Provides a link to a client-side image map. For example: ... For information on creating client-side image maps, refer to the AREA element. vspace see hspace width see height 66 CHAPTER 2: HTML REFERENCE JANUARY 2002 USAGE: INPUT TYPES: s1 yes c3 no type="button" type="checkbox" type="file" type="hidden" type="image" type="password" type="radio" type="reset" type="submit" type="text" align=["left" | "right" | "top" | "middle" | "bottom"] bgcolor="color" border="pixels" checked disabled maxlength="maxChars" name="string" nocursor readonly size="numChars" src="URL" value="text" onblur="JavaScript" onchange="JavaScript" onclick="JavaScript" onfocus="JavaScript" onmouseout="JavaScript" onmouseover="JavaScript" onselect="JavaScript" ATTRIBUTES: EVENT HANDLERS: Overview The INPUT element creates a control inside an HTML form. These controls provide a way for the user to interact with client-side or server-side scripts, generally for the purpose of gathering data. TV Navigator requires that all INPUT elements be inside a FORM element. (See FORM for more information on using forms.) Inside the FORM element, INPUT elements can be organized and presented inside other elements, such as TD table cells or paragraphs. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 67 The most important attribute of INPUT is TYPE. The settings of TYPE create different kinds of controls, each with a unique behavior, appearance, and set of attributes. The following section, “Input Types,” describes the different controls. Variations The INPUT element is not supported in TV Navigator Compact, because the FORM element is not supported. Input Types type="button" SYNOPSIS: ATTRIBUTES: disabled name="string" value="text" onclick="JavaScript" Creates a button inside the FORM element that the user clicks to execute an action specified by the onclick event handling attribute. The text of the VALUE attribute is displayed on the face of the button, and the number of characters in the text determines the width of the button. The string assigned to the NAME attribute is only used to identify the control in JavaScript—it is not submitted as part of a name-value pair to the server. The following HTML creates a control like the one shown in Figure 13: DESCRIPTION: Standard 1.x Figure 13: INPUT Element, Button Type To create a custom button using a graphic image, you can surround an IMG element with an A element. Refer to IMG and A for more information. 68 CHAPTER 2: HTML REFERENCE JANUARY 2002 type="checkbox" SYNOPSIS: ATTRIBUTES: checked disabled name="string" value="text" Creates a checkbox inside the FORM element that the user clicks to mark a desired value. The text of the VALUE is not displayed, but instead is sent to the server as part of the name-value pair. The name-value pair is only sent if the checkbox is checked by the user, or if the control has been prechecked using the CHECKED attribute. Labels for checkboxes must be created in the HTML surrounding the INPUT element. The following HTML creates a control like the one shown in Figure 14:

    Toppings:  Cheese  Onions  Bacon

    DESCRIPTION: Standard 1.x Figure 14: INPUT Element, Checkbox Type When a group of checkboxes shares the same NAME attribute (like this example) the number of name-value pairs sent to the server equals the number of boxes checked. This is different from the behavior of type="radio" INPUT elements, which create a mutually-exclusive group when they share the same NAME attribute. The DISABLED attribute prevents the user from selecting and altering the state of the checkbox. This attribute is settable from JavaScript (for those platforms that support scripting), so changing the state of DISABLED can be useful for automating text entry. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 69 type="file" SYNOPSIS: ATTRIBUTES: disabled name="string" value="text" In a PC browser, this control lets the user select a file to upload to the server. This feature is not available in TV Navigator. DESCRIPTION: type="hidden" SYNOPSIS: ATTRIBUTES: disabled name="string" value="text" Creates a name-value data pair that is uploaded to the server when the FORM is submitted. No portion of the control is visible to the user. Web authors typically use the type="hidden" input to transmit data that is required by the server-side script, but is otherwise meaningless to the user. For example:

    Pizza Order Form:

    Size: Large Medium

    Toppings: Cheese ...

    DESCRIPTION: 70 CHAPTER 2: HTML REFERENCE JANUARY 2002 type="image" SYNOPSIS: ATTRIBUTES: align=["left" | "right" | "top" | "middle" | "bottom"] border disabled name="string" nocursor src="URL" value="text" Creates a button inside the FORM element from an image. When the button is clicked, the form is submitted and the x-y value of the mouse-pointer is submitted as two name-value pairs. In a PC browser, the x-y values can be used like an image map to return a variable user selection. In TV Navigator, there is no mouse pointer, so the type="image" input control should only be used to submit forms. For more information, refer to the NOCURSOR attribute. The following form uses the image input type to create a variable rating system:

    What kind of pizza did you purchase?

    Carnivore Special Vegetarian

    How did you like your pizza?
    (click a spot on the bar)

    DESCRIPTION: This looks like Figure 15 in TV Navigator: Standard 4.0 Figure 15: INPUT Element, Image Type JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 71 Clicking on the image input in TV Navigator submits the form, and returns the following values to the server: pizza=veggie rating.x=143 rating.y=%2D195 type="password" SYNOPSIS: ATTRIBUTES: bgcolor="color" disabled maxlength="maxChars" name="string" readonly size="numChars" value="text" Creates a text-entry field inside the FORM element for the sole purpose of entering a password or other secure information. When the user types into the field, only asterisks are displayed. When the form is submitted, data from the type="password" control is sent as a standard name-value pair. For example:

    Username:

    Password:

    DESCRIPTION: type="radio" SYNOPSIS: ATTRIBUTES: checked disabled name="string" value="text" Creates a control inside the FORM element that changes state when clicked. In TV Navigator, the radio button looks like a circle. The control has two states: • Hollow by default (unchecked: the name-value pair is not submitted) • Solid after being clicked (checked: the name-value pair is submitted) DESCRIPTION: 72 CHAPTER 2: HTML REFERENCE JANUARY 2002 The CHECKED attribute can be used to set the checked state of the radio button automatically. When a group of radio buttons share the same value for NAME, the buttons form a mutually exclusive group. In other words, checking one radio button automatically unchecks the other buttons in the group. For example, the following HTML creates a control like the one shown in Figure 16:
    Title: Mr Mrs Miss Dr Ms
    Standard 1.x Figure 16: INPUT Element, Radio Type type="reset" SYNOPSIS: ATTRIBUTES: disabled name="string" value="text" Creates a button that resets the FORM to its initial state. The text displayed on the face of the button is set by the VALUE attribute. No data is sent to the server from this INPUT element when the form is submitted. For example:
    ... ...
    DESCRIPTION: JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 73 type="submit" SYNOPSIS: ATTRIBUTES: disabled name="string" value="text" Creates a button that submits the form via the METHOD element specified inside the FORM element. The text displayed on the face of the button is set by the VALUE attribute. No data is sent to the server from this INPUT element when the form is submitted. For example:
    ... ...
    DESCRIPTION: type="text" SYNOPSIS: ATTRIBUTES: bgcolor="color" maxlength="maxChars" name="string" readonly size="numChars" value="text" Creates a text input control inside the FORM element. Unlike the TEXTAREA element (which allows multiple lines of text), only one line of text may be entered into the control. You can preassign a value to the text field by setting the VALUE attribute in HTML. The text of VALUE appears in the field when the form is displayed. The following HTML creates a control like the one shown in Figure 16):

    First Name:
    Last Name: ...

    DESCRIPTION: 74 CHAPTER 2: HTML REFERENCE JANUARY 2002 Standard 1.x Figure 17: INPUT Element, Text Type The size of the input area is determined by the SIZE attribute, while the number of characters entered by the user can be limited with the MAXLENGTH attribute. The width set by SIZE is determined by fitting the widest character (generally “W”) into the space. Therefore, it is generally desirable to set SIZE less than MAXLENGTH. When TV Navigator displays the text field to the user, it follows an algorithm that lets the user navigate the FORM and also edit text in the type="text" control, as follows: 1. First, the user navigates the entire page and the different elements inside the FORM by using the cursor keys or the Tab key to jump from element to element. 2. When the highlight rectangle lands on a INPUT element, the user presses Enter or any alphanumeric key to begin typing. 3. If the user hits the text limit defined by the MAXLENGTH attribute, no more text can be entered. 4. The user can edit text already typed by using the cursor keys and the Backspace key. The entire field is cleared if the user presses the Delete key. 5. The user exits the text field by pressing the Tab key, or by moving the cursor beyond text already entered. If the text area is reentered during navigation, typing and editing begins after the last character. Attributes align SYNOPSIS: DESCRIPTION: align=["left" | "right" | "top" | "middle" | "bottom"] Applies only to the INPUT element type="image". The image follows the general rules for aligning inline containers. For more information, refer to the ALIGN attribute of IMG. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 75 bgcolor SYNOPSIS: DESCRIPTION: bgcolor="color" This is a Liberate extension of the INPUT element. Though it can be set for a variety of input types, the most common use is for text input fields (text and password). If you will be setting the BGCOLOR attribute dynamically from JavaScript, you must use hexadecimal RBG specification. For more information, refer to Chapter 4, “Using Color.” Not available in TV Navigator Compact. AVAILABILITY: border SYNOPSIS: DESCRIPTION: border="pixels" Applies only to the INPUT element type="image". The image follows the general rules for image borders. For more information, refer to the BORDER attribute of IMG. checked SYNOPSIS: DESCRIPTION: checked A Boolean that applies to the INPUT elements type="checkbox" and type="radio". When the CHECKED attribute is present, the checkbox or radio button appears checked when the FORM is loaded. The default value is off (CHECKED not present). disabled SYNOPSIS: DESCRIPTION: disabled A Boolean that applies to all INPUT element types. When the DISABLED attribute is present, the control cannot be focused or changed. In some versions of TV Navigator, the control will also appear greyed-out. The default value is enabled (DISABLED not present). maxlength SYNOPSIS: DESCRIPTION: maxlength="maxChars" Applies to INPUT elements type="password" and type="text". This attribute sets the maximum number of characters that will be accepted for the control. Once 76 CHAPTER 2: HTML REFERENCE JANUARY 2002 the limit is reached, no more character input is accepted. For more information, refer to the INPUT element type="text". name SYNOPSIS: DESCRIPTION: name="string" Applies to all INPUT element types. The NAME attribute is required for any input type that has a VALUE that will be read by the server. The attribute also provides a way to reference the element in JavaScript, for those platforms that support JavaScript. nocursor SYNOPSIS: DESCRIPTION: nocursor A Boolean that applies only to the INPUT element type="image". Images in forms are typically image maps; different parts of the image are mapped to different actions. An on-screen cursor is required for the user to navigate within the image. The presence of the NOCURSOR attribute indicates that the image should not behave like an image map and that a cursor is, therefore, not needed. Logically, an image map requires three user actions—one to navigate to the image, another to select a part of the image, and a finally an action to invoke (or “click”) that part. On a personal computer with a mouse, users can move to the image and select a part of it in a single gesture. However, it’s not that easy in the generally cursorless environment of Interactive TV. After focusing on the image, they must take a separate action to select part of it, typically by maneuvering a temporary cursor with the arrow keys. The NOCURSOR attribute eliminates this cumbersome step if it’s not necessary. If NOCURSOR is not specified, the form is submitted along with the coordinates of the cursor when the user clicks the image. If NOCURSOR is specified, the coordinates are not submitted (because there’s no cursor). readonly SYNOPSIS: DESCRIPTION: readonly Applies to INPUT element type="password" and type="text". The READONLY attribute prevents the value of the control from being changed by the user. The control also cannot receive focus. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 77 size SYNOPSIS: DESCRIPTION: size="numChars" Applies to type="password" and type="text". The SIZE attribute sets the width of the control by the number of the widest character that will fit into the space. For more information, refer to the INPUT element type="text". src SYNOPSIS: DESCRIPTION: src="URL" Applies only to the INPUT element type="image". The image follows the general rules for image sources. For more information, refer to the SRC attribute of the IMG element. value SYNOPSIS: DESCRIPTION: value="text" The VALUE attribute is required for the INPUT elements type="checkbox" and type="checkbox". For any other INPUT that will have a name-value pair submitted to the server, the VALUE attribute may be preset. These preset values will be presented to the user when the form is displayed, and can be changed. For type="button", type="reset", and type="checkbox", the VALUE attribute sets the text on the face of the button. USAGE: ATTRIBUTES: s1 yes c3 no prompt="text" Overview The ISINDEX element provides a simple way to send a single text string to a server for processing. To use this feature, place the single ISINDEX opening tag inside the HEAD element, and assign a request for data to the PROMPT attribute. 78 CHAPTER 2: HTML REFERENCE JANUARY 2002 For example, the following HTML provides a simple age-verification form: The data transaction follows these steps: 1. TV Navigator downloads a page with the ISINDEX element from a URL. 2. The text string of the PROMPT attribute displays on the screen. 3. The user enters a response and presses Return. 4. TV Navigator sends a response to the same URL of the current page. 5. The server-side program processes the response and returns an HTML page for TV Navigator to display. The ISINDEX element is deprecated in HTML 4.0, and therefore you should avoid using it. The INPUT element should be used instead. Variations Not available in TV Navigator Compact. Attributes prompt SYNOPSIS: DESCRIPTION: prompt="text" The PROMPT attribute sets the text string that appears when TV Navigator processes the ISINDEX element. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 79 USAGE: ATTRIBUTES: s1 yes c3 yes ... none The KBD element marks text that the user will type on the keyboard. It usually appears in onscreen instructions or help screens presented to the user. For example: Welcome to pizzasoft! Press the ENTER key to continue. TV Navigator renders text enclosed with the KBD element in a fixed-width font, if one is available. Variations In TV Navigator Compact, this element does not change the appearance of text in the foreground layer. It is only supported in the background layer. USAGE: s1 no c3 no ... The LAYER element is a Netscape-Navigator-only feature that controls the positioning, sizing, and stacking of elements in the Navigator object model. This element is not supported in any version of TV Navigator. Do not confuse the unsupported LAYER element with the LAYER attribute of BODY, DIV, IMG, and other elements. The LAYER attribute of these elements controls MPEG I-frame rendering in TV Navigator Compact. 80 CHAPTER 2: HTML REFERENCE JANUARY 2002
  • USAGE: ATTRIBUTES: s1 yes c3 yes
  • ...[
  • ] type=["A" | "a" | "I" | "i" | "1"] value="number" Overview The LI element marks list items contained inside OL (ordered list) and UL (unordered list) elements. For more information on using LI, refer to the OL and UL element descriptions. Attributes type SYNOPSIS: DESCRIPTION: type=["A" | "a" | "I" | "i" | "1"] The TYPE attribute determines the sequence behavior for individual LI elements contained inside the OL or UL element. The different values of TYPE produce the following kinds of list items: Value "A" "a" "I" "i" "1" "circle" "disc" "square" List Type ordered alphabetical, uppercase ordered alphabetical, lowercase ordered roman, uppercase ordered roman, lowercase ordered numeric unordered circles unordered discs unordered squares Example A,B,C,D,... a,b,c,d,... I,II,III,IV,... i,ii,iii,iv,... 1,2,3,4,... , , , ,... , , , ,... , , , ,... Typically, TYPE would be set for the entire list. It is not possible to change a list item from an ordered type to an unordered type or vice-versa. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM
  • 81 Setting the type and value for a list item also sets it for subsequent items. For example:
    1. shades of green
    2. mint
    3. chartreuse
    4. shades of blue
    5. sky
    6. navy
    VARIATIONS: TV Navigator Standard 1.x only supports type="1" (default) for ordered lists, and type="disc" for unordered lists. value SYNOPSIS: DESCRIPTION: value="number" The VALUE attribute sets the value for individual LI list items in OL ordered lists. The value of number is always an integer, regardless of the TYPE of list. For example:
    1. Green
    The list item "Green" is assigned the marker "F". USAGE: ATTRIBUTES: s1 yes c3 no charset="characterset" href="URL" rel="relationship" rev="relationship" type="encoding" Overview The LINK element establishes a relationship between the current HTML document and another document at the location specified by the HREF attribute. The LINK element can only exist inside the HEAD element, and the end tag is forbidden. 82 CHAPTER 2: HTML REFERENCE JANUARY 2002 Variations TV Navigator Compact does not support the LINK element. Attributes charset SYNOPSIS: DESCRIPTION: charset="characterset" The CHARSET attribute is not functional in TV Navigator. href SYNOPSIS: DESCRIPTION: href="URL" Specifies the URI or URL of the linked document. rel SYNOPSIS: DESCRIPTION: rel="relationship" Defines the relationship between the current document and the linked document. If you specify rel="next", TV Navigator automatically prefetches the content of the linked document. This can improve performance significantly. For example: When it prefetches the HREF document, TV Navigator follows as many links in the document as memory allows. Any user request to fetch another document aborts the prefetch. rev SYNOPSIS: DESCRIPTION: rev="relationship" Defines the relationship between the current document and the document that linked to it. This is the reverse of the REL attribute. The REV attribute has no current function in TV Navigator. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 83 type SYNOPSIS: DESCRIPTION: type="encoding" The TYPE attribute specifies the MIME type of the linked document.
    USAGE: ATTRIBUTES: s1 yes c3 no ... none Overview The LISTING element is intended to display a block of computer code. Although this element is supported in TV Navigator, you should use the PRE element instead. Variations TV Navigator Compact does not support the LISTING element. USAGE: ATTRIBUTES: s1 yes c3 yes ... name="identifier" Overview Use the MAP element in conjunction with IMG and AREA to create a selectable client-side image map. Each AREA element defines a “hotspot” with a shape type, size, and position, and a hypertext link for launching URLs or JavaScript statements. All the AREA elements for a particular image are enclosed by a MAP element with a defined NAME attribute. The image map is then associated with the image by defining the USEMAP attribute of the IMG element. For more information, and an example of using the MAP element, refer to the AREA element. 84 CHAPTER 2: HTML REFERENCE JANUARY 2002 Attributes name SYNOPSIS: DESCRIPTION: name="identifier" Names the MAP element so it can be referred to from the associated IMG element. USAGE: ATTRIBUTES: s1 yes c3 yes ... compact Overview The MENU element creates an unordered list of items, also called a “bulleted list.” Use the MENU element to enclose the list, and LI elements to mark each list item. Only the MENU element requires an end tag; end tags for LI items are not necessary, because these elements terminate automatically at the start of any other list element. For example:
  • Toyota
  • Nissan
  • Honda
  • Subaru
  • The MENU element is deprecated in HTML 4.0. You should use the UL element (type="list") instead. Attributes compact SYNOPSIS: DESCRIPTION: compact The COMPACT attribute is intended to compress the appearance of a MENU list. In TV Navigator, lists are already rendered as compactly as possible, so this attribute has no visible effect. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM
    85 USAGE: ATTRIBUTES: s1 yes c3 yes content="fieldValue" history="transient" http-equiv="fieldName" initialfocus=["name" | "notme"] name="name" scheme="scheme" Overview The META element provides information about the document to the TV Navigator client and the Liberate Connect servers. The META element resides inside the HEAD element, and you can use as many META elements as necessary. Use the META element to perform the following specific tasks: • Set the initial focus of a page (INITIALFOCUS attribute) • Prevent a document from appearing in the history list (HISTORY attribute) • Prevent the document from being cached (HTTP-EQUIV attribute) • Set a time limit on caching (HTTP-EQUIV attribute) • Advise the client about the content type and character set of the document (HTTP-EQUIV attribute) • Automatically refresh the page on a defined interval (HTTP-EQUIV attribute), or redirect it to another URL to prevent screen burn-in • Assign keywords for search engines (NAME attribute) • Embed authoring, copyright, or other document-specific information (NAME attribute) Variations • TV Navigator Compact does not support the HISTORY attribute of the META element. • TV Navigator Compact supports an additional feature of the NAME attribute that should be used on the first page of broadcast content. Refer to the NAME attribute for more information. 86 CHAPTER 2: HTML REFERENCE JANUARY 2002 Attributes content SYNOPSIS: DESCRIPTION: content="fieldValue" The content attribute provides value(s) to accompany other attributes of the META element. When necessary, the fieldValue parameter can accept a list of comma-separated values. history SYNOPSIS: DESCRIPTION: history="transient" TV Navigator accepts a unique HISTORY attribute (not available in PC browsers), which has a single value of "transient": By setting the HISTORY attribute, the page is only transiently added to the history list; it’s in the list only while it’s the current page, but is removed from the list when the user leaves the page. This prevents auxiliary and peripheral pages—for example, a help page—from contaminating the user’s history list. The user will skip those pages when navigator backward or forward in the list. AVAILABILITY: Not supported in TV Navigator Compact. http-equiv SYNOPSIS: DESCRIPTION: http-equiv="fieldName" Working together, the META element’s HTTP-EQUIV and CONTENT attributes supply TV Navigator with directives that are normally contained in HTTP response headers. The directives are name-value pairs where HTTP-EQUIV provides the name and CONTENT the value. This is standard HTML. TV Navigator doesn’t define any special name-value pairs for these attributes; it simply responds to some of the standard settings that Web pages commonly use. These META attributes are useful if you cannot configure the source HTTP server (the server where your document resides) to send the desired HTTP response JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 87 headers, or if you’re not prepared to write a cgi-bin script to generate the headers. However, there are some disadvantages, including the following: • Not all browsers honor HTTP-EQUIV and CONTENT settings, and the ones that do don’t all honor the same set of directives. The set that works for TV Navigator is presented under “Client behavior.” • Servers typically don’t parse HTML, so they’re generally not affected by the META element. HTML content is intended for the client only. However, transcoded content for TV Navigator is a partial exception to this general rule. The way that these attributes may affect server behavior is discussed later, in the “Caching on the server” section. • The META element can be inserted only in HTML files, so it cannot govern how the client treats other kinds of content, such as images and JavaScript files. To include these other types of data, the source server must set an actual header. Client behavior. All but one of the HTTP-EQUIV directives that TV Navigator responds to affect whether the client will cache the requested document and, if so, for how long. These fields are especially useful while developing content— particularly if you’re repeatedly editing a page, downloading the revised version, and then editing and downloading it again. Because they can prevent TV Navigator from keeping a copy of the page, they force it to fetch a new version—the one with your latest changes—each time you reload or revisit the URL. The following table summarizes the cache-related HTTP-EQUIV and CONTENT combinations that TV Navigator supports: 88 CHAPTER 2: HTML REFERENCE JANUARY 2002 HTTP-EQUIV CONTENT Description Prevents the document from being cached. Similar to “no-cache”. Sets the number of seconds the document should remain in the cache before expiring. Indicates that the document is shared and therefore can be cached, even if it would normally not be cacheable. For example, documents that are delivered with cookies are not cached unless (a) they’re marked “public” and (b) another header indicates how long they should stay in the cache. Indicates that the document is intended for just one user and should be removed from the cache when the user changes. Prevents the document from being cached. This header is an older (HTTP 1.0) form of “cache-control: no-cache”. Sets the date when the cache for the document should expire. Indicates when the document was last modified. TV Navigator considers the age of the document when determining how long to keep it in the cache. “cache-control” “no-cache” “no-store” “max-age=seconds” “public” “cache-control” “private” (continued) “pragma” “no-cache” “expires” “last-modified” “date” “date” Documents without any of these settings, either in the META element or as HTTP headers, are not cached. Typically, the originating server supplies at least one caching directive as an HTTP header. If there are multiple directives and they are in conflict with each other, TV Navigator honors them in the following order: “cache-control: no-cache” (and its “pragma: no-cache” equivalent) “cache-control: max-age=seconds” “expires: date” “last-modified: date” JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 89 If there’s a META setting and a true header for the same directive—“expires”, for example—the META setting will override the header when the document reaches the client. You can also control the cache on the client from JavaScript. The Cache.remove() method deletes specific items from the cache. Another HTTP-EQUIV value that TV Navigator honors—one not related to caching—is “refresh”: HTTP-EQUIV CONTENT Description Sets the number of seconds separating automatic downloads of the page. For example, if seconds is “7”, TV Navigator will download the page every seven seconds, presumedly getting a slightly different version each time (provided the old version is not cached). Names the URL that should be used to refresh the document. “refresh” “seconds” “seconds;url=URL” Caching on the server. HTTP requests from the set-top box pass through a proxy server and the Liberate Transcode™ server before going out to the Internet. The response to a request retraces this route, so the Transcode server sees the response before the proxy does. As part of its transcoding operations, the Transcode server translates caching-related HTTP-EQUIV and CONTENT settings to true HTTP headers and adds them to the response. The purpose is to simplify the work of the client, so that it can just look at the HTTP headers to determine how to cache the document and not bother with the HTML. However, there’s a side effect: Because the proxy server stands between the Transcode server and the client, it will be affected by any HTTP-EQUIV fields that the Transcode server turns into true HTTP headers. This makes it possible to turn caching off on both the client and the proxy with the same HTTP-EQUIV directive. If you want to use this trick, here are some considerations to keep in mind: • Current releases of TV Navigator rely on the Transcode server to lay out HTML pages. However, in the future, on some set-top boxes, TV Navigator will be able to do the work itself. At that time, the trick will no longer work. Only the client will be affected by HTTP-EQUIV directives. 90 CHAPTER 2: HTML REFERENCE JANUARY 2002 • All proxy servers do not respond to the caching headers in the same way. If you want to prevent caching on both the proxy and the client, it’s generally safest to use an “expires” header, rather than “cache-control”, because it’s compatible with a wider range of servers. For example: The 0 in this construction indicates that the document has already expired (as would any date in the past), which should prevent it from being cached. • The document may be cached by intermediate servers before it reaches the Transcode server. For example, HTTP-EQUIV settings are unlikely to affect a Liberate parental proxy server. The best way to prevent these servers from caching the document is to have the source server set the “expires: 0” header. initialfocus SYNOPSIS: DESCRIPTION: initialfocus=["name" | "notme"] When a new page is displayed in a window, and the page has focusable elements, the system picks one of the elements to have the initial focus—it chooses an element to mark with the focus rectangle. It’s often a good idea to take that decision into your own hands by setting the focus in an onload() handler for the page. If you don’t use JavaScript, you can still influence the decision through the INITIALFOCUS attribute of the META element. For example: ...... The name can designate anything the user can focus on—a FORM element, an A anchor element, or a TABLE with focusable cells. The initial focus is assigned to the named element. Only one element can be in focus on-screen at a time. If documents in two or more frames each specify an initial focus, one of them will win and the others will be ignored. Similarly, if an element in one frame has the focus and another frame loads a document that specifies an initial focus, the focus won’t change. If the name assigned to INITIALFOCUS designates a table, one of its cells will be marked with the focus rectangle—typically a cell close to the upper-left corner JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 91 of the table. You can also designate a particular cell by enclosing its row and column (in that order) within parentheses. For example, the following assignment specifies the third cell in the top row: If the name assigned to INITIALFOCUS designates an anchor, it should be the source, not the destination, of a link. It’s customary to give names to A anchor elements when they’re used to mark the destination:

    Section G: Legal Ramifications

    However, the INITIALFOCUS attribute means that some link sources also need names, because those are the anchors that users will want to select and activate. For example: This has legal ramifications that you need to be aware of. This link could be assigned the initial focus as follows: You can also use the special name "notme" to indicate that nothing in a particular document, typically a document in one frame of a frameset, should receive the initial focus: The "notme" value means that the initial focus should not be located anywhere within the frame. VARIATIONS: TV Navigator Compact does not support the "notme" value. name SYNOPSIS: DESCRIPTION: name="name" The NAME attribute is used with the CONTENT attribute to provide additional, hidden information about the document. These name-value pairs are not used directly by TV Navigator, but may be used by search engines or for archiving and identification purposes. For example, the following set of META declarations appears at the top of the Liberate corporate Web site (edited to reduce length): VARIATIONS: In TV Navigator Compact only, the first page of broadcast content should include the following meta declaration: This ensures proper content updating after power outage. scheme SYNOPSIS: DESCRIPTION: scheme="scheme" An author-defined field for META data. TV Navigator has no special use for this data.
    USAGE: ATTRIBUTES: s1 yes c3 no ... none In a typical PC browser, text surrounded by the NOBR element does not wrap on the screen. If the line of text is wider than the screen, the user must scroll horizontally to see all the text. In TV Navigator, however, horizontal scrolling is not possible. Therefore, NOBR elements are usually ignored. There are two exceptions: • Text that has been marked with WBR tags. Refer to WBR for more information. • Adjacent IMG elements that are surrounded by a NOBR element. The remainder of this NOBR description applies to this situation. Use NOBR elements to keep a group of images on the same line. Images that display side-by-side in a computer-oriented browser don’t necessarily appear side-by-side on TV. Wherever possible, TV Navigator splits groups of images, displaying them on separate lines, rather than shrink individual images. JANUARY 2002 HTML REFERENCE, LIBERATE TV PLATFORM 93 Figure 18 shows the differences between how a computer browser handles sequential images in HTML and how TV Navigator handles them—and then how to fix what goes wrong. Web page with two GIF images placed side-by-side, displayed in a computer browser. The same page displayed in TV Navigator. The images break on separate lines. Two GIF images Fix the page by bracketing the images with a NOBR element. Figure 18: Scaling Adjacent Images with the NOBR Element In TV Navigator, the two images are too large to appear on the same line, so they appear one above the other. (Even in a PC browser, with a narrow window, these images might also display one on top of the other.) To rectify this situation, bracket the two images with a NOBR element. This forces TV Navigator to scale the images so they fit on the same line. If the images were separated by a SPACER, the SPACER would also be scaled. 94 CHAPTER 2: HTML REFERENCE JANUARY 2002 Variations TV Navigator Compact does not support the NOBR element. USAGE: ATTRIBUTES: s1 no c3 no <noframes>... none The NOFRAMES element encloses content that will be displayed by browsers incapable of displaying frames. This element is ignored by TV Navigator.