user3702602 user3702602 - 26 days ago 8
HTML Question

Is it good validation to write html table inside html li tag

I have written this code and want to know if this is a good solution to have a

table
inside a
li
tag as I have 2 tables ? And I dont want to show
li
bullet in front of my table.

Here is my code:

<ul id="widget_update">
<li id="Fahrzeuge"><img src="arrow.png" alt="move" width="16" height="16" class="handle" />
<table width="538" cellspacing="0" cellpadding="0" border="0" >
<tr>
<td id="fahrzeuge">

</td>
</tr>
</table>
</li>
<li id="NEWS"><img src="arrow.png" alt="move" width="16" height="16" class="handle" />
<table width="538" cellspacing="0" cellpadding="0" border="0">
<tr>
<td id="news">
</td>
</tr>
</table>
</li>
</ul>

V31 V31
Answer Source

You can use divs in this case which will remove the bullets automatically and no css fixes will be required. Fiddle

<div id="widget_update">
 <div id="Fahrzeuge"><img src="https://lh3.googleusercontent.com/-SWOcB8HK24k/AAAAAAAAAAI/AAAAAAAAAAA/idI3VNCg4KI/photo.jpg" alt="move" width="16" height="16" class="handle" />
    <table width="538" cellspacing="0" cellpadding="0" border="0" >
      <tr>
        <td id="fahrzeuge">

        </td>
    </tr>
  </table>
  </div>
<div id="NEWS"><img src="https://lh3.googleusercontent.com/-SWOcB8HK24k/AAAAAAAAAAI/AAAAAAAAAAA/idI3VNCg4KI/photo.jpg" alt="move" width="16" height="16" class="handle" />
    <table width="538" cellspacing="0" cellpadding="0" border="0">
    <tr>
        <td id="news">          
        </td>
    </tr>
</table>
</div>
</div>