Horje
How to create The HTML <link> Element in <head> | HTML - The Head Element Code
How to create The HTML <link> Element in <head>

The <link> element defines the relationship between the current document and an external resource.


Full Example of The HTML <link> Element in <head>

The <link> tag is most often used to link to external style sheets:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
  <link rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
  
</body>
</html>

Output should be:

Full Example of The HTML <link> Element in <head>



Read Full::
HTML - The Head Element Code
Category:
HTML Code
Sub Category:
HTML - The Head Element Code
Uploaded:
9 months ago
Uploaded by:
Admin
Views:
1

Related Articles
What is HTML - The Head Element HTML - The Head Element Code
How to create The HTML <head> Element HTML - The Head Element Code
How to create The HTML <title> Element in <Head> HTML - The Head Element Code
How to create The HTML <style> Element in <head> HTML - The Head Element Code
How to create The HTML <link> Element in <head> HTML - The Head Element Code
How to create The HTML <meta> Element in Head HTML - The Head Element Code
What is The HTML Viewport in Head HTML - The Head Element Code
How to use HTML Viewport in Head HTML - The Head Element Code
How to create The HTML <script> Element in head HTML - The Head Element Code
How to create The HTML <base> Element in head HTML - The Head Element Code

Single Articles
Full Example of The HTML <link> Element in <head>

Share on: