The anchor tag <a> is used to create links within HTML documents or to other documents. Anchors can link to other pages using the href attribute, specifying the URL. They can also link to internal sections of a page using the name attribute. Common examples include linking to another website, bookmarking a section on a page, or jumping to the top of a page. Properly formatted anchor tags require a closing tag and attributes like href or name as needed.