fragment type String; size String 8; atom suffix String _s;
meta
(description (
'A\sclass\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(div( (class 'p-data_s)
(h2( 'Hello_s ))
))
))
;
fragment class := λ: DontChain(: cls String). (: (
(.program(
'\sclass=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'An\saction\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(form( (action 'http://site_s) ))
))
;
fragment action := λ: DontChain(: cls String). (: (
(.program(
'\saction=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'A\svalue\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (value 'http://site_s) ))
))
;
fragment value := λ: DontChain(: cls String). (: (
(.program(
'\svalue=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'A\schecked\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(form( (checked()) ))
))
;
fragment checked := λ: DontChain . (: (
(.program(
'\schecked\s
))
) HTMLAttribute);
meta
(description (
'A\shidden\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(form( (hidden()) ))
))
;
fragment hidden := λ: DontChain . (: (
(.program(
'\shidden\s
))
) HTMLAttribute);
meta
(description (
'A\smethod\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(form( (method 'get_s) ))
))
;
fragment method := λ: DontChain(: cls String). (: (
(.program(
'\smethod=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'A\sname\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(div( (name 'data_s)
(h2( 'Hello_s ))
))
))
;
fragment name := λ: DontChain(: cls String). (: (
(.program(
'\sname=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'An\sautocomplete\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (type_ 'text_s) (autocomplete 'default\svalue_s)
))
))
;
fragment autocomplete := λ: DontChain(: cls String). (: (
(.program(
'\sautocomplete=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'A\srequired\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (type_ 'text_s) (required 'yes_s)
))
))
;
fragment required := λ: DontChain(: cls String). (: (
(.program(
'\srequired=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'A\splaceholder\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (type_ 'text_s) (placeholder 'temporary\svalue_s)
))
))
;
fragment placeholder := λ: DontChain(: cls String). (: (
(.program(
'\splaceholder=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'A\stype\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (type_ 'text_s)
))
))
;
fragment type_ := λ: DontChain(: cls String). (: (
(.program(
'\stype=" (.program cls) '"\s
))
) HTMLAttribute);
meta
(description (
'A\ssrc\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (src 'http://site_s)
))
))
;
fragment src := λ: DontChain(: s String). (: (
(.program(
'\ssrc=" (.program s) '"\s
))
) HTMLAttribute);
meta
(description (
'An\sid\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (id 'ident_s)
))
))
;
fragment id := λ: DontChain(: i String). (: (
(.program(
'\sid=" (.program i) '"\s
))
) HTMLAttribute);
meta
(description (
'A\srel\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (rel 'ident_s)
))
))
;
fragment rel := λ: DontChain(: i String). (: (
(.program(
'\srel=" (.program i) '"\s
))
) HTMLAttribute);
meta
(description (
'An\shref\sattribute\scan\sbe\sadded\sto\smost\shtml\selements.
))
(example (
(input( (rel 'http://site_s)
))
))
;
fragment href := λ: DontChain(: a String). (: (
(.program(
'\shref=" (.program a) '"\s
))
) HTMLAttribute);
meta
(description (
'text\sis\sa\stypesafe\splaintext\selement.
))
(example (
(text 'hello_s)
))
;
fragment text := λ: DontChain(: t String). (: (
(.program(
(.program t)
))
) HTMLElement);
meta
(description (
'html\sis\sthe\sdocument\sroot\s.
))
(example (
(html( (text( 'hello_s )) ))
))
;
fragment html := λ: DontChain(: attrs HTMLAttribute...)(: es HTMLElement...). (: (
(.program(
'\n
'\n
(for-arg e in es (.program e))
'\n
))
) HTMLElement);
meta
(description (
'main\sis\sa\ssemantic\shtml\selement.
))
(example (
(main( (text( 'hello_s )) ))
))
;
fragment main := λ: DontChain(: attrs HTMLAttribute...)(: es HTMLElement...). (: (
(.program(
'
(for-arg e in es (.program e)) '
)) ) HTMLElement); meta (description ( 'img\sis\sa\ssemantic\shtml\selement. )) (example ( (img( (text( 'hello_s )) )) )) ; fragment img := λ: DontChain(: attrs HTMLAttribute...). (: ( (.program( '\n )) ) HTMLElement); meta (description ( 'link\sis\sa\ssemantic\shtml\selement. )) (example ( (link( (text( 'hello_s )) )) )) ; fragment link := λ: DontChain(: attrs HTMLAttribute...). (: ( (.program( '\n )) ) HTMLElement); meta (description ( 'section\sis\sa\ssemantic\shtml\selement. )) (example ( (section( (text( 'hello_s )) )) )) ; fragment section := λ: DontChain(: attrs HTMLAttribute...)(: es HTMLElement...). (: ( (.program( '\n (for-arg e in es (.program e)) '\n )) ) HTMLElement); meta (description ( 'code\sis\sa\ssemantic\shtml\selement. )) (example ( (code( (text( 'hello_s )) )) )) ; fragment code := λ: DontChain(: attrs HTMLAttribute...)(: es HTMLElement...). (: ( (.program( '
\n
(for-arg e in es (.program e))
'
\n
))
) HTMLElement);
meta
(description (
'hr\sis\sa\ssemantic\shtml\selement.
))
(example (
(hr( (class 't_s) ))
))
;
fragment hr := λ: DontChain(: attrs HTMLAttribute...)(: es HTMLElement...). (: (
(.program(
'