@@ -1224,6 +1224,48 @@ public static function radioList(string $name, $selection = null, array $items =
12241224 return $ hidden . static ::tag ($ tag , $ visibleContent , $ options );
12251225 }
12261226
1227+ /**
1228+ * Generates a div tag. Based on {@see Html::tag()}.
1229+ *
1230+ * @param string $content
1231+ * @param array $options
1232+ * @return string
1233+ *
1234+ * @throws JsonException
1235+ */
1236+ public static function div (string $ content = '' , array $ options = []): string
1237+ {
1238+ return static ::tag ('div ' , $ content , $ options );
1239+ }
1240+
1241+ /**
1242+ * Generates a span tag. Based on {@see Html::tag()}.
1243+ *
1244+ * @param string $content
1245+ * @param array $options
1246+ * @return string
1247+ *
1248+ * @throws JsonException
1249+ */
1250+ public static function span (string $ content = '' , array $ options = []): string
1251+ {
1252+ return static ::tag ('span ' , $ content , $ options );
1253+ }
1254+
1255+ /**
1256+ * Generates a paragraph tag. Based on {@see Html::tag()}.
1257+ *
1258+ * @param string $content
1259+ * @param array $options
1260+ * @return string
1261+ *
1262+ * @throws JsonException
1263+ */
1264+ public static function p (string $ content = '' , array $ options = []): string
1265+ {
1266+ return static ::tag ('p ' , $ content , $ options );
1267+ }
1268+
12271269 /**
12281270 * Generates an unordered list.
12291271 *
0 commit comments