Source Code

This module allows you to write HTML templates for both server and client using only Ceylon.

By: Daniel Rochetti
Packages
ceylon.html
ceylon.html.layout
ceylon.html.serializer
Dependencies
ceylon.collection1.2.0
Aliases
BlockOrInlineSource Codeshared BlockOrInline=> BlockElement|InlineElement

An useful alias to indicate that an element can be either of block or inline type.

CssClassSource Codeshared CssClass=> String|String[]

Alias to represent a collection of CSS classes.

DataContainerSource Codeshared DataContainer=> <String->Object>[]

Useful alias to indicate that a sequence of Entry can be used to add data- prefixed attributes to the element.

HeadElementsSource Codeshared HeadElements=> Title|Meta|Link|Script
NonstandardAttributesSource Codeshared NonstandardAttributes=> <String->Object>[]

Useful alias to indicate that a sequence of Entry can be used to add any nonstandard attribute to the element.

Values
allDoctypesSource Codeshared {Doctype+} allDoctypes
autoSource Codeshared auto auto

Hints to the user agent that the user agent can put the user's needs first without risk to the server, up to and including optimistically downloading the entire resource.

autoDirectionSource Codeshared autoDirection autoDirection

Indicates that the contents of the element are explicitly embedded text, but that the direction is to be determined programmatically using the contents of the element.

blockTagSource Codeshared blockTag blockTag

Block tags are often represented by an opening and a closing tag, with content/children between.

See also Div
buttonSource Codeshared button button

Do nothing. The action must be specified by the user.

checkboxSource Codeshared checkbox checkbox

Defines a checkbox control. The data type is a set of zero or more values from a predefined list.

colorSource Codeshared color color

Defines a color picker control. The data type is an sRGB color with 8-bit red, green, and blue components.

copySource Codeshared copy copy

Indicates that dropping an accepted item on the element will result in a copy of the dragged data.

cssSource Codeshared css css
dateSource Codeshared date date

Defines a date control. The data type is a date (year, month, day) with no time zone.

datetimeSource Codeshared datetime datetime

A date and time control. The data type is a date and time (year, month, day, hour, minute, second, fraction of a second) with the time zone set to UTC.

datetimeLocalSource Codeshared datetimeLocal datetimeLocal

A date and time control. The data type is a date and time (year, month, day, hour, minute, second, fraction of a second) with no time zone.

emailSource Codeshared email email

A text field with an e-mail address or list of e-mail addresses.

emptyTagSource Codeshared emptyTag emptyTag

Empty tags are self-contained. They open and close with no text content nor children.

See also Meta
externalSource Codeshared external external
fileSource Codeshared file file

Defines a file-select field and a 'Browse…' button (for file uploads).

fullWidthLatinSource Codeshared fullWidthLatin fullWidthLatin

Latin-script input in the user's secondary language(s), using full-width characters, with aggressive typing aids intended for human-to-human communications enabled (e.g.text prediction and automatic capitalisation at the start of sentences).

hardSource Codeshared hard hard

Indicates that the text in the textarea is to have newlines added by the user agent so that the text is wrapped when it is submitted.

hiddenSource Codeshared hidden hidden

Defines a hidden input field that can hold any String as value.

html4FramesetSource Codeshared html4Frameset html4Frameset
html4StrictSource Codeshared html4Strict html4Strict
html4TransitionalSource Codeshared html4Transitional html4Transitional
html5Source Codeshared html5 html5
imageSource Codeshared image image

Defines an image as a submit button.

javascriptSource Codeshared javascript javascript
kanaSource Codeshared kana kana

Kana or romaji input, typically hiragana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.

See also katakana
katakanaSource Codeshared katakana katakana

Katakana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.

See also kana
latinSource Codeshared latin latin

Latin-script input in the user's preferred language(s), with some typing aids enabled (e.g. text prediction).

latinNameSource Codeshared latinName latinName

Latin-script input in the user's preferred language(s), with typing aids intended for entering human names enabled (e.g. text prediction from the user's contact list and automatic capitalisation at every word).

latinProseSource Codeshared latinProse latinProse

Latin-script input in the user's preferred language(s), with aggressive typing aids intended for human-to-human communications enabled (e.g. text prediction and automatic capitalisation at the start of sentences).

leftToRightSource Codeshared leftToRight leftToRight

Indicates that the contents of the element are explicitly directionally embedded left-to-right text.

Source Codeshared link link

Indicates that dropping an accepted item on the element will result in a link to the original data.

metadataSource Codeshared metadata metadata

Hints to the user agent that the author does not expect the user to need the media resource, but that fetching the resource metadata (dimensions, track list, duration, etc), and maybe even the first few frames, is reasonable.

monthSource Codeshared month month

A month control. The data type is a date consisting of a year and a month with no time zone.

moveSource Codeshared move move

Indicates that dropping an accepted item on the element will result in the dragged data being moved to the new location.

noneSource Codeshared none none

Hints to the user agent that either the author does not expect the user to need the media resource, or that the server wants to minimize unnecessary traffic.

numberSource Codeshared number number
passwordSource Codeshared password password
radioSource Codeshared radio radio
rangeSource Codeshared range range
resetSource Codeshared reset reset

If the element has a form owner, the element must reset the form owner.

rightToLeftSource Codeshared rightToLeft rightToLeft

Indicates that the contents of the element are explicitly directionally embedded right-to-left text.

Source Codeshared search search
searchInputSource Codeshared searchInput searchInput
softSource Codeshared soft soft

Indicates that the text in the textarea is not to be wrapped when it is submitted (though it can still be wrapped in the rendering).

stylesheetSource Codeshared stylesheet stylesheet
submitSource Codeshared submit submit

If the element has a form owner, the element must submit the form owner

tagSource Codeshared tag tag
telSource Codeshared tel tel
textSource Codeshared text text
timeSource Codeshared time time

A time control. The data type is a time (hour, minute, seconds, fractional seconds) with no time zone.

urlSource Codeshared url url
verbatimSource Codeshared verbatim verbatim

Alphanumeric Latin-script input of non-prose content, e.g. usernames, passwords, product codes.

weekSource Codeshared week week

A week control. The data type is a date consisting of a year and a month with no time zone.

xhtml11Source Codeshared xhtml11 xhtml11
xhtml11BasicSource Codeshared xhtml11Basic xhtml11Basic
xhtml1FramesetSource Codeshared xhtml1Frameset xhtml1Frameset
xhtml1StrictSource Codeshared xhtml1Strict xhtml1Strict
xhtml1TransitionalSource Codeshared xhtml1Transitional xhtml1Transitional
xhtmlDoctypesSource Codeshared {Doctype+} xhtmlDoctypes
Interfaces
BlockElementSource Codeshared BlockElement

Block level elements normally start (and end) with a new line when displayed in a browser.

DocumentSource Codeshared Document

Represents the entire HTML document, this means that it holds the entire configuration and content. Conceptually, it is the root of the document tree.

ElementTypeSource Codeshared ElementType

Enumerated type used to group elements with common behavior about how they are rendered and how they relate to each other. This interface is useful to empower proper and semantic HTML writing by API design, enforcing constraints at compile time:

