• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • References
    • Overview / Web Technology

      Web technology reference for developers

    • HTML

      Structure of content on the web

    • CSS

      Code used to describe document style

    • JavaScript

      General-purpose scripting language

    • HTTP

      Protocol for transmitting web resources

    • Web APIs

      Interfaces for building web applications

    • Web Extensions

      Developing extensions for web browsers

    • Web Technology

      Web technology reference for developers

  • Guides
    • Overview / MDN Learning Area

      Learn web development

    • MDN Learning Area

      Learn web development

    • HTML

      Learn to structure web content with HTML

    • CSS

      Learn to style content using CSS

    • JavaScript

      Learn to run scripts in the browser

    • Accessibility

      Learn to make the web accessible to all

  • Plus
    • Overview

      A customized MDN experience

    • AI Help (beta)

      Get real-time assistance and support

    • Updates

      All browser compatibility updates at a glance

    • Documentation

      Learn how to use MDN Plus

    • FAQ

      Frequently asked questions about MDN Plus

  • Blog
  • Play
  • AI Help Beta
  • Log in
  • Sign up for free
  1. Technologies web pour développeurs
  2. Référence Web API
  3. StyleSheet
  4. StyleSheet.type

Cette page a été traduite à partir de l'anglais par la communauté. Vous pouvez également contribuer en rejoignant la communauté francophone sur MDN Web Docs.

In this article

  • Syntaxe
  • Exemple
  • Spécification
  1. CSS Object Model
  2. StyleSheet
  3. Propriétés d'instance
    1. disabled
    2. href
    3. media
    4. ownerNode
    5. parentStyleSheet
    6. title
    7. type
  4. Pages liées à CSSOM
    1. CSS
    2. CSSConditionRule (en-US)
    3. CSSFontFeatureValuesRule (en-US)
    4. CSSFontPaletteValuesRule (en-US)
    5. CSSGroupingRule (en-US)
    6. CSSImportRule (en-US)
    7. CSSKeyframeRule (en-US)
    8. CSSKeyframesRule (en-US)
    9. CSSLayerBlockRule (en-US)
    10. CSSLayerStatementRule (en-US)
    11. CSSMediaRule
    12. CSSNamespaceRule (en-US)
    13. CSSPageRule (en-US)
    14. CSSPropertyRule (en-US)
    15. CSSRule (en-US)
    16. CSSRuleList
    17. CSSStyleDeclaration
    18. CSSStyleRule
    19. CSSStyleSheet (en-US)
    20. CSSSupportsRule (en-US)
    21. CaretPosition (en-US)
    22. MediaList (en-US)
    23. MediaQueryList (en-US)
    24. Screen (en-US)
    25. StyleSheetList

In this article

  • Syntaxe
  • Exemple
  • Spécification

StyleSheet.type

Type spécifie la langue de la feuille de style pour cette feuille de style.

Syntaxe

js

string = stylesheet.type;

Exemple

stylesheet.type = "text/css";

Spécification

type

Found a content problem with this page?

  • Edit the page on GitHub.
  • Report the content issue.
  • View the source on GitHub.
Want to get more involved? Learn how to contribute.

This page was last modified on 3 août 2023 by MDN contributors.

MDN logo

Your blueprint for a better internet.

  • MDN on Twitter
  • MDN on GitHub
  • MDN Blog RSS Feed

MDN

  • About
  • Blog
  • Careers
  • Advertise with us

Support

  • Product help
  • Report an issue

Our communities

  • MDN Community
  • MDN Forum
  • MDN Chat

Developers

  • Web Technologies
  • Learn Web Development
  • MDN Plus
  • Hacks Blog
Mozilla logo
  • Website Privacy Notice
  • Cookies
  • Legal
  • Community Participation Guidelines

Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2023 by individual mozilla.org contributors. Content available under a Creative Commons license.