Embedding, multimedia, data, and other content-related features.
srcset
sizes
fetchpriority
blocking="render"
<model>
controlslist
Load certain resources only when needed.
<img src="picture.jpg" loading="lazy" /> <iframe src="supplementary.html" loading="lazy"></iframe>
Attributes that allow providing several source images with hints to help the browser pick the right one.
<img srcset="fairy-med.jpg 480w, fairy-large.jpg 800w" sizes="(max-width: 600px) 480px, 800px" src="fairy-large.jpg" alt="Elva dressed as a fairy" />
Begin work on certain resources early to improve performance. Syntax: <link rel="pre* | dns-prefetch | modulepreload">.
<link rel="pre* | dns-prefetch | modulepreload">
<link rel="preload" href="picture.jpg" /> <link rel="dns-prefetch" href="https://fonts.googleapis.com/" />
A set of directives from a website to a browser, that helps to detect and mitigate XSS attacks.
Content-Security-Policy: script-src 'self';
Allows specifying a hint to help the browser prioritize fetching various resources.
<img src="logo.svg" fetchpriority="high" />
Block rendering (but not parsing) until certain resources have been loaded. Available on <link>, <script> and <style>.
<link>
<script>
<style>
<script blocking="render" async src="async-script.js"></script>
Allows embedding 3D models in HTML with built-in controls.
<model src="3d-assets/car.glb"></model>
Prevent certain controls from appearing in the toolbar of a media element.
<video src="fun.mp4" controlslist="nodownload"></video>
<math>
<canvas>
<picture>
<svg>
<object>
<iframe>
<audio>
<video>
crossorigin
allow
referrerpolicy
sandbox
nonce
integrity
<time>
<data>
itemprop
itemscope
property
typeof
<script type="application/ld+json">
lang
dir
<ruby>
<rp>
<rt>
Intl.DateTimeFormat
Intl.Collator
Intl.ListFormat
Intl.NumberFormat
Intl.MessageFormat
Intl.PluralRules
Intl.RelativeTimeFormat
Intl.Segmenter
Intl.LocaleMatcher
Think of embedding (multimedia, iframes, SVG, etc), machine-readable data, internationalization & localization, security & privacy, performance etc. Missing features, browser incompatibilities, and other problems you face are all fair game.