HTML Hyperlinks
The <a> tag is used for hyperlinks. Hyperlinks are used to move from one page to another. When you hover the mouse over a hyperlink, the cursor changes to a hand symbol.
Absolute Path:
https://myschoolhouse.in/home
Relative Path:
page/home.html
Example
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
      <a href="/page/home.html">Home </a>
</body>
</html>
                
            The Target Attribute
The target attribute is used to open the linked page in a new tab. The "_blank" value is provided within the target attribute.
- _blank Helps open a new tab.
- _top helps to open a complete tab.
Example
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
      <a href="/page/home.html" target="_blank"> Home </a>
</body>
</html>
                
             
        
