(I couldn't decide if this thread was better suited for this forum or the Accessibility / Usability forum to please bear with me)
Something I have been thinking about lately is the proper way to use p tags with ul tags.
Generally, the way I would introduce an unordered list, or any list for that matter into a paragraph would be to close the paragraph, add the list, and then start a new paragraph, but it just dawned on me that does seem like the correct way of doing this, see example:
From the viewpoint of semantics and common sense, wouldn't i be better to code the ul as a child of the paragraph, like this?HTML Code:<p>This is an interesting paragraph, huh? I'll introduce the list now:</p> <ul> <li>here</li> <li>is a</li> <li>list</li> </ul> <p>Please, let me finish talking about this list</p>
Considering that, technically the list is part of the paragraph? Maybe I am the only person who coded using the former method, but I hope not and I hope that my reasoning, though bereft, is adequate to make my point and perhaps garner some discussion.HTML Code:<p>This is an interesting paragraph, huh? I'll introduce the list now: <ul> <li>here</li> <li>is a</li> <li>list</li> </ul> Please, let me finish talking about this list</p>














Bookmarks