P {
    Span("Paragraph elements can have inline elements
          as children, like a span..."),
    Div("But not block elements, like a div!") // compilation error
};
InlineElementSource Codeshared InlineElement

Inline elements are normally displayed without starting a new line. Note: if you want to properly customize inline elements' sizing properties you must style them with display: inline-block;

NodeSource Codeshared Node

Represents a single node in the Document tree. This is the base type for the entire Document Object Model. More detailed info can be found at DOM Level 2 Specification

ParentNodeSource Codeshared ParentNode<out Child>
given Child satisfies Node

Marks a Node implementation as a possible parent of other nodes.

SnippetSource Codeshared Snippet<out Result>
given Result satisfies Node

It's basically a factory of Node. Implement this interface to create reusable HTML fragments.

For example a snippet to build a modal dialog, like this:

shared class Dialog(String title, Boolean closeable = true,
             Div body, Button* buttons = {})
         satisfies Snippet<Div> {

     content => Div {
         classNames = "modal";
         Aria {
             role = dialog;
         };
         Div {
             classNames = "modal-header";
             H4(title),
             closeable then Button {
                 "&times;";
                 classNames = "close";
             }
         },
         Div {
             classNames = "modal-body";
             body
         },
         Div {
             classNames = "modal-footer";
             buttons
         }
     }
}
TableElementSource Codeshared TableElement

An special type of element that's available only as Table child nodes.

TextNodeSource Codeshared TextNode

Marks a Node implementation as a text container.

Classes
ASource Codeshared A

Represents a hyperlink, which is used to link from one page to another through the A.href attribute.

Technical details about this element can be found on the Official W3C reference

AbbrSource Codeshared Abbr

Represents an abbreviation or acronym. The optional BaseElement.title attribute may be used to provide an expansion of the abbreviation.

Technical details about this element can be found on the Official W3C reference

AriaSource Codeshared Aria
ArticleSource Codeshared Article

Represents a section of a page that consists of a composition that forms an independent part of a document. This could be a forum post, a magazine or newspaper article for example.

Technical details about this element can be found on the Official W3C reference

AsideSource Codeshared Aside

Represents a section of a page consisting of content that is tangentially related to the content around the aside element, and which could be considered separate from that content.

Technical details about this element can be found on the Official W3C reference

AudioSource Codeshared Audio

Represents a sound or audio stream.

Technical details about this element can be found on the Official W3C reference

BSource Codeshared B

Represents a span of text to be stylistically offset from the normal prose without conveying any extra importance. Examples are key words in a document abstract, product names in a review, or other spans of text whose typical typographic presentation is bold.

Technical details about this element can be found on the Official W3C reference

BaseElementSource Codeshared abstract BaseElement

A default Element implementation that represents a full featured HTML element. It defines all common HTML attributes and event handling.

BlockquoteSource Codeshared Blockquote

Represents a section that is quoted from another source.
Technical details about this element can be found on the Official W3C reference

BodySource Codeshared Body

Represents the main content of the Document.

Technical details about this element can be found on the Official W3C reference

BrSource Codeshared Br

Represents a line break. Must be used only for line breaks that are actually part of the content, don't use in paragraphs.

Technical details about this element can be found on the Official W3C reference

ButtonSource Codeshared Button

Represents a button.

Technical details about this element can be found on the Official W3C reference

ButtonTypeSource Codeshared abstract ButtonType

Controls the behavior of the button when it is activated.

Technical details about this attribute can be found on the Official W3C reference

CharsetMetaSource Codeshared CharsetMeta

Utility class to easily express a charset metadata for the Document.

CiteSource Codeshared Cite

represents the title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script, a film, etc). This can be a work that is being quoted or referenced in detail (i.e. a citation), or it can just be a work that is mentioned in passing.

Technical details about this element can be found on the Official W3C reference

CodeSource Codeshared Code

The code element represents a fragment of computer code.

Technical details about this element can be found on the Official W3C reference

Source Codeshared CssLink

Utility Link extension representing an CSS resource.

DataListSource Codeshared DataList

Represents a set of option elements that represent predefined options for other controls. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden.

Technical details about this element can be found on the Official W3C reference

DdSource Codeshared Dd

Represents the description, definition, or value, part of a term-description group in a description list.

Technical details about this element can be found on the Official W3C reference

DelSource Codeshared Del

Represents a removal from the document. The del elements should not cross implied paragraph boundaries.

Technical details about this element can be found on the Official W3C reference

DfnSource Codeshared Dfn

Represents the defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element.

