Header Ads Widget

ad728

HTML Link

HTML Link

Bookmarks with ID and Links

Bookmarks with ID and Links

Bookmarks with ID and Links

HTML id are used to allow readers to jump to specific parts of a Web page.

Bookmarks can be useful if your webpage is very long.

To make a Bookmarks, you must first create the bookmark, and then add a link to it.

When the link is clicked, the page will scroll to the location with the bookmark.

Syntax

<!DOCTYPE html>
<html>
   <body>
   
  <a href="#C4">Jump to the bookmark</a>

  </body>
</html>
</html>
HTML Email Tag

HTML Email Tag

Target Attribute

HTML <a> tag provides you option to specify an email address to send an email. While using <a> tag as an email tag, you will use mailto: email address along with href attribute. Following is the syntax of using mailto instead of using http.

Syntax

   
<a href = "mailto: abc@example.com">Send Email</a>

HTML Links

HTML Links

HTML Links

Hyperlinks are defined with the HTMLa tag

Syntax

 
    <a href="url">link text</a>
    

Example

<!DOCTYPE html>
<html>
   <body>
   
  <a href="www.risingquotes.com">Visit this great Quote site
  </a>

  </body>
</html>

Local Links

Local Links

Local Links

The example before this used an absolute URL (a full web address).

A local link (link to the same web site) is specified with a relative URL (without https://www....).

Example

<!DOCTYPE html>
<html>
   <body>
   
  <a href="img/html_images.jpg">One of the Quote Image
  </a>

  </body>
</html>

Target Attribute Links

Target Attribute Links

Target Attribute

The target attribute specifies where to open the linked document.

The target attribute can have one of the following values:

Sr.No Option & Description
1

_blank

Opens the linked document in a new window or tab.

2

_self

Opens the linked document in the same frame.

3

_parent

Opens the linked document in the parent frame.

4

_top

Opens the linked document in the full body of the window.

5

targetframe

Opens the linked document in a named targetframe.

Example

<!DOCTYPE html>
<html>
   <body>
  <a> Click any of the following links </a>
  <a href="www.risingquotes.com" target = "_blank">
  Best Quote Website </a>
  <a href="www.risingquotes.com" target = "_self">
  Best Quote Website </a>
  <a href="www.risingquotes.com" target = "_parent">
  Best Quote Website </a>
  <a href="www.risingquotes.com" target = "_top">
  Best Quote Website </a>

  </body>
</html>

0 Comments: