Web Design

(Nancy Kaufman) #1

33


CHAPTER

Getting Started with HTML 2


I have seen pages that use <b> for bold. What is
the difference?
The <strong> tag is used to add strong emphasis
to a word, whereas the <b> tag means “bold.”
Visually they are identical, but <strong> provides
more semantic meaning — you are saying that the
word is bold because you are emphasizing it, rather
than merely providing a formatting instruction. The
same is true with <em>, for emphasis, and <i>, for
italic.

Are there other tags besides <i> to italicize text?
Yes. In fact, there are quite a few, but all have
specific semantic meanings. For example, <cite>
renders its text in italic, but logically marks the text
as a citation. The <address> tag, used for
denoting an address on a page, also renders in
italic.

● When viewed in a browser,
the formatted text is bold
or italic.

4 Before a word you want to
italicize, type .


5 After the word, type .


4 5


TIPS

Free download pdf