Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

HTML style global attribute

BaselineWidely available

Thestyleglobal attribute containsCSS styling declarations to be applied to the element. Note that it is recommended for styles to be defined in a separate file or files. This attribute and the<style> element have mainly the purpose of allowing for quick styling, for example for testing purposes.

Try it

<div>  <p>    Well, I am the slime from your video<br />    Oozin' along on your livin' room floor.  </p></div>

Note:This attribute must not be used to convey semantic information. Even if all styling is removed, a page should remain semantically correct. Typically it shouldn't be used to hide irrelevant information; this should be done using thehidden attribute.

Specifications

Specification
HTML
# the-style-attribute
CSS Style Attributes
# style-attribute

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp