HTM29


BACK

DESCRIPTION

OUTPUT

SOURCE CODE






DESCRIPTION:

     Lists allow Web authors to organize and indent text in Web pages. Lists could be used to describe components of a product, steps of a procedure, tasks of a plan, and organizational/hierarchical structures. HTML supports three types of lists: unordered, ordered, and definition. The difference between these types comes in their rendering.


..Back to the top..



OUTPUT:


HTM29. FORMATTING VIA LIST TAGS

Text indention via List tags

Here is my Formatted text

Using the DT tag does not indent text
This text is indented by a DT tag
This text is indented by a DT tag
Using the DD indents text once
This text is indented by a DD tag
This text is indented by a DD tag
Nesting the UL and the DD tags indents text twice
    This text is indented by
    a UL tag and a DD tag
    This text is indented by
    a UL tag and a DD tag

            This text is indented by
            nesting five UL tags


..Back to the top..



SOURCE CODE:



<HTML>
<HEAD>
<TITLE>HTM29. FORMATTING VIA LIST TAGS</TITLE></HEAD>
<BODY>
<H1>Text indention via List tags</H1>
<H4>Here is my Formatted text</H4>
<!--Using the DT tag does not indent text-->
<FONT COLOR = red>Using the DT tag does not indent text</FONT>
<DT>This text is indented by a DT tag
<DT>This text is indented by a DT tag
<!-- Using the DD tag indents text once-->
<BR><FONT COLOR = green>Using the DD indents text once</FONT>
<DD>This text is indented by a DD tag
<DD>This text is indented by a DD tag
<!-- Nesting the UL and the DD tags indents text twice-->
<BR><FONT COLOR = blue>Nesting the UL and the DD tags indents text twice </FONT>
<UL>
<DD>This text is indented by
<DD>a UL tag and a DD tag
<DD>This text is indented by
<DD>a UL tag and a DD tag
</UL>
<!-- Nesting the UL tag 5 times indents text 5 times-->
<P>
<UL><UL><UL><UL><UL>
This text is indented by<BR>
nesting five UL tags
</UL></UL></UL</UL></UL>
</BODY>
</HTML>


..Back to the top..