How to add a div?
div ~a:[a_class ["firstclass"; "secondclass"]] [txt "Hello!"]
Required parameter: list containing other elements (Details of available elements in type Html_types.flow5).
Optional parameter for attributes "a" (How to set and id, classes or other attributes to HTML elements?).
Download full code
Warning: This third party code may be outdated. Please notify the author is something is broken, or do a pull request on github.
Links
- Modules Eliom_content.Html.D and Eliom_content.Html.F (HTML5 Elements)
- signature Html_sigs.T (Element attributes)