Commit e544971ff74f37a24f63bad4e46479341770f567
1 parent
f3786aca
[+] add svg as html tag
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
web/making_a_web_site.anubis
| ... | ... | @@ -1621,6 +1621,7 @@ public define HTML_Off_Form span(Int i) |
| 1621 | 1621 | public define HTML_Off_Form span(List(CoreAttrs) attrs, String s) = html_tag("span", attrs, [text(s)]). |
| 1622 | 1622 | public define HTML_Off_Form span(CoreAttrs attr, String s) = html_tag("span", [attr],[text(s)]). |
| 1623 | 1623 | public define HTML_Off_Form span(String s) = html_tag("span", [], [text(s)]). |
| 1624 | + | |
| 1624 | 1625 | // <strong> |
| 1625 | 1626 | public define HTML_Off_Form strong(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("strong", attrs, content). |
| 1626 | 1627 | public define HTML_Off_Form strong(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("strong", attrs, [content]). |
| ... | ... | @@ -1629,6 +1630,10 @@ public define HTML_Off_Form strong(CoreAttrs attr, HTML_Off_Form content) |
| 1629 | 1630 | public define HTML_Off_Form strong(List(HTML_Off_Form) content) = html_tag("strong", [], content). |
| 1630 | 1631 | public define HTML_Off_Form strong(HTML_Off_Form content) = html_tag("strong", [], [content]). |
| 1631 | 1632 | |
| 1633 | + // <svg> | |
| 1634 | +public define HTML_Off_Form svg(List(CoreAttrs) attrs) = html_tag("svg", attrs, []). | |
| 1635 | + | |
| 1636 | + | |
| 1632 | 1637 | // <table> |
| 1633 | 1638 | public define HTML_Off_Form table(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("table", attrs, content). |
| 1634 | 1639 | public define HTML_Off_Form table(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("table", attrs, [content]). | ... | ... |