diff --git a/modules/web/html/html_builder.cpp b/modules/web/html/html_builder.cpp
index 0ff3937e2..1b8f3c0ec 100644
--- a/modules/web/html/html_builder.cpp
+++ b/modules/web/html/html_builder.cpp
@@ -90,6 +90,17 @@ HTMLTag *HTMLTag::cols(const String &val) {
return this;
}
+HTMLTag *HTMLTag::enctype(const String &val) {
+ attrib("enctype", val);
+
+ return this;
+}
+
+HTMLTag *HTMLTag::enctype_multipart_form_data() {
+ attrib("enctype", "multipart/form-data");
+
+ return this;
+}
HTMLTag *HTMLTag::autocomplete(const String &val) {
attrib("autocomplete", val);
diff --git a/modules/web/html/html_builder.h b/modules/web/html/html_builder.h
index e7ee02f27..fabed2324 100644
--- a/modules/web/html/html_builder.h
+++ b/modules/web/html/html_builder.h
@@ -28,9 +28,13 @@ public:
HTMLTag *alt(const String &val);
HTMLTag *inputmode(const String &val);
HTMLTag *list(const String &val);
+
HTMLTag *rows(const String &val);
HTMLTag *cols(const String &val);
+ HTMLTag *enctype(const String &val);
+ HTMLTag *enctype_multipart_form_data();
+
HTMLTag *autocomplete(const String &val);
HTMLTag *autocomplete_off();
diff --git a/modules/web/html/html_builder_bind.cpp b/modules/web/html/html_builder_bind.cpp
index 5c7948e77..938ee1960 100644
--- a/modules/web/html/html_builder_bind.cpp
+++ b/modules/web/html/html_builder_bind.cpp
@@ -108,6 +108,18 @@ Ref<_HTMLTag> _HTMLTag::cols(const String &val) {
return Ref<_HTMLTag>(this);
}
+Ref<_HTMLTag> _HTMLTag::enctype(const String &val) {
+ attrib("enctype", val);
+
+ return Ref<_HTMLTag>(this);
+}
+
+Ref<_HTMLTag> _HTMLTag::enctype_multipart_form_data() {
+ attrib("enctype", "multipart/form-data");
+
+ return Ref<_HTMLTag>(this);
+}
+
Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) {
attrib("autocomplete", val);
@@ -905,9 +917,13 @@ void _HTMLTag::_bind_methods() {
ClassDB::bind_method(D_METHOD("alt", "val"), &_HTMLTag::alt);
ClassDB::bind_method(D_METHOD("inputmode", "val"), &_HTMLTag::inputmode);
ClassDB::bind_method(D_METHOD("list", "val"), &_HTMLTag::list);
+
ClassDB::bind_method(D_METHOD("rows", "val"), &_HTMLTag::rows);
ClassDB::bind_method(D_METHOD("cols", "val"), &_HTMLTag::cols);
+ ClassDB::bind_method(D_METHOD("enctype", "val"), &_HTMLTag::enctype);
+ ClassDB::bind_method(D_METHOD("enctype_multipart_form_data"), &_HTMLTag::enctype_multipart_form_data);
+
ClassDB::bind_method(D_METHOD("autocomplete", "val"), &_HTMLTag::autocomplete);
ClassDB::bind_method(D_METHOD("autocomplete_off"), &_HTMLTag::autocomplete_off);
diff --git a/modules/web/html/html_builder_bind.h b/modules/web/html/html_builder_bind.h
index 71bdda0e4..f2c9480b1 100644
--- a/modules/web/html/html_builder_bind.h
+++ b/modules/web/html/html_builder_bind.h
@@ -33,9 +33,13 @@ public:
Ref<_HTMLTag> alt(const String &val);
Ref<_HTMLTag> inputmode(const String &val);
Ref<_HTMLTag> list(const String &val);
+
Ref<_HTMLTag> rows(const String &val);
Ref<_HTMLTag> cols(const String &val);
+ Ref<_HTMLTag> enctype(const String &val);
+ Ref<_HTMLTag> enctype_multipart_form_data();
+
Ref<_HTMLTag> autocomplete(const String &val);
Ref<_HTMLTag> autocomplete_off();