CHAPTER 7

Adding Links

Are you ready to start adding links to your web pages? This chapter shows you how to create links in your HTML5 documents to allow users to jump to other websites or to other pages within your own site. You learn how to add e-mail links and control the appearance of links. You also get an introduction to URLs, which are the web addresses that define the destinations of your links. Links are created using <a> "tags in combination with the href attribute.

image

Understanding Links

Understanding URLs

Link to Another Page

Open a New Window with a Link

Link to an Area on the Same Page

Link to Another File Type

Link to an E-Mail Address ...

Get Teach Yourself Visually™ HTML5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.