<cite> Tag Syntax
Rules for coding HTML cite
elements
<body> ... ... phrasing content expected ... <cite>... phrasing content ...</cite> ... </body>
Rules for coding HTML cite
elements
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 cite element for the title of a cited work where phrasing content is expected.
- Begin the cite element with a starting <cite> 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 <cite> tag as appropriate.
- Inside the cite element, between the starting
<cite>
tag and the ending</cite>
tag, code the inner HTML phrasing content for the title of the work that you are citing. - End the cite element with a matching
</cite>
closing tag.
Content Model
Content of the cite element
The content of the cite element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.