INFORMATION ABOUT INTERNAL AND EXTERNAL LINK IN HTML

 LINKS

LINK: links are the structures which connects us to the web of internet 
links are like vines which are called blood carrying vessels in our body links also act as the same 
links connect us to the different parts of the internet and world wide web 
uncountable links are generated everyday its so much in large quantity that we cannot keep the track of how many links are generated every day.


In html there are two types of links 

1) internal links.

2) external links.


Internal links 

An internal link is a type of hyperlink on a web page to another page or resource, such as an image or document, on the same website or domain. 

External links

An external link is a link which helps us to reach to another website of the another domain and we can switch form one website to another.

Href tag

The href attribute specifies the URL of the page the link goes to.

Tip: You can use href="#top" or href="#" to link to the top of the current page!

If the href attribute is not present, the <a> tag is not a hyperlink.

Syntax

<a href="URL">

Attribute Values

ValueDescription
URLThe URL of the link.

Possible values:

  • An absolute URL - points to another web site (like href="http://www.example.com/default.htm")
  • A relative URL - points to a file within a web site (like href="default.htm")
  • Link to an element with a specified id within the page (like href="#section2")
  • Other protocols (like https://, ftp://, mailto:, file:, etc..)
  • A script (like href="javascript:alert('Hello');")


Comments

  1. It was very helpful to me as a beginner I can say only one word that is thanks

    ReplyDelete

Post a Comment

If you have any doubts let me know in comments

Popular posts from this blog

PROG9

ADDING TABLE IN HTML

PROG8