You are here : htmlHTML 5style

<style> - HTML 5

The <style> tag is used to define style information for an HTML document.

Inside the <style> element you specify how HTML elements should render in a browser.

Each HTML document can contain multiple <style> tags.


Syntax

    <html>	<head>	<style>	h1 {color:red;}	p {color:blue;}	</style>	</head>	<body>	<h1>A heading</h1>	<p>A paragraph.</p>	</body>	</html>


Example

    <html>	<head>	<style>	h1 {color:red;}	p {color:blue;}	</style>	</head>	<body>	<h1>A heading</h1>	<p>A paragraph.</p>	</body>	</html>


Output / Return Value


Limitations


Alternatives / See Also


Reference