HTML LINK

Fazzey's world



HTML Link

  • HTML link is a Hyperlinks.
  • An HTML link can used to link another web page in a document. when click the link it will jump to other web page. It is easy way for visit a kinds of web pages.
  • Web developers can link the text, images, or other type of web pages. Link are specified in HTML using <a>...</a> tags.
  • The href attribute was used to specify the destination of an address. It is know as hypertext processor.
  • The text link is used when user can click the link. it can be visible part of a link.

Syntax:

<a href="">Text about link</a>


Example:

 
  <!DOCTYPE html>
  <html>
  <head>
  <title>HTML</title>
  </head>
  <body>
  <h1>HTML Link</h1>
  <p>GOCOURSE</p>
  <a href ="https://www.gocourse.in/">Click Here</a>
  </body>
  </html>


Output:




Button Link:

The <button> tag in HTML is used to defines the link for web pages in a button.
A <button> tag was used for submit the documents.

Syntax:

<button type= "button">

Example:

 
  <!DOCTYPE html>
  <html>
  <body>
  <h1>HTML Button link</h1>
  <p>Click the button for HTML link page</p>
  <button onclick ="document.location = 'https://www.gocourse.in/2023/08/html-links.html'">HTML</button>
  </body>
  </html>


Output:







More topic in HTML

Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send