Linking to external resource dependencies
The link element specifies where the browser can find additional resources needed to properly render the document.
The most common use for link elements is to define external stylesheets.
Other uses include browser preload instructions and favicons.
- Use sourceref syntax to define the external resource URL
iconreference to the website's favicon
stylesheetreference to a CSS stylesheet
prefetchreference to a resource to be prefetched by the browser
preloadreference to a resource to be preloaded by the browser
- Identifies the base MIME-type of a preload resource
audio, document, embed, fetch, font, image, object, script, style, track, worker, video
- Added to preload resources from a different domain
@mediarule to apply to the stylesheet, for example
- The style element is used to declare CSS rules that will be applied to the document.
- The head element comprises subordinate elements for the purpose of describing the document, its context, and its dependencies.