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

How to apply or add Internal CSS to your Web page

Here is the Steps to apply Internal Css in your web page for single HTML page:-

1. Internal CSS is used to apply Style to single Html Page.

2.For define CSS in Html page you have to insert tag within the tag.
For Example:

3.In between these
Example:

In the above example we apply font-size to heading tag with help of Internal CSS. We can apply different style to different items with help of Internal CSS in you web page.

4.If you are using
tag in your Html page ,so in these situation we can also use id,class to apply CSS.
Example:using class//
using id//

Example:


   
          Internal CSS
 
h1
{
font-size:250%;
color:red;
}
.small{
color:blue;
font-size:350%;
}
#large{
color:brown;
font-size:450%;
}
 
   
   

Hello Everyone

 

Internal CSS with Class element

Internal CSS with ID element

   



The output is shown below:-





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

Share the post

How to apply or add Internal CSS to your Web page

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×