Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are HTML <cite> Tags Allowed in Lists?

Tags:

html

citations

Are HTML <cite> tags is permitted in lists? Specifically, in lists of works by an author, as might appear on a biography page.

Some documentation says that tags are allowed in "palpable" content, and lists seem to meet that definition.

Are the following examples valid uses of <cite>?

A list of book titles:

<p>His novels include:</p>
<ul>
<li><cite>A Sunny Childhood</cite> (New York: Publisher Name, 1970)</li>
<li><cite>High School Daze</cite> (Chicago, Illinois: Publisher Name, 1970)</li>
</ul>

A list of poem titles:

<p>His poetry includes:</p>
<ul>
<li><cite>Ode to an Oven</cite> (New York: Good Housekeeping, April 13, 1970), page 3</li>
<li><cite>The Old Schoolhouse</cite> (Chicago, Illinois: Chicago Tribune, November, 1970), p 4</li>
</ul>

If tags can't appear in lists, how does one represent a list of an author's works?

like image 823
aksarben Avatar asked Dec 19 '25 10:12

aksarben


1 Answers

There's an easy way to find out: Look at MDN's documentation for li. On that page, there's a box that says

Permitted content: Flow content.

That link takes you to the definition on "flow content" and includes a list of tags that are considered "flow content". <cite> is in that list.

like image 68
Heretic Monkey Avatar answered Dec 21 '25 03:12

Heretic Monkey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!