The href attribute tells a hyperlink where to go when someone clicks it. Inside an opening <a> tag, it holds the destination URL; the link’s visible caption sits between the opening and closing tags. section 3.5.2
Use href to create a useful link in three steps:
- Choose the destination page and copy its permalink. section 3.5.2
- Place that URL after href= in the opening <a> tag, using straight quotation marks. section 3.5.2
- Add a readable link caption, save the page, and test the link on the site’s frontend. section 3.5.2
Link to a page section
To send visitors directly to a paragraph rather than the top of a page, add the page URL followed by # and that paragraph’s ID. The ID itself does not include the #. section 3.5.2
<a href="https://www.timetestedrecipes.com /mexican-specialties/#mextarget"> Visit the second paragraph in the Mexican recipes page</a>
This example combines a page permalink and #mextarget in href to jump directly to a named location. section 3.5.2


