Html & Html5

The World's best Software Development Study Portal

Inline style

We can defines the styling for any element in the same line after using the style attribute following after the tags on the same page.
For example:-

<!DOCTYPE html>




<body style="background-color:pink" >

<p> Let's see here </p>

<p style="color:red; font-size:20px;">I am Parveen Kumar Barak </p>



Output of the program

Let's see here

I am Parveen Kumar Barak

So here we can give our style just by including the style in the same line.

CSS 3 training insitute | Best IT Training classes in Gurgaon | Web Designing Training Institute