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

<h1>A heading</h1>
<p>A paragraph.</p>

</body>
</html>

Definition and Usage

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.


Leave a Reply


SIGN INTO YOUR ACCOUNT CREATE NEW ACCOUNT

Your privacy is important to us and we will never rent or sell your information.

 
×
CREATE ACCOUNT ALREADY HAVE AN ACCOUNT?

 
×
FORGOT YOUR DETAILS?
×

Go up