diff --git a/src/Tag/Element/A.php b/src/Tag/Element/A.php index e6554a0b..f50da02c 100644 --- a/src/Tag/Element/A.php +++ b/src/Tag/Element/A.php @@ -7,17 +7,19 @@ use Forge\Html\Attribute\Attributes; use Forge\Html\Tag\Tag; +/** + * The HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email + * addresses, locations in the same page, or anything else a URL can address. + * + * @link https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element + */ final class A { /** - * The HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email - * addresses, locations in the same page, or anything else a URL can address. - * - * @link https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element + * The created HTML element. * * @param array $attributes The tag attributes in terms of name-value pairs. These will be rendered as the * attributes of the resulting tag. The values will be HTML-encoded using {@see Attributes::encode()}. - * * See {@see Attributes::render()} for details on how attributes are being rendered. * @param string $content The content of the tag. * diff --git a/src/Tag/Element/Li.php b/src/Tag/Element/Li.php index 1e179acf..8ff2ea66 100644 --- a/src/Tag/Element/Li.php +++ b/src/Tag/Element/Li.php @@ -7,21 +7,23 @@ use Forge\Html\Attribute\Attributes; use Forge\Html\Tag\Tag; +/** + * The
  • HTML element is used to represent an item in a list. + * It must be contained in a parent element: an ordered list (
      ), an unordered list (
        ), or a menu (). + * In menus and unordered lists, list items are usually displayed using bullet points. + * In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter. + * + * @link https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element + */ final class Li { /** - * The
      • HTML element is used to represent an item in a list. - * It must be contained in a parent element: an ordered list (
          ), an unordered list (
            ), or a menu (). - * In menus and unordered lists, list items are usually displayed using bullet points. - * In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter. - * - * @link https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element + * The created
          • HTML element. * * @param array $attributes The tag attributes in terms of name-value pairs. These will be rendered as the * attributes of the resulting tag. The values will be HTML-encoded using {@see Attributes::encode()}. - * @param string $content The content of the tag. - * * See {@see Attributes::render()} for details on how attributes are being rendered. + * @param string $content The content of the tag. * * @return string The generated li tag. * diff --git a/src/Tag/Element/Nav.php b/src/Tag/Element/Nav.php index a3d2ae47..f134211a 100644 --- a/src/Tag/Element/Nav.php +++ b/src/Tag/Element/Nav.php @@ -7,25 +7,36 @@ use Forge\Html\Attribute\Attributes; use Forge\Html\Tag\Tag; +/** + * The