<html>
<head>
<style>
#grad1 {
height: 200px;
background-color: red; /* For browsers that do not support gradients */
background-image: linear-gradient(to bottom right, red, yellow); /* Standard syntax (must be last) */
}
</style>
</head>
<body>
<h1>Linear Gradient - Diagonal</h1>
<p>This linear gradient starts at top left. It starts red, transitioning to yellow:</p>
<div id="grad1"></div>
<p><strong>Note:</strong> Internet Explorer 9 and earlier versions do not support gradients.</p>
</body>
<!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss3_gradient-linear_diagonal by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:03:56 GMT -->
</html>