Blog

30 HTML Best Practices for Beginners







1: Always Close Your Tags

Back in the day, it wasn’t uncommon to see things like this:

<li>Some text here.  
<li>Some new text here.  
<li>You get the idea.   

 

Notice how the wrapping UL/OL tag was omitted. Additionally, many chose to leave off the closing LI tags as well. By today’s standards, this is simply bad practice and should be 100% avoided. Always, always close your tags. Otherwise, you’ll encounter validation and glitch issues at every turn.

Better

<ul>  
  <li>Some text here. </li>  
  <li>Some new text here. </li>  
  <li>You get the idea. </li>  
</ul>
Source: nettuts.com
 

 






Leave a Reply

More in howto (35 of 36 articles)


  Torrent is a small file (around few kilobytes) with the suffix .torrent, which contains all the information needed to download ...