Forum Moderators: open
[edited by: aakk9999 at 12:35 pm (utc) on Nov 10, 2013]
With all this talk about lists I found myself wondering if it's ever appropriate to say
<ul>
<li>only-one-item</li>
</ul>
I think yes, it is; I thought of two situations right away and I'm sure there are others.
depending on whether the order of the <p>s most would use can be changed without changing the overall definition/meaning/applicability of the content contained within the entirety of a one-page document or one-page of a document-section as defined by the starting/ending with <body></body>
<p>Today we have tickets available for:</p>
<ul>
<li>Zanzibar</li>
</ul>
<p>Check back tomorrow for more offers!</p>
<p>Things I like about my significant other:</p>
<ul>
<li>First thing</li>
<li>Second thing</li>
<snip>
<li>Ninety-fifth thing</li>
</ul>
<p>Things I like about my s.o.'s mother:</p>
<ul>
<li>Lives in Tierra del Fuego</li>
</ul>
After seeing both ways of coding, does this make you think that it might be good to use a <p> tag inside an <li> tag when you have a sentence(s) inside the <li> tag?
[edited by: JD_Toims at 5:55 pm (utc) on Nov 14, 2013]
How widely do your thoughts sprawl?
With all this talk about lists I found myself wondering if it's ever appropriate to say
<ul>
<li>only-one-item</li>
</ul>