Html Style Tag


Prev Tutorial Next Tutorial

Html Style Tag

<style> tag are used for define CSS styles required for the page. It must be inside the <head> tag.

Syntax

<!DOCTYPE>
<html>
<style>
.para
{
color:red;
}
<style>
<body>
<p class="para">This is my first Html code.</p>
</body>
</html>

Result

This is my first Html code.

Browser supported

Element
<style>YesYesYesYesYes

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements