Download Adobe GoLive 4.0 User Guide

Transcript
A Brief Introduction to HTML
17
Tags can also be nested to assign multiple formats:
<B><I>This is text set in boldface and italics.</I></B>
Unlike word processors and DTP programs, however, the final appearance of an HTML page is not based on specific formatting you
apply. Rather than assigning an exact size and font, you specify the
function of the text within the document—for example, that it
should be displayed as a first-level header (<H1>). There is a simple
reason for this: Web pages are supposed to display evenly on any
computer platform and any monitor size.
Other than a printed brochure, which will use the font size(s) selected in the DTP program, you have no way of knowing which hardware and software your audience will use. Text formatted in 14 point
size may look good on a 14-inch monitor but is definitely oversized
for a PDA (Personal Digital Assistant) display. HTML solves that problem by assigning a structure to a text and letting hardware and software interpret it as the user specifies.
Task: Use a simple word processor to hand-code the examples
given above, save the resulting file with an .html extension,
then drag them at the program icon of the browser for previewing.
Type the examples given above anywhere in the section enclosed by
the two <BODY>…</BODY> tags in the hand-coded example page
you have created in the previous step. Save the page, then drag it at
the program icon of the browser to preview the styles.
HTML Tags Used for
Formatting Text
Header <H1>…</H1> through <H6>…</H6>
Headers are displayed in a larger font size and frequently in boldface
to make them stand out from the body text. The digits 1 through 6
represent the different levels in the hierarchy: H1 is a first-level
header, H2 a second-level sub-header, H3 a third-level sub-header,
and so on.
Font Styles
Font style options include Bold (<B>), Italics (<I>), and Underline
(<U>), as well as Teletype (<TT>), a monospaced style. Additional logical styles are Strong <STRONG> and Emphasis <EM>,