<h2 style="color: white; background-color: black;">
    style Attribute
</h2>
<p style="color: gray;">
    This means applying styles only to the element by using the style attribute on the element you want to style with CSS.
</p>
Rendered Output
<h2 style="color: white; background-color: black;">
    style Attribute
</h2>

<!-- Or, the semicolon (;) after the last declaration can be omitted. -->
<h2 style="color: white; background-color: black">
    style Attribute
</h2>
<h2 style="color: gray;">
    style Attribute
</h2>

<!-- Or, the semicolon (;) after the last declaration can be omitted. -->
<p style="color: gray">
    style Attribute
</p>
<h2 style="div {color: gray;}">
    style Attribute
</h2>