04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Head</strong> <strong>First</strong>: Hello target, we’re so glad you<br />

could join us.<br />

Target Attribute: I’m glad to be here. It’s<br />

nice to know you’re still interested in hearing<br />

about me.<br />

<strong>Head</strong> <strong>First</strong>: Why do you say that?<br />

Target: Well, to be honest, I’m not as popular<br />

as I used to be.<br />

<strong>Head</strong> <strong>First</strong>: Why do you think that is?<br />

The Target Attribute Exposed<br />

This week’s interview:<br />

Using target considered bad?<br />

Target: I think it’s because users want to be<br />

in control of when a window opens. They<br />

don’t always like new windows popping open at<br />

unexpected times.<br />

<strong>Head</strong> <strong>First</strong>: Well, it can be very confusing<br />

– we’ve had complaints from people who end<br />

up <strong>with</strong> so many windows on their screens, they<br />

can’t find the original page.<br />

Target: But it’s not like it’s difficult to get rid of<br />

the windows... just click on the little close button.<br />

What’s so hard about that?!<br />

<strong>Head</strong> <strong>First</strong>: True, but if users don’t know<br />

a new window has opened then they can<br />

get confused. Sometimes the new window<br />

completely covers the old window and it’s hard<br />

to tell what’s happening. That can be confusing<br />

for anyone, but especially for someone <strong>with</strong> a<br />

visual impairment.<br />

Target: Oh, I never thought of that.<br />

<strong>Head</strong> <strong>First</strong>: Well, think about it: if someone’s<br />

got their browser window magnified, and a<br />

whole new window opens on top of the one<br />

getting connected<br />

they’re reading, it can be very confusing for<br />

them. It’s hard to tell what’s going on when<br />

you’re not looking at the whole screen at once.<br />

Target: Yeah I suppose it would be. It’s<br />

probably difficult for using screen readers, too.<br />

<strong>Head</strong> <strong>First</strong>: Yup. Some screen readers play<br />

a sound when a new window opens, but others<br />

just ignore the new window completely, or else<br />

they jump right to the new window immediately.<br />

Either way, it’s gotta be confusing for someone<br />

who can’t see what’s going on. And of course,<br />

since the page is in a whole new window, there’s<br />

no way to use the back button to get back to the<br />

original window.<br />

Target: [Sigh] I’m starting to see why I’m not<br />

as popular as I used to be.<br />

<strong>Head</strong> <strong>First</strong>: Don’t get too depressed; there are<br />

times when it’s nice to have a new window open,<br />

right?<br />

Target: Yes, I always thought having those little<br />

informational windows for “extra information”<br />

was handy, and I’m especially proud when<br />

people use me to open large versions of images.<br />

That way, the user can view the large image and<br />

then go right back to the main page.<br />

<strong>Head</strong> <strong>First</strong>: Okay, see, you do come in handy<br />

at times. We’ve just got to remember to use you<br />

when it’s appropriate, but to keep in mind those<br />

people who might be visually impaired and not<br />

overuse you.<br />

Target: Right!<br />

you are here 159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!