SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2011
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Difference between internal and external style sheet?

    what is the Difference between internal and external style sheet., how to link external style sheets.,

  2. #2
    SitePoint Member WannaB3's Avatar
    Join Date
    Mar 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    CSS codes where place after the head tag of your html file. Internal Stylesheet will be used to one particular page only. Internal Stylesheet code format is something like this.

    <html>
    <head>
    <title></title>

    <style type="text/css">
    </style>
    </head>
    </html>
    Now External Stylesheet all your css codes will be saved into an extension file ".css" that file contains css codes only no "html,body,head" tags only css. You use External Stylesheet if you want all your pages will be look the same. You link your css file something like this.

    <head>
    <link rel="stylesheet" type="text/css" href="mystyle.css" />
    </head>
    [P.S]
    And I rather to say if you want your css codes to be use by multiple pages without writing them all over again then use External StyleSheet.

  3. #3
    SitePoint Zealot Ethan-27's Avatar
    Join Date
    Jan 2011
    Posts
    152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    External style sheets are used much more than writing it internally. The power of being ale to apply the ext one to more than one page is the main reason.

    If your css is internal it will be written on the same page your HTML layout code and in time it will just look confusing and messy.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,514
    Mentioned
    182 Post(s)
    Tagged
    6 Thread(s)
    There's more information available in the Sitepoint reference that might be useful.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •