diff --git a/src/Helpers/StringableValue.php b/src/Helpers/StringableValue.php new file mode 100644 index 0000000..cfae9e1 --- /dev/null +++ b/src/Helpers/StringableValue.php @@ -0,0 +1,20 @@ + HTML element is used to draw the reader's attention to the element's + * contents, which are not otherwise granted special importance. This was + * formerly known as the Boldface element, and most browsers still draw the text + * in boldface. However, you should not use for styling text or granting + * importance. If you wish to create boldface text, you should use the CSS + * font-weight property. If you wish to indicate an element is of special + * importance, you should use the element. + * + * Do not confuse the element with the , , or elements. + * The element represents text of certain importance, puts some + * emphasis on the text and the element represents text of certain + * relevance. The element doesn't convey such special semantic information; + * use it only when no others fit. + * + * It is a good practice to use the class attribute on the element in order + * to convey additional semantic information as needed (for example for the first sentence in a paragraph). This makes it easier to + * manage multiple use cases of if your stylistic needs change, without the + * need to change all of its uses in the HTML. + * + * Tag description by Mozilla Contributors licensed under CC-BY-SA 2.5 + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b + */ +class BTag extends AbstractContainerTag +{ + const TAG = 'b'; +} \ No newline at end of file diff --git a/src/Html5/InlineTextSemantics/BdiTag.php b/src/Html5/InlineTextSemantics/BdiTag.php new file mode 100644 index 0000000..f5e13a7 --- /dev/null +++ b/src/Html5/InlineTextSemantics/BdiTag.php @@ -0,0 +1,29 @@ + HTML element tells the browser's bidirectional algorithm to treat + * the text it contains in isolation from its surrounding text. It's + * particularly useful when a website dynamically inserts some text and doesn't + * know the directionality of the text being inserted. + * + * Bidirectional text is text that may contain both sequences of characters that + * are arranged left-to-right (LTR) and sequences of characters that are + * arranged right-to-left (RTL), such as an Arabic quotation embedded in an + * English string. Browsers implement the Unicode Bidirectional Algorithm to + * handle this. In this algorithm, characters are given an implicit + * directionality: for example, Latin characters are treated as LTR while Arabic + * characters are treated as RTL. Some other characters (such as spaces and some + * punctuation) are treated as neutral and are assigned directionality based on + * that of their surrounding characters. + * + * Tag description by Mozilla Contributors licensed under CC-BY-SA 2.5 + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi + */ +class BdiTag extends AbstractContainerTag +{ + const TAG = 'bdi'; +} \ No newline at end of file diff --git a/src/Html5/InlineTextSemantics/BdoTag.php b/src/Html5/InlineTextSemantics/BdoTag.php new file mode 100644 index 0000000..fde7679 --- /dev/null +++ b/src/Html5/InlineTextSemantics/BdoTag.php @@ -0,0 +1,17 @@ + HTML element overrides the current directionality of text, so that + * the text within is rendered in a different direction. + * + * Tag description by Mozilla Contributors licensed under CC-BY-SA 2.5 + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo + */ +class BdoTag extends AbstractContainerTag +{ + const TAG = 'bdo'; +} \ No newline at end of file diff --git a/src/Html5/InlineTextSemantics/BrTag.php b/src/Html5/InlineTextSemantics/BrTag.php new file mode 100644 index 0000000..8dfd5c2 --- /dev/null +++ b/src/Html5/InlineTextSemantics/BrTag.php @@ -0,0 +1,16 @@ + HTML element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant. + * + * Tag description by Mozilla Contributors licensed under CC-BY-SA 2.5 + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br + */ +class BrTag extends AbstractTag +{ + const TAG = 'br'; +} \ No newline at end of file diff --git a/src/Html5/InlineTextSemantics/CiteTag.php b/src/Html5/InlineTextSemantics/CiteTag.php new file mode 100644 index 0000000..814809e --- /dev/null +++ b/src/Html5/InlineTextSemantics/CiteTag.php @@ -0,0 +1,18 @@ + HTML element is used to mark up the title of a cited creative + * work. The reference may be in an abbreviated form according to + * context-appropriate conventions related to citation metadata. + * + * Tag description by Mozilla Contributors licensed under CC-BY-SA 2.5 + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite + */ +class CiteTag extends AbstractContainerTag +{ + const TAG = 'cite'; +} \ No newline at end of file diff --git a/src/Html5/InlineTextSemantics/CodeTag.php b/src/Html5/InlineTextSemantics/CodeTag.php new file mode 100644 index 0000000..b0ed844 --- /dev/null +++ b/src/Html5/InlineTextSemantics/CodeTag.php @@ -0,0 +1,18 @@ + HTML element displays its contents styled in a fashion intended to + * indicate that the text is a short fragment of computer code. By default, the + * content text is displayed using the user agent's default monospace font. + * + * Tag description by Mozilla Contributors licensed under CC-BY-SA 2.5 + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code + */ +class CodeTag extends AbstractContainerTag +{ + const TAG = 'code'; +} \ No newline at end of file diff --git a/src/Html5/InlineTextSemantics/DataTag.php b/src/Html5/InlineTextSemantics/DataTag.php new file mode 100644 index 0000000..e025132 --- /dev/null +++ b/src/Html5/InlineTextSemantics/DataTag.php @@ -0,0 +1,56 @@ + HTML element links a given piece of content with a + * machine-readable translation. If the content is time- or date-related, the + *