html link tag attributes code example
Example 1: html link tag
<head>
<link rel="stylesheet" type="text/css" href="theme.css">
</head>
Example 2: how to use link tag in html
<!DOCTYPE html>
<html>
<head>
<title>HTML link Tag</title>
<link rel = "stylesheet" href = "stylenew.css">
</head>
<body>
<div id = "contentinfo">
<p>Welcome to our website. We provide tutorials on various subjects.</p>
</div>
</body>
</html>
Example 3: html link tag
<link rel="stylesheet" href="./styles.css">