Commit acb19b60e78a41b63b6ded69c690be270ea1bb64
1 parent
d9864ea3
add hr helper with and without attributes
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
web/CXM_making_a_web_site.anubis
| ... | ... | @@ -1941,6 +1941,10 @@ public define HTML_Off_Form h6(List(CoreAttrs) attrs, HTML_Off_Form content) |
| 1941 | 1941 | public define HTML_Off_Form h6(List(HTML_Off_Form) content) = html_tag("h6", [], content). |
| 1942 | 1942 | public define HTML_Off_Form h6(HTML_Off_Form content) = html_tag("h6", [], [content]). |
| 1943 | 1943 | |
| 1944 | + // <hr> | |
| 1945 | +public define HTML_Off_Form hr = html_void_tag("hr", []). | |
| 1946 | +public define HTML_Off_Form hr(List(CoreAttrs) attrs) = html_void_tag("hr", attrs). | |
| 1947 | + | |
| 1944 | 1948 | // <img> |
| 1945 | 1949 | public define HTML_Off_Form img(List(CoreAttrs) attrs, String src, String alt) = html_void_tag("img", attrs + [attr("src",src), attr("alt",alt)] ). |
| 1946 | 1950 | public define HTML_Off_Form img(String src) = img([], src, ""). | ... | ... |