9 Media element
Media blocks allow articles to have images, videos and audio.
Multimedia is a large part of why people use the internet, with images being the principal form used. Video can be useful for attracting attention, so Smallsite Design allows for introductory videos, but video, and audio to a lesser degree, take a up lot of storage and bandwidth, which can tax the servers hosting small sites, resulting in buffering or other glitches. They need dedicated high-bandwidth server infrastructure like that provided by YouTube, Vimeo or SoundCloud, so such content is better provided on them and linked to.
Smallsite Design does not allow content embedded from other sites so that those other sites cannot track the site's visitors, which happens even if the media is not played. Unless uploaded to the site, video and audio must be hosted elsewhere and linked to. Smallsite Design also does not allow media to automatically play, so readers are not taken by surprise.
Like most blocks, media blocks require an introduction to guide readers as to what to expect from or look for in the media item. If the media file has an
The sequence element can be used as an alternative to many multimedia presentations because they can result in substantial reductions in storage size and bandwidth. They are suitable replacements for computer instructional videos and meditations. Their advantages are that they are hosted on the site and can be edited by the site owner, even if they had help to create them.
Figure
△A figure element can show an image, and an optional quote.
Most image formats used in websites are able to be displayed in almost all browsers, unlike with video and audio files, so as long as the image file has an entry in MIME types matching its extension, it can be used in a figure.
A quote can be added for display below the image, though since it is quoted, it is only relevant if the image is a picture of the person who said or wrote the quote. It does not have to be original, but be something the person is emphatic about or known for saying. Even better, if the image has a
Unlike other files, images for non-master locale variants, or to replace an existing image, must have the same pixel dimensions. This means that if there is text in the image that might be different for each locale variant, such as for screenshots, the size will have to cater for the most verbose variant.
Linking to figures
△A table or list can be linked to a figure to provide descriptions and other information for its labels.
A table or list and a figure that share the same
When paired, the introductions of both will end with a ⤢ directional link between them, allowing a quick check to see which element each is paired with.
If a figure is linked to, no other table or list can be set to be linked to it, even by using
Alphabetic ordering is typically used to indicate position but without the implied ranking that numbers do. However, for those scripts that do not have an alphabet, numbers are displayed instead for the Alphabetic selection, but that option must still be used to link image labels to lists or tables.
- a.For a table, make the side heading column heading be a key word in the introduction to the figure. For example, if the heading is Area, a suitable introduction is The principal areas of the screen are:
- b.The same introduction can be used for the table or list, but if it is immediately after the
figure , a simple where: will suffice. Note the lack of capitalisation so that it is taken as a flow-on.
This linking allows a
When a figure and the immediately following table or list have the same
Files
△Audio and video elements may require multiple file types to enable a wide spectrum of site visitors to see or hear them.
Like all files, there can be a variant for each locale for media as well, but because not all the codecs that enable playback of video and audio files are available on all peoples' computers, files with each format may be required so that most people have a chance of watching or listening to their content. The mp3 audio format is now out of patent and free to use, so can be used for audio across all platforms, though not as compact as others. While mp4 is a fairly well known video format, it really is a container that might use different codecs for audio and video on different platforms.
This means that multiple files might be needed for audio or video. A browser will try each file from the first until it finds one it can play. In Smallsite Design, each file extension corresponds to a single MIME type, as specified in the MIME types section of the
.svg files are not allowed because they have security risks due to allowing scripts, external fonts and external links. While theoretically these sub-elements could be automatically filtered out on import, mostly that would result in destroying the file's functionality as such sub-elements are often incorporated to provide it. The diagram element provides some basic drawing functionality, but it is not scalable like images are. Otherwise, render the file as raster for use in a figure element.