<video>

The <video> element embeds video media in a PreTeXt document. It can reference hosted services such as YouTube or Vimeo, or a local/network video file.

A <video> often appears inside a <figure>, but it can also be used wherever video content belongs in the document.

Syntax

Attributes

Attributes for <video>
AttributeRequired?Values
aspect = "…"optionalstring​
component = "…"optionalstring​
end = "…"optionalstring​
href = "…"optionalstring​
label = "…"optionalstring​
margins = "…"optionalstring​
play-at = "…"optional"embed"​"popout"​"select"​
preview = "…"optional"default"​"generic"​string​
source = "…"optionalstring​
start = "…"optionalstring​
vimeo = "…"optionalstring​
width = "…"optionalstring​
xml:id = "…"optionalstring​
youtube = "…"optionalstring​
youtubeplaylist = "…"optionalstring​

Children

The following may appear as children: <title> <track>

Parents

This element may appear as an immediate child of the following elements: <abstract> <acknowledgement> <activity> <algorithm> <answer> <appendix> <article> <aside> <assemblage> <biographical> <biography> <case> <chapter> <claim> <colophon> <computation> <conclusion> <context> <convention> <corollary> <data> <discussion> <example> <exercise> <exploration> <fact> <figure> <gi> <handout> <headnote> <hint> <historical> <identity> <insight> <introduction> <investigation> <lemma> <li> <note> <observation> <opinion> <page> <paragraphs> <postlude> <preface> <prelude> <problem> <project> <proof> <proposition> <question> <remark> <section> <slide> <solution> <statement> <status> <subsection> <subslide> <subsubsection> <suggestion> <task> <technology> <theorem> <warning> <worksheet>

Examples