 <p>The destination anchor for a link in an HTML page may be any element with an <code>id</code> attribute. See <a href="http://www.w3.org/TR/html401/struct/links.html" rel="nofollow noreferrer">Links</a> on the W3C site. Here's a quote from the relevant section:</p> <blockquote> <p>Destination anchors in HTML documents may be specified either by the A element (naming it with the name attribute), or by any other element (naming with the id attribute).</p> </blockquote> <p>Markdown treats HTML as HTML (see <a href="http://daringfireball.net/projects/markdown/syntax#html" rel="nofollow noreferrer">Inline HTML</a>), so you can create your fragment identifiers from any element you like. If, for example, you want to link to a paragraph, just wrap the paragraph in a paragraph tag, and include an id:</p> <pre><code>&lt;p id="mylink"&gt;Lorem ipsum dolor sit amet...&lt;/p&gt; </code></pre> <p>Then use your standard Markdown <code>[My link](#mylink)</code> to create a link to fragment anchor. This will help to keep your HTML clean, as there's no need for extra markup.</p>