---
title: "init(rawValue:)"
framework: webkit
role: symbol
role_heading: Initializer
path: "webkit/webpage/cssmediatype/init(rawvalue:)"
---

# init(rawValue:)

Create a media type with an arbitrary value.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: The raw value of the media type.

## Discussion

Discussion Use the static type properties for the defined canonical CSS media type options.
