<!DOCTYPE html>
<html>
<head>
<title>Modernizr Example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
</head>
<body>
<div id="feature-check"></div>
<script>
if (Modernizr.canvas) {
document.getElementById('feature-check').textContent = 'Canvas is supported!';
} else {
document.getElementById('feature-check').textContent = 'Canvas is not supported.';
}
</script>
</body>
</html>