I am trying to dynamically load CSS links in <link>
tag with JavaScript.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="#" class="js-load-css">
</head>
<body>
<h1>I am formatted with a linked style sheet</h1>
<p>Me too!</p>
</body>
</html>
Two questions here:
1) Is having empty href
attribute with <link>
Ok?
2) Is there any other tag that would better suite in this situation?