Add new link to head javascript
To add a new link to the head of your HTML document, you can use the following code:
<head>
<link rel="stylesheet" type="text/css" href="new-link.css">
</head>
This will add a new link to the head of your HTML document, pointing to a CSS file named new-link.css
.
If you want to add a JavaScript file instead, you can use the following code:
<head>
<script src="new-link.js" type="text/javascript"></script>
</head>
This will add a new script tag to the head of your HTML document, pointing to a JavaScript file named new-link.js
.
You can also add multiple links to the head of your HTML document by separating them with commas:
<head>
<link rel="stylesheet" type="text/css" href="link1.css">
<link rel="stylesheet" type="text/css" href="link2.css">
<script src="script1.js" type="text/javascript"></script>
<script src="script2.js" type="text/javascript"></script>
</head>
Make sure to replace new-link.css
or new-link.js
with the actual name and path of your file.