An id attribute gives an HTML element a name so a hyperlink can target that exact spot instead of only opening the top of a page. Add it inside an element’s opening tag, such as a paragraph tag. section 3.5.2
Link to a paragraph
Mark the destination with <p id="mextarget">, then add #mextarget to the page permalink in the link address. Selecting that link opens the page directly at the marked paragraph. section 3.5.2
To create an in-page destination:
- Place an id attribute at the start of the target element and choose its name. section 3.5.2
- Save the page, copy its permalink, and append # followed by the id name to the link URL. section 3.5.2
- Test the link on the site to confirm it jumps to the intended paragraph or heading. section 3.5.2
Figure 3.7 A target ID is placed at the start of a target paragraph.
See the target ID positioned in a paragraph’s opening tag. section 3.5.2

