O'Reilly logo

Pro HTML5 Performance by Mike Jones, Jay Bryant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

C H A P T E R  11

images

Link Control

You might be thinking, do we really need a control for a link? Isn’t it just easier to write a single line of HTML to take care of this task? While we’re fans of not using something complex when something simple will work, we also know we can gain significant benefits by making a link control. For one thing, we can improve the site’s usability. For another, we can greatly improve developer performance (we often call it developer velocity) for ourselves and for our teammates.

As with all of our controls, we create a function that we can then call from within the HTML. That function inserts the proper HTML for a link. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required