Entering static text, Entering static text 21 – Apple WebObjects 3.5 User Manual

Page 21

Advertising
background image

Creating the Page’s Content

21

Structures .

Use these buttons to create paragraphs, lists, images, and

other static HTML elements. This setting is the default.

Tables .

Use these buttons to create and manipulate HTML table

elements.

Dynamic form elements

.

Use these buttons to create form elements in

which users enter information. WebObjects gives your application
access to the data entered by users by allowing you to associate, or

bind

,

these elements to variables in your application.

Other WebObjects

.

Use these buttons to create other dynamic elements,

which you can bind to variables and methods in your program to control
how they are displayed. Some of these (such as hyperlinks) have direct
HTML equivalents. Others are

abstract dynamic elements

, such as

repetitions and conditionals, which determine how many times an
element is displayed or whether it is displayed at all.

Entering Static Text

The simplest way to add text to a page is to type it directly into the
component’s window. To demonstrate this, add a title for the GuestBook’s
page.

1. Type

My Guest Book

and press Enter.

The text is displayed at the insertion point, in this case at the
beginning of the page.

2. Select the text you just typed.

3. Click the

button in the toolbar. This converts the text to a heading

element and displays it in bold.

4. From the

pop-up list in the toolbar, choose center justification.

The toolbar also has buttons that allow you to apply text styles such as
bold, underline, and italics.

HTML provides several levels of headings. Typically, a document’s main
title should be displayed as an

<H1>

heading. To change the level, you use

the Inspector window. You’ll use this window frequently throughout these
tutorials.

Advertising