Href Attribute Example in HTML




  • HTML links are the Super Highway of the Internet. 
  • It is not wrong to say. Because only through Hyperlinks, we are able to access the information (information) available on WWW - World Wide Web.
  • In any web page, a link can be attached to the text, image and other HTML object.
  • Generally the color of the link is blue but you can change its color with the help of HTML and CSS. 
  • When a link is attached to any text, its color becomes blue and underline as well, but nowadays the underline is removed from all the websites so that the website looks good.
  • Anchor Element is used to create HTML Link. 
  • Link is defined by Opening <a> Tag. Only with Anchor Tag can we create a link; When we know about HTML Link Syntax. 
  • So let's first know Link Syntax?

The following HTML link is given to Syntax


<a href="URL"> Examples</a>


href.html

<!-- Codes With Sunny -->
<html>
  <head>
    <title>href Attribute Example</title>
  </head>
  <body>
    <h1>href Attribute Example</h1>
      <p>
        <a href="https://codeswithsunny.blogspot.com/">These are Codes With Sunny Blog</a> <br /><br />
        Welcome to the official Blog of Codes With Suny.<br /> 
        We have a Collection of All Programming Languages Here and all types Exampls.<br /> 
        We are Provide Many Laguages Source Code.
  </body>
</html>

OUTPUT