package dream-html

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Dream_html.TagSource

HTML tags. Most (standard tags) are constructed by passing a list of attributes and a list of children:

div [id "my-div"] [p [] [txt "Hello"]]

Some (void elements) are constructed only with a list of attributes:

input [required; type_ "email"; name "email-addr"]

Finally, a few (text elements) are constructed with a list of attributes and a single text child:

title [] "Document title"

  script [] {|alert('Careful, this is not escaped :-)');|}
Sourceval null : node list -> node

A tag that will not be rendered in the markup. Useful for containing a bunch of child nodes inside a single node without having to litter the DOM with an actual node. Also may be called 'splicing'.

Tag.null
    [ p [] [txt "This paragraph."];
      p [] [txt "And this paragraph."];
      p []
        [txt "Are spliced directly into the document without a containing node."]
    ]
Sourceval address : std_tag
Sourceval area : void_tag
Sourceval abbr : std_tag
Sourceval article : std_tag
Sourceval aside : std_tag
Sourceval audio : std_tag
Sourceval base : void_tag
Sourceval bdi : std_tag
Sourceval bdo : std_tag
Sourceval blockquote : std_tag
Sourceval body : std_tag
Sourceval button : std_tag
Sourceval canvas : std_tag
Sourceval caption : std_tag
Sourceval cite : std_tag
Sourceval code : std_tag
Sourceval col : void_tag
Sourceval colgroup : std_tag
Sourceval data : std_tag
Sourceval datalist : std_tag
Sourceval dd : std_tag
Sourceval del : std_tag
Sourceval details : std_tag
Sourceval dfn : std_tag
Sourceval dialog : std_tag
Sourceval div : std_tag
Sourceval dl : std_tag
Sourceval dt : std_tag
Sourceval em : std_tag
Sourceval embed : void_tag
Sourceval fieldset : std_tag
Sourceval figcaption : std_tag
Sourceval figure : std_tag
Sourceval form : std_tag
Sourceval h1 : std_tag
Sourceval h2 : std_tag
Sourceval h3 : std_tag
Sourceval h4 : std_tag
Sourceval h5 : std_tag
Sourceval h6 : std_tag
Sourceval head : std_tag
Sourceval header : std_tag
Sourceval hgroup : std_tag
Sourceval html : std_tag

A <!DOCTYPE html> declaration is automatically prefixed when this tag is printed.

Sourceval iframe : std_tag
Sourceval img : void_tag
Sourceval input : void_tag
Sourceval ins : std_tag
Sourceval kbd : std_tag
Sourceval label : std_tag
Sourceval legend : std_tag
Sourceval li : std_tag
Sourceval main : std_tag
Sourceval map : std_tag
Sourceval mark : std_tag
Sourceval menu : std_tag
Sourceval meta : void_tag
Sourceval meter : std_tag
Sourceval nav : std_tag
Sourceval noscript : std_tag
Sourceval object_ : std_tag
Sourceval ol : std_tag
Sourceval optgroup : std_tag
Sourceval option : _ text_tag
Sourceval output : std_tag
Sourceval picture : std_tag
Sourceval pre : std_tag
Sourceval progress : std_tag
Sourceval rp : std_tag
Sourceval rt : std_tag
Sourceval ruby : std_tag
Sourceval samp : std_tag
Sourceval script : _ text_tag

Note that the content of this tag is not escaped.

Sourceval section : std_tag
Sourceval select : std_tag
Sourceval slot : std_tag
Sourceval small : std_tag
Sourceval source : void_tag
Sourceval span : std_tag
Sourceval strong : std_tag
Sourceval style : _ text_tag

Note that the content of this tag is not escaped.

Sourceval sub : std_tag
Sourceval summary : std_tag
Sourceval sup : std_tag
Sourceval table : std_tag
Sourceval tbody : std_tag
Sourceval td : std_tag
Sourceval template : std_tag
Sourceval textarea : _ text_tag
Sourceval tfoot : std_tag
Sourceval th : std_tag
Sourceval thead : std_tag
Sourceval time : std_tag
Sourceval title : _ text_tag
Sourceval tr : std_tag
Sourceval track : void_tag
Sourceval ul : std_tag
Sourceval var : std_tag
Sourceval video : std_tag
Sourceval wbr : void_tag