Creating Targets in a Page

Before you can begin linking to targets, you must insert those targets in the page. The following example shows how to insert targets in a page in Composer. Note that you can choose from two basic methods: Create a target that marks a spot, and create a target that marks certain text.

Which method should you use and when? It doesn't make much difference.

Attaching targets to text makes the most sense when each section where you want to put a target begins with a unique heading, as in a FAQ. When that's the case, attaching targets to text saves you the extra step of having to name your targets.

However, the text must be ...

Get Sams Teach Yourself Internet and Web Basics All in One 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.