Personal tools
Home Webmaster Resources HTML HTML Help

HTML Help

There is a line break after I use the img tag to display an image.

There are two ways to solve this:

  1. Place a <br/> tag directly after the <img> tag. This trick works in some browser, but I would generally try #2 below.
  2. Remove all white space around the <img> tag. For example, instead of the following:

    <table>
    <tr>
      <td>
        <img src="html_help.jpg" />
      </td>
    </tr>
    </table>

    Try this:

    <table>
    <tr>
      <td><img src="html_help.jpg" /></td>
    </tr>
    </table>

Need assistance with your project? Universal Web Services can help.
Contact us to request a quote.