Graphics Programs Reference
In-Depth Information
Figure 3-33
Common HTML tags for text (continued)
Tag Name
Tag Description
Tag Sample
Browser Display
Div
Divides a page into a series of blocks; for exam-
ple, applying the Align attribute in the Property
inspector sometimes creates a div tag with a
value of left, center, or right to align the text.
<div align=”right”> Some text, a
paragraph, or other element </div>
Some text, a
paragraph, or other
element
Pre
Preserves the exact formatting of a block of text
when it is displayed in a Web page by rendering
text in a fixed pitch font and by preserving the
associated spacing with white space characters.
For example, a poem surrounded by pre tags
would maintain indents, multiple spaces between
words, and new lines that would otherwise be
discarded when it was rendered in a browser.
<pre> Some
preformatted text
might
look like
this. </pre>
Some
preformatted text
might
look like
this.
Break
Forces a line break on a page. Used singly with-
out a closing tag because it does not surround
text and add attributes. Add by pressing the
Shift+Enter keys or clicking the Line Break but-
ton in the Characters list in the Text category of
the Insert panel.
Some <br /> text
Some
text
Nonbreaking
space
Inserts a space that will be displayed by the
browser. (Browsers will display only one regular
space between items in a Web page, regardless
of how many regular spaces are entered.) Use
nonbreaking spaces to add more than one visible
space between items or to ensure that a line does
not break between items. The nonbreaking space
is a special character (not a tag) that is often
used like a tag to format text. Insert by pressing
the Ctrl+Shift+Spacebar keys or by clicking the
Non-Breaking Space button in the Characters list
in the Text category of the Insert panel.
Some &nbsp;&nbsp;&nbsp; text
Some text
Text at base font
size
Basefont
(deprecated)
Changes the attributes of the default font on
which all the text contained in the Web page is
based and overrides the default font settings in
the user's browser. The basefont tag is placed
in the head or body of the page and is used with
the size attribute to change the size of the base
font for the page. (When an absolute font size
is used as the size value in the font tag, it over-
rides the basefont tag. When a relative font size
is used as the size value in the font tag, it adds or
subtracts from the size value you designate in the
basefont tag.) This tag is used in conjunction with
the font tag and does not apply to CSS styles.
<basefont size=”6”> Text at base
font size
You will examine the code for HTML tags that apply to text in the home page. You will
also use the Reference panel to gather additional information about some of the tags.
To examine the code for HTML tags that apply to text on the home page:
1. On the Document toolbar, click the Code button, and then on the Dynamic
Related Files toolbar, click the Source Code button. The home page appears in
Code view.
 
Search WWH ::




Custom Search