Web Design

(Nancy Kaufman) #1

47


CHAPTER

Getting Started with HTML 2


How long can the title text be?
In theory, you can have as much text as you want in
the title, but you should try to keep it short and
to-the-point. Your users want to be able to glance
at it and see where they will go when they click,
rather than needing to read a lot.

Can I add the tool tip to any other elements?
Yes. Technically, HTML allows for the title
attribute to appear in any element, and browsers
display the tool tip for any title. Tool tips are rarely
used for elements other than links because the user
is not likely to mouse over other items on the page,
but using them is still allowed.

● When viewed in a browser,
the link appears as it did
before. When you position
your mouse pointer over the
link without clicking, the title
text appears as a tool tip.

3 Type title=”?”, replacing
? with appropriate text
describing the link’s target
page.


3


TIPS

Free download pdf