Html5 Link tag

In the html5 <link> tag is used to identify a link to another style sheet page and which we will use inside of <head> tag of the html page and commonly which is use to linking external style sheet. if you need to give hyperlink for external html page use <a> tag because in the link tag will not support <link> tag.

Syntax:

<link rel="" >

Example Code

<html>
<head>
  <link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body>
  <h1>What Is Html ? </h1>
  <p>
    HTML5 is a Hyper Text Markup Language version 5 . Which is using to structuring and presenting content for the internet or world wide web.
  </p>
</body>
</html>

Out Put:



What Is Html ?

HTML5 is a Hyper Text Markup Language version 5 . Which is using to structuring and presenting content for the internet or world wide web.

In the above example has been applied green color for <h1> tag and red color for <p> tag from external style sheet.





Content