Skip to content

Commit f7f32bd

Browse files
Improve tag suggestions
1 parent 4ac302a commit f7f32bd

File tree

2 files changed

+176
-46
lines changed

2 files changed

+176
-46
lines changed

meta/tags.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ link:
1515
base: SelfClosingTag
1616
attributes:
1717
href: Location of the file being linked to
18-
rel: Kind of file being loaded (eg stylesheet)
18+
rel: Kind of file being loaded (eg `"stylesheet"`)
1919

2020
a:
2121
base: StylableTag
@@ -38,15 +38,17 @@ style:
3838
form:
3939
attributes:
4040
method:
41-
doc: HTTP request method to use
41+
doc: The HTTP request method to use when submitting this form. In almost all cases, you'll want this to be POST.
4242
default: "'POST'"
43+
action: The URL to request to when submitting this form. By default, requests will be sent to the same URL as the current page.
4344

4445
input:
4546
base: SelfClosingTag
4647
attributes:
4748
type: Kind of input control to use (checkbox, radio, date, password, text, etc)
4849
name: Name of the field. Submitted with the form as part of a name/value pair
4950
value: Initial value of the control
51+
placeholder: Placeholder text to use for text inputs. If the field is empty, the placeholder is shown.
5052
readonly:
5153
doc: Include if field is read-only
5254
type: bool
@@ -55,6 +57,30 @@ input:
5557
doc: Include if field is required
5658
type: bool
5759
default: "False"
60+
formmethod: The HTTP request method to use on click if this input is a submit button. Generally, it is preferred to set the `method` attribute on the `<form>` element instead of this.
61+
formaction: The URL to request to on click if this input is a submit button. Generally, it is preferred to set the `action` attribute on the `<form>` element instead of this.
62+
63+
button:
64+
base: StylableTag
65+
attributes:
66+
formmethod: The HTTP request method to use on click. Generally, it is preferred to set the `method` attribute on the `<form>` element instead of this.
67+
formaction: The URL to request to on click. Generally, it is preferred to set the `action` attribute on the `<form>` element instead of this.
68+
69+
table:
70+
base: StylableTag
71+
72+
th:
73+
base: StylableTag
74+
attributes:
75+
scope: 'The area of the table that this heading applies to. Allowed values: `"col"`, `"row"`, `"colgroup"`, `"rowgroup"`'
76+
colspan: The number of columns in the table that this heading spans.
77+
rowspan: The number of rows in the table that this heading spans.
78+
79+
td:
80+
base: StylableTag
81+
attributes:
82+
colspan: The number of columns in the table that this cell spans.
83+
rowspan: The number of rows in the table that this cell spans.
5884

5985
label:
6086
attributes:

0 commit comments

Comments
 (0)