HTML Dog

Skip to navigation

HTML Tag: style

Used to define CSS at a page-level (as opposed to an external CSS file). A style element must appear inside the head element.

Required Attributes

Optional Attributes

Example


<style type="text/css">
	body {
		color: red;
		background-color: yellow;
		font-size: 80%;
	}
	p {
		line-height: 1.5em;
	}
</style>