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. ...

Get Pro HTML5 Performance now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.