While minding my own business in another thread, oddz pointed out that my code would be better suited as an Unordered List versus Div's.
It even caused him to say...
(Sounds pretty serious?!)I don't mean to go deathshadow on you or anything but using divs for a list is not semantic.
So, here is a larger slice of my code...
HTML Code:<body> <div id="pageWrapper" class="clearfix"> <div id="pageInner"> <!-- BODY HEADER --> <?php require_once(WEB_ROOT . 'components/body_header.inc.php'); ?> <!-- MIDDLE COLUMN --> <div id="pageMidCol_2"> <!-- ARTICLE LISTING --> <div id="boxArticleIndex"> <h2>Small-Business Articles</h2> <!-- Summary #1 --> <div class="articleSummary"> <h3>Postage Meters Can Save You Money</h3> <div class="image"> <a href="<?php echo BASE_URL; ?>articles/postage-meters-can-save-you-money"> <img src="<?php echo BASE_URL; ?>images/PostageMeter.png" width="170" alt="Picture: Postage Meter. Credit: John Doe, Wikimedia Commons." title="Picture: Postage Meter. Credit: John Doe, Wikimedia Commons." /> </a> </div> <div class="date">Published: December 31, 2011</div> <p>When Office Managers are looking for places to save money, postage probably isn't the first thing that comes to mind. However, just a few trips per week to the Post Office can cost your small-business more in lost productivity and money than you think!</p> <p><a href="<?php echo BASE_URL; ?>articles/postage-meters-can-save-you-money">Learn how Postage Meters can save you Time & Money</a> and help your business focus on more important issues like growing your business!</p> </div> <!-- Summary #2 --> <div class="articleSummary"> <h3>Consider Becoming an S-Corporation</h3> <div class="image"> <a href="<?php echo BASE_URL; ?>articles/consider-becoming-an-s-corporation"> <img src="<?php echo BASE_URL; ?>images/S-Corp.png" width="100" alt="Picture: S-Corp. Credit: John Doe, Wikimedia Commons." title="Picture: S-Corp. Credit: John Doe, Wikimedia Commons." /> </a> </div> <div class="date">Published: December 31, 2011</div> <p>When most people think of "corporations" they think of mega-companies like Wal-mart, Microsoft, General Motors, Citibank, and so. However the reality is that all it takes is one person to become a "corporation", and now might be the right time for your small-business to consider making the switch.</p> <p>Incorporating your small-business isn't nearly as difficult or as expensive as you might think, and it offers benefits that may not be so obvious. <a href="<?php echo BASE_URL; ?>articles/consider-becoming-an-s-corporation">Learn how S-Corporations provide financial benefits and legal protection</a> that you need!</p> </div>
I think oddz may be on to something here, but who knows?!
What do you think could be done to take my code to the next level?
Thanks,
Debbie
Off Topic:
P.S. Is "going deathshadow" on someone a verb or verbal phrase similar to "Googling" something?!![]()





Reply With Quote



is this wrong







Bookmarks