style

object style extends Tag with Attr

The <strong>HTML <code><style></code> element</strong> contains style information for a document, or part of a document. By default, the style instructions written inside that element are expected to be <a href="/en-US/docs/Web/CSS">CSS</a>. Contains <a href="/en-US/docs/Web/CSS">CSS</a> 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 <a title="The HTML <style> element contains style information for a document, or part of a document. By default, the style instructions written inside that element are expected to be CSS." href="/en-US/docs/Web/HTML/Element/style"><code><style></code></a> element have mainly the purpose of allowing for quick styling, for example for testing purposes.

trait Attr
trait Tag
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

type tagType = tag

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: Object): AttrPair[_style_attr]
@inline
def :=(v: Option[Object]): OptionalAttrPair[_style_attr]
@inline
def apply(mods: TagMod[tag]*): WithAttrs[tagType]