< All the HTML Tags >

<source></source>

Video Coming Soon...

  • source

    Tag Type

    inline

    Tag Category

    media

    Specifies multiple media sources for <video> or <audio> elements.

    Viewed

    1

    Examples

    1

Definition:

The HTML <source> tag is used within <audio>, <video>, and <picture> elements to specify multiple media resources, enabling responsive design and format selection.

Attributes like src (the media file URL) and type (the media type) allow browsers to choose the most suitable resource for playback.

Understanding the `<source>` tag is essential for optimizing media content for various devices and formats.

Attributes:

media, sizes, src, srcset, type, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default source Example:

Multiple video source options
<source src="video.mp4" type="video/mp4">

Default source Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…