- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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>
Advertisements