skip to main | skip to sidebar

PHP Mysql CSS JavaScript

Thursday, May 22, 2008

Types of CSS Styles

Inline, Embedded, and External Style Sheets

There are three types of CSS styles:

  • inline styles
Inline styles are styles that are written directly in the tag on the document. Inline styles affect only the tag they are applied to.



  • embedded styles
Embedded styles are styles that are embedded in the head of the document. Embedded styles affect only the tags on the page they are embedded in.



  • external styles
External styles are styles that are written in a separate document and then attached to various Web documents. External style sheets can affect any document they are attached to.



CSS best practices recommends that you use primarily external style sheets for styling Web pages so that you get the most benefit of the cascade and inheritance.
Posted by Amit Gadhvi at 4:20 AM

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (3)
    • ►  December (1)
    • ▼  May (2)
      • What are Regular Expressions?
      • Types of CSS Styles

About Me

My photo
Amit Gadhvi
Hello Everyone......
View my complete profile