Most of our demos use anchor tag (
A) as the player container. The reasoning for
that has been described in the container section of the installation
document. The above example uses the
Benefits of the DIV tag
Its sole purpose is to act as a container element. It can contain any other HTML
tags inside it. The
A tag, for example, is not designed to contain other A tags
inside it. In technical terms it is a block-level element.
Disadvantages of DIV tag
It does not natively support the
href attribute, which Flowplayer uses as
reference to the video file to be played. However you can use the href attribute
href combination and this
breaks the rule of "progressive enhancement".
href attribute in a
DIV the element is not valid HTML markup and
tools such as W3C Validator will throw you an error.
In short, if you want your "splash image" be a complex combination of images, links
and text you should use
Note: Remember to set a
height property for the
DIV tag, otherwise your
player won't be visible because by default the
DIV tag's height is zero.
Here is the HTML setup for this demo. The
DIV element needs not be defined as a
block element explicitly.
The clip being played is not supplied in the
href attribute but is supplied as
the third argument for the