HTML · Link and navigation attributes

type (attribute)

Declares the MIME type of a linked or embedded resource. Modern HTML often infers it.

Syntax
type="text/css"

Example

Try it

More in this group

as crossorigin download fetchpriority href hreflang imagesizes imagesrcset

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course