• Skip to main content
  • Skip to search
  • Skip to select language
webdocs.dev
  • 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

  • Play New
  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

Ss.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 21 sept. 2022 by MDN contributors.

webdocs.dev
  • GitHub

Support

  • Report an issue

Our communities

  • Discord

Developers

  • Web Technologies
  • Learn Web Development

Portions of this content are ©1998–2023 by individual contributors. Content available under a Creative Commons license.