Test Menu

  • Commentary
  • Deals
  • Coupons
Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Aug 18, 2011

Using Lists Instead of Paragraph Tags for Lists of Links


Instead of using multiple <p> tags for lists of links use <ul> and <li> tags!

Recently, I was revising and old web page and found some quick and easy improvements to make.

This is better J

<ul class="ul">
<li><a href="page1.htm">Page 1</a> </li>
<li><a href="page2.htm">Page 2</a> </li>
<li><a href="page4.htm">Page 3</a> </li>
<li><a href="page4.htm">Page 4</a> </li>
</ul>



Than this L

<p>
  <font face="Arial, Helvetica, sans-serif" size="2"><a href="page1.htm">Page 1</a></font>
</p>
<p>
  <font face="Arial, Helvetica, sans-serif" size="2"><a href="page2.htm">Page 2</a></font>
</p>
<p>
  <font face="Arial, Helvetica, sans-serif" size="2"><b><a href="page3.htm">Page 3</a></b></font>
</p>
<p>
  <font face="Arial, Helvetica, sans-serif" size="2"><a href="page4.htm">Page 4</a></font>
</p>