References
Collection of references for web development.
HTML as attribute
Description
Specifies the type of content for the link, can only be used if the content is being preloaded.
Values
| Value |
| audio |
| document |
| embed |
|
fetch |
| image |
| object |
| script |
| style |
| track |
| worker |
| video |
Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Preload Example</title>
<link rel="preload" href="style.css" as="style">
</head>
<body>
<p>Page content...</p>
</body>
</html>
<!-->
<!DOCTYPE>
<a>
<abbr>
<address>
<area>
<article>
<aside>
<audio>
<b>
<base>
<bdi>
<bdo>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<cite>
<code>
<col>
<colgroup>
<data>
<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<footer>
<form>
<h1>
<h2>
<h3>
<h4>
<h5>
<h6>
<head>
<header>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<meta>
<meter>
<nav>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<picture>
<pre>
<progress>
<q>
<rp>
<rt>
<rtc>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>