1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why are <li>s better than <div>s for making tabs?

Discussion in 'CSS' started by anthony.zepezauer, Nov 6, 2010.

  1. pagewil

    pagewil Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    There are no real benefits to using <li>'s. I think it's a hangover from the web 1.0 age. Essentially most people end up using them as a block element anyway, which requires stripping the <li> down and removing it's default styling. I have also had inconsistent cross browser problems with them and since then have never used them.

    W.
     
    pagewil, Nov 22, 2010 IP
  2. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #22
    @pagewil ===> Are you serious?... "no real benefits to using <li>'s" <== Did you even read any of the posts on this thread...??

    Do some reading on coding, semantics and usability.

    If you have had inconsistent cross browser problems, it might just be your code!!!

    Don't abandon proper coding habits due to cross browser issues...
     
    Last edited: Nov 27, 2010
    workingsmart, Nov 27, 2010 IP
  3. WebPageMistakes

    WebPageMistakes Active Member

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    60
    #23
    For those who are not including accessiblity in their sites:
    Reference: How many people with disabilities are there in the United States? dol.gov/odep/faqs/people.htm

    That is just the States.

    Anything to make your site more accessible will benefit a huge amount of visitors, add usability to the site and even improve certain aspects of your search engine optimization.
     
    WebPageMistakes, Nov 27, 2010 IP
  4. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #24
    @WebPageMistakes

    It's not about accessibility... It's about SEMANTICS!

    ACCESSIBILITY standards happens to be a bi-product of SEMANTIC MARKUP...
     
    workingsmart, Nov 28, 2010 IP
  5. WebPageMistakes

    WebPageMistakes Active Member

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    60
    #25
    @workingsmart, my reply was directed at those who have an negative attitude towards including accessibility to their site. ;)

    Of course proper semantics is important. But people are negative about that idea too. ;)
     
    WebPageMistakes, Nov 28, 2010 IP
  6. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #26
    true true but the whole topic of conversation started as to why using <li> is better than using <div>... lol...

    Cheers!~ :)
     
    workingsmart, Nov 28, 2010 IP
  7. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #27
    And 100% of those are on DP.
     
    drhowarddrfine, Nov 28, 2010 IP
  8. anjaneya

    anjaneya Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #28
    <div> is anytime better an <li> - come on and take a look at what HTML5 offers - come out of your old world of <li>s and <ul>s :)
     
    anjaneya, Nov 28, 2010 IP
  9. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #29
    Cheers to that, Doc! D'oh!...
     
    workingsmart, Nov 29, 2010 IP
  10. workingsmart

    workingsmart Well-Known Member

    Messages:
    411
    Likes Received:
    12
    Best Answers:
    9
    Trophy Points:
    120
    #30
    Old world? Are you absolutely serious? what does the version of the markup language have to do with the semantics of that language?

    Seriously, ignorance like that is what is ruining the quality of work out there...
     
    workingsmart, Nov 29, 2010 IP