Chapter 27: Selection Menu Controls

Select Menu

The element generates a drop-down menu from which the user can choose an option.

Changing the Size

You can change the size of the selection menu with the size attribute. A size of 0 or 1 displays the standard dropdown style menu. A size greater than 1 will convert the drop-down into a box displaying that many lines, with one
option per line and a scrollbar in order to scroll through the available options.

Read More

Chapter 25: Media Elements

AttributeDetails
widthSets the element’s width in pixels.
heightSets the element’s height in pixels.
Defines resources of the audio or video files
trackDefines the text track for media elements
controlsDisplays controls
autoplayAutomatically start playing the media
loopPlays the media in a repeated cycle
mutedPlays the media without sound
posterAssigns an image to display until a video is loaded

Read More

Chapter 23: Output Element

AttributeDescription
GlobalAttributes that are available to any HTML5 element. For comprehensive documentation of these
attributes see: MDN Global attributes
nameA string representing the name of an output. As a form element, output can be referenced by it’s name
using the document.forms property. This attribute is also used for collecting values on a form submit.
forA space separated list of form element ids (e.g. id=“inp1”> for value is “inp1”) that the output is meant to display calculations for.
formA string representing the
that is associated to the output. If the output is actually outside the ,
this attribute will ensure that the output still belongs to the
and subject to collections and submits of said
.

Read More

Pin It on Pinterest