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

How to Include CSS in HTML Document?

CSS stands for Cascading Style Sheets and the language describes HTML tags, furthermore, it eliminates the repetition in making HTML tags stylish. Moreover, it would be better to give examples that can make you better understand.
To include CSS styles tag is used.
Here I will explain using heading tag h2
Heading tag h2

This is the first h2  Green Heading


 For the second an third we have to repeat the same

This is the second h2  green heading. 


This is the third h2  green heading. 


The out of the above three statements would be:

This is the first h2 green heading.

This is the second h2 green heading.

This is the third h2 green heading.

____________________________________________________________________

Using style tag we can write


And only the statements within the tags

This is the first h2 green heading which uses CSS


This is the second h2 green heading which uses CSS


This is the third  h2 green heading which uses CSS


And the output will be:

This is the first h2 green heading that uses CSS.

This is the second h2 green heading that uses CSS.

This is the third h2 green heading that uses CSS.

So, you can see that we do not need to write style="color: green; in every tag so repetition and comlexity is eliminated .




This post first appeared on INTERNET MARKETING AND BLOGGING, please read the originial post: here

Share the post

How to Include CSS in HTML Document?

×

Subscribe to Internet Marketing And Blogging

Get updates delivered right to your inbox!

Thank you for your subscription

×