1<?php 2 3namespace ComboStrap; 4 5/** 6 * Class syntax_plugin_combo_hr 7 * [[https://www.w3.org/TR/2011/WD-html5-author-20110809/the-hr-element.html|W3c reference]] 8 * [[https://www.digitala11y.com/separator-role/|Separator role]] 9 * [[https://material.io/components/dividers|Divider]] 10 * 11 * HR is a void element and support both syntax 12 * https://dev.w3.org/html5/html-author/#void-elements-0 13 */ 14class HrTag 15{ 16 17 const TAG = "hr"; 18 19 public static function render(TagAttributes $tagAttributes): string 20 { 21 return $tagAttributes->toHtmlEmptyTag("hr"); 22 } 23 24 public static function getDisplay(): string 25 { 26 return Call::BlOCK_DISPLAY; 27 } 28 29} 30