December 12, 2023
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import { basicTag, selfClosingTag, Tag } from "https://esm.town/v/xkonti/htmlBuilder";
import { HtmlContents, TagDescriptor } from "https://esm.town/v/xkonti/htmlInterfaces";
// CONTENT SECTIONING
export function addressTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("address", content);
}
export function articleTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("article", content);
}
export function asideTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("aside", content);
}
export function footerTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("footer", content);
}
export function headerTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("header", content);
}
export function h1Tag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("h1", content);
}
export function h2Tag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("h2", content);
}
export function h3Tag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("h3", content);
}
export function h4Tag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("h4", content);
}
export function h5Tag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("h5", content);
}
export function h6Tag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("h6", content);
}
export function hgroupTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("hgroup", content);
}
export function mainTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("main", content);
}
export function navTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("nav", content);
}
export function sectionTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("section", content);
}
export function searchTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("search", content);
}
// TEXT CONTENT
export function blockquoteTag(cite: string | undefined, content: HtmlContents | undefined = undefined): Tag {
return basicTag("blockquote", content)
.setAttribute("cite", cite);
}
export function ddTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("dd", content);
}
export function divTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("div", content);
}
export function dtTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("dt", content);
}
export function figcaptionTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("figcaption", content);
}
export function figureTag(content: HtmlContents | undefined = undefined): Tag {
return basicTag("figure", content);
}
export function hrTag(): Tag {
return selfClosingTag("hr");
}
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
December 12, 2023