
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to specify the URL of the page the link goes to in HTML?
Use the href attribute to specify the URL of the page the link goes to in HTML.
Example
You can try to run the following code to implement href attribute −
<!DOCTYPE html> <html> <head> <title>HTML href attribute</title> </head> <body> <figure><img src = "https://www.tutorialspoint.com/videotutorials/images/tutorial_library_home.jpg"/> <figcaption>Tutorials Point Library of Tutorials</figcaption> </figure> </body> </html>
- Related Articles
- How to specify the URL of the image to use in different situations in HTML?
- How to specify the HTML content of the page to show in the <iframe> in HTML?
- How to specify the URL of the resource to be used by the object in HTML?
- How to link jQuery in HTML page?
- How to link pages using absolute URL in HTML?
- How to link pages using relative URL in HTML?
- How to use the tag to define the base URL for an HTML page?
- How to specify that the element should automatically get focus when the page loads in HTML?
- How to specify that an option should be pre-selected when the page loads in HTML?
- How to specify that an element should be pre-selected when the page loads in HTML?
- How to specify if and how the author thinks the audio/video should be loaded when the page loads in HTML?
- How to specify the kind of text track in HTML?
- How to set the URL of the media file in HTML?
- How to use Python Regular expression to extract URL from an HTML link?
- How to get the title and URL of the page in Selenium with python?

Advertisements