Hyosoka Poipo Hyosoka Poipo - 6 months ago 18
HTML Question

How to write physics equation in HTML

I'm having a problem to represent below physics equation using just HTML tag

enter image description here

So, How to represent above equation into HTML without using mathjax...??
Thanks in advance :)

I have tried this code :

<table>
<tbody>
<tr>
<td rowspan="2">A sin &omega;( t - </td>
<td style="border-bottom:solid 1px">x</td>
<td> )</td>
</tr>
<tr>
<td>v</td>
</tr>

</tbody>
</table>


But I don't know how to make it works

Answer

Hopefully this might set you in the right direction:

<table>
  <tbody>
    <tr>
      <td>y = A sin &omega;</td>
      <td style="font-size:200%">(</td>
      <td>t -</td>
      <td>
        <table>
          <tr>
            <td style="border-bottom:solid 1px black">x</td>
          </tr>
          <tr>
            <td>v</td>
          </tr>
        </table>
      </td>
      <td style="font-size:200%">)</td>
  </tbody>
</table>

There is a lot you can achieve with nested tables.

Comments