<object> Tag Syntax
<body> ... ... flow content expected ... <object type="type/subtype" ...> <param name="pname" value="pvalue"/> ... ... flow content ... </object> ... </body>
Rules for coding HTML object
elements
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Include a object element where flow content is expected.
- Begin the object element with a starting <object> 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. - If the object takes parameters, code them with <param> tags inside the object element, between the starting
<object>
tag and the ending</object>
tag. - Optionally include an embed element or other inner HTML flow content inside the object element.
- End the object element with a matching
</object>
closing tag.
Content Model
Content of the object element
The content of the object element can include <param> tags, text content, any tags that can be used in flow content and HTML comments.