Question:

Help, HTML Question!!?

by  |  earlier

0 LIKES UnLike

1) Write the HTML to create the following indentation effect:

Apple pie,

pudding,

and pancake,

All begin with an A.

I know It's related with <DD> and <DT> tags and I could make the first two sentence right, not the last two....

2)How will you nest an unordered list inside an ordered list?

 Tags:

   Report

1 ANSWERS


  1. 1) Because yahoo answers blocks many spaces as one, I can&#039;t see the indentation effect you want, but try this:

    &lt;dl&gt;

    &lt;dt&gt; Apple pie,&lt;/dt&gt;

    &lt;dt&gt; Pudding,&lt;/dt&gt;

    &lt;dt&gt; and pancake&lt;/dt&gt;

    &lt;dd&gt; All begin with an A&lt;/dd&gt;

    &lt;/dl&gt;

    Just adjust the &lt;dd&gt; and &lt;dt&gt; tags as you want until you get the effect you want.

    2)Simple:

    &lt;ol&gt;

    &lt;li&gt; Numbered element &lt;/li&gt;

    &lt;li&gt;

    &lt;ul&gt;

    &lt;li&gt; Non ordered element &lt;/li&gt;

    &lt;li&gt; Other non ordered list &lt;/li&gt;

    &lt;/ul&gt;

    &lt;/li&gt;

    &lt;/li&gt; Other numbered element &lt;/li&gt;

    &lt;/ol&gt;

    To nest a list inside anotherone, just put the second list&#039;s HTML inside a &lt;li&gt; tag on the first list.

You're reading: Help, HTML Question!!?

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.