Pages

Saturday, March 3, 2012

Indent Tag in HTML


Assignment No 6.

<HTML>

<HEAD>

<TITLE>INDENTING</TITLE>

</head>

<BODY bgColor=#474C78 text="#FFFFFF" leftmargin="20" topmargin="20">

<H1 align=left>INDENTING A LINE and CREATING SPACES with
&amp;nbsp;<hr></H1>

<H2 align=left>&amp;nbsp;</H2>

<ul>

  <li>These six characters will create a space as if you pressed the space bar.

  </li>
  <li>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;These
    six characters will indent sentence. </li>

  <li>In <STRONG>&amp;nbsp;</STRONG>, the <STRONG>nbsp</STRONG> stands for <STRONG>n</STRONG>on-<STRONG>b</STRONG>reaking <STRONG>sp</STRONG>ace character. <STRONG>&amp;nbsp;</STRONG> is simply known as the <STRONG>space
    character</STRONG>. </li>

  <li> How many of these non-breaking space characters you use in a
    row is up to you. </li>

  <li> Use whatever number suits your purpose. Note that the
    "<STRONG>nbsp</STRONG>" must be in <STRONG>lower case</STRONG> letters. </li>

  <li> We know that browsers read commands inside angle brackets
    (&lt;&nbsp;&nbsp;&nbsp;&nbsp;&gt;). Browsers also read commands between
    the "<STRONG>&amp;</STRONG>" and "<STRONG>;</STRONG>" (that is, between the
    ampersand and semicolon). </li>

  <li>Ampersand commands are used to create special
    characters not found on the keyboard such as the copyright symbol, the trademark
    symbol, the symbol for degrees, etc. All you need to know is that special code
    that goes between the "<STRONG>&amp;</STRONG>" and the "<STRONG>;</STRONG>". </li>

</ul>

<P>Here are some popular symbols and their ampersand commands that work in all
browsers :
<P>
<TABLE cellPadding=10 border=1>
  <TBODY>

  <TR align=left>
    <TD>Non-breaking space
    <TD>&nbsp;
    <TD>&amp;nbsp;

  <TR align=left>
    <TD>Copyright
    <TD>©
    <TD>&amp;copy;

   <TR align=left>
    <TD>Trademark
    <TD>™
    <TD>&amp;#153;

   <TR align=left>
    <TD>Registered
    <TD>®
    <TD>&amp;reg; or &amp;#174;

  <TR align=left>
    <TD>Less Than
    <TD>&lt;
    <TD>&amp;lt;
  <TR align=left>
    <TD>Greater Than
    <TD>&gt;
    <TD>&amp;gt;
   <TR align=left>
    <TD>Ampersand
    <TD>&amp;
    <TD>&amp;amp;
  <TR align=left>
    <TD>Quote
    <TD>"
    <TD>&amp;quot;
  <TR align=middle>
    <TD>Apostrophe
    <TD>'
    <TD>&amp;#39;
  <TR align=left>
    <TD>Cent
    <TD>¢
    <TD>&amp;#162;
   <TR align=left>
    <TD>Euro
    <TD>€
    <TD>&amp;euro; or &amp;#8364;
   <TR align=left>
    <TD>One quarter
    <TD>¼
    <TD>&amp;#188;
   <TR align=left>
    <TD>One half
    <TD>½
    <TD>&amp;#189;
   <TR align=left>
    <TD>Three quarters
    <TD>¾
    <TD>&amp;#190;
  <TR align=left>
    <TD>Degrees
    <TD>°
    <TD>&amp;#176;
   <TR align=left>
    <TD>Larger middle dot
    <TD>•
    <TD>&amp;#149; </TR>

</TBODY>

</TABLE>

<P>

</BODY>

</HTML>

No comments:

Post a Comment