Technical details about this element can be found on the Official W3C reference

DivSource Codeshared Div

This element has no special meaning, but it's very useful for semantic element grouping as a block. Basically a div represents its children, using CSS classes to mark up semantics common to a group of consecutive elements (like a gallery of image thumbs, for example):

Div {
    classNames = "gallery";
    Div {
        classNames = "thumb";
    },
    // ... more thumbs
    Div {
        classNames = "thumb";
    }
}

If you want to group elements in a inline manner, see Span

Technical details about this element can be found on the Official W3C reference

DlSource Codeshared Dl

Represents a description list consisting of zero or more name (Dt) and value (Dd) groups.

Technical details about this element can be found on the Official W3C reference

DoctypeSource Codeshared abstract Doctype

The document type. It provides information about how the Document shall be defined and serialized.

DropZoneSource Codeshared abstract DropZone

Defines the behavior of a drop zone element.

DtSource Codeshared Dt

Represents the term, or name, part of a term-description group in a description list.

Technical details about this element can be found on the Official W3C reference

ElementSource Codeshared abstract Element

Implementations of this class represents a concrete element used to display formatted content, to define metadata or to import external resources of a Document. This base class defines the id, common to all elements.

EmSource Codeshared Em

Represents stress emphasis of its contents.

Technical details about this element can be found on the Official W3C reference

FieldSetSource Codeshared FieldSet

Represents a group of form controls, optionally described by a FieldSet.legend.

Technical details about this element can be found on the Official W3C reference

Source Codeshared Footer

Represents the “footer” of a document or section of a document. The footer element typically contains metadata about its enclosing section, such as who wrote it, links to related documents, copyright data, etc.

Technical details about this element can be found on the Official W3C reference

FormSource Codeshared Form

Represents a collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing.

Technical details about this element can be found on the Official W3C reference

FormElementSource Codeshared abstract FormElement

Base class for form control elements.

H1Source Codeshared H1

This is the highest level heading.

H2Source Codeshared H2

This is the level two heading.

H3Source Codeshared H3

This is the level three heading.

H4Source Codeshared H4

This is the level four heading.

H5Source Codeshared H5

This is the level 5 heading.

H6Source Codeshared H6

This is the lowest level heading.

Source Codeshared Head

Groups the metadata of the Html document, such as page description, links to resources, stylesheets and scripts.

Source Codeshared Header

Represents the “header” of a document or section of a document. The header element is typically used to group a set of h1–h6 elements to mark up a page's title with its subtitle or tagline.

Technical details about this element can be found on the Official W3C reference

HeadingSource Codeshared abstract Heading

Base class for heading (h1-6) elements. They represent headings and subheadings in a Document. These elements rank in importance according to the number in their name (Heading.level).

Technical details about this element can be found on the Official W3C reference

HiddenInputSource Codeshared HiddenInput
HrSource Codeshared Hr

Represents a paragraph-level thematic break. The 'paragraph-level' bit means between blocks of text, so it shouldn't be used to separate sections of a site.

Technical details about this element can be found on the Official W3C reference

HtmlSource Codeshared Html
ISource Codeshared I

Represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose.

Technical details about this element can be found on the Official W3C reference

ImgSource Codeshared Img

Represents an image. The image given by the Img.src attribute, and the value of the Img.alt attribute is the img element's fallback text content in case the source is not found.

Technical details about this element can be found on the Official W3C reference

InputSource Codeshared Input

Represents a typed data field, usually with a form control to allow the user to edit the data.

Technical details about this element can be found on the Official W3C reference

InputModeSource Codeshared abstract InputMode

Specifies what kind of input mechanism would be most helpful for users entering content into the form input.

Technical details about this attribute can be found on the Official W3C reference

InputTypeSource Codeshared abstract InputType

Controls the data type (and associated control) of the element.

Technical details about this attribute can be found on the Official W3C reference

InsSource Codeshared Ins

Represents an addition to the document. The ins elements should not cross implied paragraph boundaries.

Technical details about this element can be found on the Official W3C reference

KbdSource Codeshared Kbd

Represents user input (typically keyboard input, although it may also be used to represent other input, such as voice commands).

Technical details about this element can be found on the Official W3C reference

LabelSource Codeshared Label

Represents a caption in a user interface. The caption can be associated with a specific form control (through the Label.forControl attribute).

Technical details about this element can be found on the Official W3C reference

LegendSource Codeshared Legend

Represents a caption for the rest of the contents of the parent FieldSet.

Technical details about this element can be found on the Official W3C reference

LiSource Codeshared Li

Represents a list item.

Technical details about this element can be found on the Official W3C reference

Source Codeshared Link

Defines a relationship between the Html and an external resource.

LinkRelSource Codeshared abstract LinkRel

The relationship kind between the current document and the linked document.

LinkTypeSource Codeshared LinkType
MarkSource Codeshared Mark

Represents a run of text in one document marked or highlighted because of its relevance in another context.

Technical details about this element can be found on the Official W3C reference

MediaSource Codeshared abstract Media

Base class for media elements, such as Audio and Video.

MediaPreloadSource Codeshared abstract MediaPreload

Used to specify if and how the author thinks the media should be loaded when the page loads.

Technical details about this attribute can be found on the Official W3C reference

MetaSource Codeshared Meta

The meta element represents various kinds of metadata expressed through pairs of Meta.name and Meta.content.

Technical details about this element can be found on the Official W3C reference

Source Codeshared Nav

Represents navigation for a document. The nav element is a section containing links to other documents or to parts within the current document.

Technical details about this element can be found on the Official W3C reference

OlSource Codeshared Ol

Represents a list of items, where the items (Li) have been intentionally ordered. Also known as numbered-list.

Technical details about this element can be found on the Official W3C reference

OptionSource Codeshared Option

Represents an option in a Select or as part of a list of suggestions in a DataList element.

Technical details about this element can be found on the Official W3C reference

OptionGroupSource Codeshared OptionGroup

Represents a group of Option elements with a common label.

Technical details about this element can be found on the Official W3C reference

PSource Codeshared P

Represents a paragraph. Technical details about this element can be found on the Official W3C reference

PasswordInputSource Codeshared PasswordInput
PreSource Codeshared Pre

Represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements.

Technical details about this element can be found on the Official W3C reference

QSource Codeshared Q

Represents some phrasing content quoted from another source.

Technical details about this element can be found on the Official W3C reference

SSource Codeshared S

Represents contents that are no longer accurate or no longer relevant.

Technical details about this element can be found on the Official W3C reference

SampSource Codeshared Samp

Represents (sample) output from a program or computing system.

Technical details about this element can be found on the Official W3C reference

ScriptSource Codeshared Script

Allows authors to include dynamic script and data blocks in their documents. The element does not represent content for the user.

Technical details about this element can be found on the Official W3C reference

ScriptTypeSource Codeshared abstract ScriptType
SectionSource Codeshared Section

Represents a generic document or application section. In this context, a section is a thematic grouping of content, typically with a Header, possibly with a Footer. Examples include chapters in a book or the various tabbed pages in a tabbed dialog box.

Technical details about this element can be found on the Official W3C reference

SelectSource Codeshared Select

Represents a control for selecting amongst a set of options.

Technical details about this element can be found on the Official W3C reference

SmallSource Codeshared Small

Represents side comments such as small print. It is not intended to be presentational. It is only intended for short runs of text.

Technical details about this element can be found on the Official W3C reference

SourceSource Codeshared Source

Allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own.

SpanSource Codeshared Span

This element has no special meaning, but it's very useful for semantic element grouping in a inline manner. Basically a span represents its children, using CSS classes to mark up semantics common to a group of consecutive elements (like a gallery of image thumbs, for example):

Span {
    "Text";
    classNames = "label";
    Img {
        src = "images/close.png";
    }
}

If you want to group elements in a block, see Div

Technical details about this element can be found on the Official W3C reference

StrongSource Codeshared Strong

Represents strong importance for its contents.

Technical details about this element can be found on the Official W3C reference

StyledElementSource Codeshared abstract StyledElement

Implementations of this class represents an element that can be styled using CSS.

SubSource Codeshared Sub

Represents a subscript of its contents.

Technical details about this element can be found on the Official W3C reference

SupSource Codeshared Sup

Represents a superscript of its contents.

Technical details about this element can be found on the Official W3C reference

TableSource Codeshared Table

Represents tabular data. It is advised against the use of tables for layout purposes (use Div instead).

Technical details about this element can be found on the Official W3C reference

TagSource Codeshared Tag

Represents a tag, which is the actual text representation of a Node. For example: <div></div> is the tag for the Div element.

TagTypeSource Codeshared abstract TagType

The Tag type, which can be blockTag or emptyTag.

TdSource Codeshared Td

Represents a data cell in a Table.

Technical details about this element can be found on the Official W3C reference

TextAreaSource Codeshared TextArea

Represents a multiline plain text edit control for the element's raw value.

Technical details about this element can be found on the Official W3C reference

TextAreaWrapSource Codeshared abstract TextAreaWrap

Specifies how the text in a text area is to be wrapped when submitted in a form.

Technical details about this attribute can be found on the Official W3C reference

TextDirectionSource Codeshared abstract TextDirection

The text directionality. For details, check Official W3C Specification

TextInputSource Codeshared TextInput
ThSource Codeshared Th

Represents a header cell in a Table.

Technical details about this element can be found on the Official W3C reference

TitleSource Codeshared Title

Represents the title node, present only on the head of the document.

TrSource Codeshared Tr

Represents a row of cells (Td) in a Table.

Technical details about this element can be found on the Official W3C reference

USource Codeshared U

Represents a span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in a foreign language.

Technical details about this element can be found on the Official W3C reference

UlSource Codeshared Ul

Represents a list of items (Li), where the order of the items is not important. Also known as bullet-list.

Technical details about this element can be found on the Official W3C reference

VarSource Codeshared Var

Represents a variable. This could be an actual variable in a mathematical expression or programming context, or it could just be a term used as a placeholder in prose.

Technical details about this element can be found on the Official W3C reference

VideoSource Codeshared Video

Represents a video or movie.

Technical details about this element can be found on the Official W3C reference

WbrSource Codeshared Wbr

Represents a line break opportunity. Any content inside must not be considered part of the surrounding text.

Technical details about this element can be found on the Official W3C reference

autoSource Codeshared auto

Hints to the user agent that the user agent can put the user's needs first without risk to the server, up to and including optimistically downloading the entire resource.

autoDirectionSource Codeshared autoDirection

Indicates that the contents of the element are explicitly embedded text, but that the direction is to be determined programmatically using the contents of the element.

blockTagSource Codeshared blockTag

Block tags are often represented by an opening and a closing tag, with content/children between.

buttonSource Codeshared button

Do nothing. The action must be specified by the user.

checkboxSource Codeshared checkbox

Defines a checkbox control. The data type is a set of zero or more values from a predefined list.

colorSource Codeshared color

Defines a color picker control. The data type is an sRGB color with 8-bit red, green, and blue components.

copySource Codeshared copy

Indicates that dropping an accepted item on the element will result in a copy of the dragged data.

cssSource Codeshared css
dateSource Codeshared date

Defines a date control. The data type is a date (year, month, day) with no time zone.

datetimeSource Codeshared datetime

A date and time control. The data type is a date and time (year, month, day, hour, minute, second, fraction of a second) with the time zone set to UTC.

datetimeLocalSource Codeshared datetimeLocal

A date and time control. The data type is a date and time (year, month, day, hour, minute, second, fraction of a second) with no time zone.

emailSource Codeshared email

A text field with an e-mail address or list of e-mail addresses.

emptyTagSource Codeshared emptyTag

Empty tags are self-contained. They open and close with no text content nor children.

externalSource Codeshared external
fileSource Codeshared file

Defines a file-select field and a 'Browse…' button (for file uploads).

fullWidthLatinSource Codeshared fullWidthLatin

Latin-script input in the user's secondary language(s), using full-width characters, with aggressive typing aids intended for human-to-human communications enabled (e.g.text prediction and automatic capitalisation at the start of sentences).

hardSource Codeshared hard

Indicates that the text in the textarea is to have newlines added by the user agent so that the text is wrapped when it is submitted.

hiddenSource Codeshared hidden

Defines a hidden input field that can hold any String as value.

html4FramesetSource Codeshared html4Frameset
html4StrictSource Codeshared html4Strict
html4TransitionalSource Codeshared html4Transitional
html5Source Codeshared html5
imageSource Codeshared image

Defines an image as a submit button.

javascriptSource Codeshared javascript
kanaSource Codeshared kana

Kana or romaji input, typically hiragana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.

katakanaSource Codeshared katakana

Katakana input, using full-width characters, with support for converting to kanji. Intended for Japanese text input.

latinSource Codeshared latin

Latin-script input in the user's preferred language(s), with some typing aids enabled (e.g. text prediction).

latinNameSource Codeshared latinName

Latin-script input in the user's preferred language(s), with typing aids intended for entering human names enabled (e.g. text prediction from the user's contact list and automatic capitalisation at every word).

latinProseSource Codeshared latinProse

Latin-script input in the user's preferred language(s), with aggressive typing aids intended for human-to-human communications enabled (e.g. text prediction and automatic capitalisation at the start of sentences).

leftToRightSource Codeshared leftToRight

Indicates that the contents of the element are explicitly directionally embedded left-to-right text.

Source Codeshared link

Indicates that dropping an accepted item on the element will result in a link to the original data.

metadataSource Codeshared metadata

Hints to the user agent that the author does not expect the user to need the media resource, but that fetching the resource metadata (dimensions, track list, duration, etc), and maybe even the first few frames, is reasonable.

monthSource Codeshared month

A month control. The data type is a date consisting of a year and a month with no time zone.

moveSource Codeshared move

Indicates that dropping an accepted item on the element will result in the dragged data being moved to the new location.

noneSource Codeshared none

Hints to the user agent that either the author does not expect the user to need the media resource, or that the server wants to minimize unnecessary traffic.

numberSource Codeshared number
passwordSource Codeshared password
radioSource Codeshared radio
rangeSource Codeshared range
resetSource Codeshared reset

If the element has a form owner, the element must reset the form owner.

rightToLeftSource Codeshared rightToLeft

Indicates that the contents of the element are explicitly directionally embedded right-to-left text.

Source Codeshared search
searchInputSource Codeshared searchInput
softSource Codeshared soft

Indicates that the text in the textarea is not to be wrapped when it is submitted (though it can still be wrapped in the rendering).

stylesheetSource Codeshared stylesheet
submitSource Codeshared submit

If the element has a form owner, the element must submit the form owner

tagSource Codeshared tag
telSource Codeshared tel
textSource Codeshared text
timeSource Codeshared time

A time control. The data type is a time (hour, minute, seconds, fractional seconds) with no time zone.

urlSource Codeshared url
verbatimSource Codeshared verbatim

Alphanumeric Latin-script input of non-prose content, e.g. usernames, passwords, product codes.

weekSource Codeshared week

A week control. The data type is a date consisting of a year and a month with no time zone.

xhtml11Source Codeshared xhtml11
xhtml11BasicSource Codeshared xhtml11Basic
xhtml1FramesetSource Codeshared xhtml1Frameset
xhtml1StrictSource Codeshared xhtml1Strict
xhtml1TransitionalSource Codeshared xhtml1Transitional