HTML reference 1: Random useful bits

 

Open a link in a new window or tab

target=”_blank”

so…

<a href=”http://www.mysite.com” target=”_blank”> Visit Mysite </a>

Tables

<table width=”700″> <tr> <td>

</td> </tr> </table>

Add vertical space between paragraphs or images

<p> &nbsp; </p> <br>

How to show HTML code on a webpage

…so the code appears as text and isn’t executed.

Replace “<” with &lt;
Replace “>” with &gt;
Replace “&” with &amp

Source. More HTML glyph codes here.

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *