SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Addict obliquegeek's Avatar
    Join Date
    Aug 2004
    Location
    England
    Posts
    340
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lists, or headings and paragraphs?

    I've got a small 'site news' column down one side of the page, as well as two columns in the bottom half of the main section. The basic format of all of the columns is a heading or date followed by a short paragraph of text, then followed by more of the same down the column.

    I was using <h4> and <p> over and over until it started looking like a list. Now I'm thinking that I should be using a list. Any suggestions? Would losing most of the heading tags have any adverse effects?
    "Everything should be as simple as possible,
    but no simpler" - Albert Einstein

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could put the <h4> and <p> elements for each article in an <li> and all of the <li>s in an <ul> or <ol>. There is no reason to remove the <h4> and <p> elements.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you draw things to an extreme, everything starts looking like a list. A sentence is a list of words, etc.

    I think 'site news' is not really a list. Headings followed by paragraphs seems to be the proper way to mark it up, IMHO.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •