Menu
The style
tag declares CSS styles for a document.
Specify how HTML elements should be rendered in the browser using CSS inside the <style>
tag.
<html>
<head>
<style>
h1 {color:blue;}
p {color:red;}
</style>
</head>
<body>
<h1>This heading is blue</h1>
<p>This paragraph is red.</p>
</body>
</html>
media
Used to define the media/device for which the resource is optimized..
type
Defines the media type of the <style>
tag.
Have a code example of <style>
? Submit a codepen.io demo and we'll showcase it here ↴