how to write multiple style in html

HTML
<h1 style="color:blue;text-align:center">This is a header</h1>
<p style="color:green">This is a paragraph.</p>
Source

Also in HTML: