Style tag in HTML

Style tag in HTML

In this article, how your changes such as color, font, size, and more Style your web text with this online font CSS generator. Set the desired style for your text in the control panel and get your code instantly.

Set the background color for a page 

<body>

<h1 style="background-color:red;">Heading</h1>
<p style="background-color:blue;">This is a paragraph.</p>

</body>
<body style="background-color:blue;">

<h1>Heading</h1>
<p>Paragraph.</p>

</body>

Font Size

<h1 style="font-size:200%;">heading</h1>
<p style="font-size:250%;">paragraph.</p>

Text Alignment

<p style="text-align:center;">Center</p>
<h1 style="text-align:center;">Center</h1>

 

2021-10-03