diff --git a/core/html/html_builder.cpp b/core/html/html_builder.cpp
index 670704f..fe5bbc2 100644
--- a/core/html/html_builder.cpp
+++ b/core/html/html_builder.cpp
@@ -1524,6 +1524,28 @@ HTMLBuilder *HTMLBuilder::fa(const String &href, const String &body, const Strin
return this;
}
+HTMLTag *HTMLBuilder::div(const String &cls, const String &id) {
+ HTMLTag *t = div();
+
+ if (cls != "") {
+ t->cls(cls);
+ }
+
+ if (id != "") {
+ t->id(id);
+ }
+
+ return t;
+}
+
+HTMLBuilder *HTMLBuilder::fdiv(const String &body, const String &cls, const String &id) {
+ div(cls, id);
+ w(body);
+ cdiv();
+
+ return this;
+}
+
//Closing tags
HTMLBuilder *HTMLBuilder::ca() {
diff --git a/core/html/html_builder.h b/core/html/html_builder.h
index d218ea0..ef54953 100644
--- a/core/html/html_builder.h
+++ b/core/html/html_builder.h
@@ -307,6 +307,9 @@ public:
HTMLTag *a(const String& href, const String& cls = "", const String& id = "");
HTMLBuilder *fa(const String& href, const String& body, const String& cls = "", const String& id = "");
+ HTMLTag *div(const String& cls, const String& id = "");
+ HTMLBuilder *fdiv(const String& body, const String& cls = "", const String& id = "");
+
//closing tags c prefix means close
//Note simple tags should not have these like
//Note that I might have a few that shouldn't be here, those will be removed as I find them