HTML style Tag

The <style> tag is used to represents the style of the content in HTML document.

Example of Code

<!DOCTYPE html>
<html lang="en">
    <title>Example of HTML style tag</title>
    <style type="text/css">
        h1 { color: #ff0000; }
        p { color: #00ff00; }
    <h1>This is a heading</h1>
    <p>This is a paragraph.</p>


    Example of HTML style tag       

This is a heading


This is a paragraph.