diff --git a/core/html/html_builder.cpp b/core/html/html_builder.cpp
index 3ff5e5e..e29ca41 100644
--- a/core/html/html_builder.cpp
+++ b/core/html/html_builder.cpp
@@ -51,6 +51,12 @@ HTMLTag *HTMLTag::type(const std::string &val) {
return this;
}
+HTMLTag *HTMLTag::placeholder(const std::string &val) {
+ attrib("placeholder", val);
+
+ return this;
+}
+
HTMLTag *HTMLTag::rel(const std::string &val) {
attrib("rel", val);
diff --git a/core/html/html_builder.h b/core/html/html_builder.h
index 44591ff..4692c9a 100644
--- a/core/html/html_builder.h
+++ b/core/html/html_builder.h
@@ -23,6 +23,7 @@ public:
HTMLTag *value(const std::string &val);
HTMLTag *method(const std::string &val);
HTMLTag *type(const std::string &val);
+ HTMLTag *placeholder(const std::string &val);
HTMLTag *rel(const std::string &val);
HTMLTag *rel_stylesheet();
HTMLTag *charset(const std::string &val);