<br/> Break Tag Syntax
<body> ... ... phrasing content expected ...<br/>... ... </body>
Rules for coding the HTML br 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 br element where phrasing content is expected.
- The br element consists of a standalone <br/> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Include any HTML global attributes on the <br> tag as appropriate.
- Since the br element is a void element, it should always be coded as a self-closing tag terminated with the delimiter string
/>
.
<br/> Content Model
Contents of the <br/> Tag
Content: Empty. Any properties are coded using global attributes.
Since the <br/>
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 delimiter string />
rather than just >
(<br/>
).