files/en-us/web/api/url_fragment_text_directives/index.md
{{DefaultAPISidebar("URL Fragment Text Directives")}}
The URL fragment text directives API allows web apps to interact with text fragments in the URL. Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to annotate it with an ID, using a particular syntax in the URL fragment.
FragmentDirective object for the current document. Currently only used for feature detection.{{Specifications}}
{{Compat}}