Publish in HTML Tutorial el 23/05/2025 14:41
The <a> (anchor) element is one of the most commonly used elements in HTML. It defines a hyperlink that links one page to another, either within the same website or externally. The most common attribute used with <a> is href, which specifies the URL of the page the link goes to. Additional attributes like target, download, and event handlers like onclick allow further customization.

Here’s how the anchor tag is typically defined:
And this is how it appears when rendered:
This example shows a simple link to an external website.
This example demonstrates using the download attribute to trigger a file download.
This example uses an onclick event to trigger an alert using JavaScript.
This example prevents the default link behavior and logs a message to the console.
This example creates an internal page anchor using an ID.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...