Inline styling is useful for applying a unique style to one HTML element, by using the style attribute, which is written as:
HTML file: | Displayed by browser: |
---|---|
<h2>This is the default Black Heading</h2>
<h2 style="color:blue">This is a Blue Heading</h2> |
This is the default Black HeadingThis is a Blue Heading |