<wbr/> Tag Syntax
<body> ... ... phrasing content expected ...<wbr/>... ... </body>
Rules for coding the HTML wbr element
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Code the wbr element where phrasing content is expected.
- The wbr element consists of a standalone
<wbr/>tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from thexmlnsattribute on the <html> tag. - Include any HTML global attributes on the <wbr> tag as appropriate.
- Since the
<wbr/>tag is a void element, it should always be coded as a self-closing tag terminated with the delimiter string/>.
<wbr/> Content Model
Contents of the wbr element
Content: Empty. Any properties are coded using global attributes.
Since the <wbr/> tag is a void element, it is not allowed to have any content, even HTML comments and therefore should always be coded as a self-closing standalone tag, ending with the delimiters /> rather than just > (<wbr/>).