Is my inline style correct?

Is my code correct. I always seem to forget inline styles.

<h1 style  color: blue;>

Try removing the space

That is not how you do it.

Inline style is used like this style="property:value; property:value

For example style="width:100%; height:50%;"

1 Like