homepage Welcome to WebmasterWorld Guest from 54.166.110.247
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Trying to find the right elements
<p> or <li> just don't feel right
doubleJ




msg:4360134
 6:48 pm on Sep 8, 2011 (gmt 0)

I'm working on recoding a page [66.119.8.164 ] and am trying to figure out the best html elements to use for the following part.
Note that I'm referring to the grouping of information, not this explicit info. You'll see similar information repeated through the whole page.
How To Harvest
Series started: Friday, August 05, 2011
Faith Life Church
Branson, MO
Show/Hide Description

I started with <ul>, but after a while it didn't seem right. One big reason is that, a lot of times, there will be empty <li>. That's not kosher.
I'm currently using <p> for each line, but it just doesn't seem right, either.
I've even considered using <aside>, but I knocked that idea out pretty quickly.
Can you guys think of anything more appropriate? I assume it's <p>, but it just kind of scratches me every time I see it.
JJ

 

lucy24




msg:4360167
 7:51 pm on Sep 8, 2011 (gmt 0)

Why will there be empty <li>? Are you setting up a template that requires the same number of items every time? Why doesn't this apply to paragraphs? Is this a site whose content will be changing frequently? (Weekly, I assume.)

Did you mean that the page consists of a series of items that each follow the same pattern as your example? Title and then various kinds of information? <hx> (some level of header) followed by <p> is certainly one way to do it. In that case you might group each one into a div, with more space between the divs than within them.

Another option is nested lists. That is, an uber-list of all the titles ("How to Harvest") with each one followed by a subsidiary list giving the information.

! I know ! You could make it a table! Just kidding.

Yes, I realize that was more questions than answers. But you get the same thing everywhere. Where does it hurt? What kind of noise is it making? How often?

:: irrelevantly pondering the juxtaposition of "kosher" and name of Christian church ::

doubleJ




msg:4360178
 8:07 pm on Sep 8, 2011 (gmt 0)

Feel free to look at the code.
Note that I'm using <article> for each record.
This information is being pulled from an xml file (rss feed, technically).
Each <article> is an <item> of the feed.
Some fields are empty, because there isn't any data to populate it.
For instance, there is a field for subtitle, but only certain ones have a subtitle.
You'll also notice that some say "Available On-line Only"; another field of the record.
I've considered an over-arching list scheme, but that just seems to be way too much work (nesting and all).
BTW...
Jews are fine with me. It would be difficult to be a Christian without them.
Hehehe...
JJ

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved