Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Use of Inline CSS in html | How to apply inline css

Inline CSS

Inline CSS is used to apply style to Html elements.Use Inline CSS within the html tag where you want to apply.

1.Create a html page with .html extension.

2.Put some html tags to apply inline CSS for individual item. For example :here we put a heading tag and a paragraph.

Hello Red

Hello Blue



3.To apply inline CSS we use "Style" attribute within the heading and Paragraph tag different for heading and paragraph tag. like 

Hello Red


Hello Blue



Here the example of Inline CSS:

           
     
     
          <b>Inline CSS</b>
     
     
Inline CSS
       

Hello Red

 
       

Hello Blue

     
     
The output is shown below:
Inline CSS

Please comment for suggestions! Enjoy Learning web Development.
Inline CSS


Learn CSS Methods:How To Apply CSS in Html web page or Website


This post first appeared on The Code Developer, please read the originial post: here

Share the post

Use of Inline CSS in html | How to apply inline css

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×