• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Sign in
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • Browser Extensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
  • Feedback
    • Get Firefox help
    • Get web development help
    • Join the MDN community
    • Report a content problem
    • Report a bug
    • Español (es)
    • Français (fr)
    • 日本語 (ja)
    • Polski (pl)
    • Add a translation
  • Edit
  • Advanced
    • History
    • Print this article

StyleSheet.type

  1. Web technology for developers
  2. Web APIs
  3. StyleSheet
  4. StyleSheet.type
Jump to:
  1. Summary
  2. Syntax
  3. Example
  4. Specification

Summary

type specifies the style sheet language for this style sheet.

Syntax

string = stylesheet.type 

Example

 ss.type = "text/css";

Specification

type

Document Tags and Contributors

Tags: 
  • API
  • CSSOM
  • Property
  • Reference
  • Référence(2)
 Contributors to this page: fscholz, teoli, kscarfone, Sheppy, ethertank, Ptak82, Dria
 Last updated by: fscholz, Feb 22, 2015, 12:46:29 PM
Related Topics
  1. CSS Object Model
  2. StyleSheet
  3. Properties
    1. disabled
    2. href
    3. media
    4. ownerNode
    5. parentStyleSheet
    6. title
    7. type
  4. Events
    1. animationstart
    2. animationend
    3. animationiteration
    4. transitionend
  5. Related pages for CSSOM
    1. AnimationEvent
    2. CSS
    3. CSSConditionRule
    4. CSSGroupingRule
    5. CSSKeyframeRule
    6. CSSKeyframesRule
    7. CSSMediaRule
    8. CSSNamespaceRule
    9. CSSPageRule
    10. CSSRule
    11. CSSRuleList
    12. CSSStyleDeclaration
    13. CSSStyleRule
    14. CSSStyleSheet
    15. CSSSupportsRule
    16. CaretPosition
    17. LinkStyle
    18. StyleSheetList
    19. TransitionEvent

Learn the best of web development

Get the latest and greatest from MDN delivered straight to your inbox.

Thanks! Please check your inbox to confirm your subscription.

If you haven’t previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.

MDN Web Docs

MDN

  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • Twitter
  • GitHub
Mozilla

Mozilla

  • About
  • Contact Us
  • Donate
  • Firefox
  • Twitter
  • Facebook
  • Instagram
  • Terms
  • Privacy
  • Cookies

© 2005-2018 Mozilla and individual contributors.

Content is available under these licenses.