Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   Poll Markup. Where should I place the question? (http://www.velocityreviews.com/forums/t638857-poll-markup-where-should-i-place-the-question.html)

shapper 10-08-2008 01:22 AM

Poll Markup. Where should I place the question?
 
Hello,

I am creating a poll using the following markup:

<p>Question</p>
<form>
<fieldset>
<ol>
<li><input id="option1" type="radio" name="Answer 1"
value="Answer 1" /></li>
<li><input id="option2" type="radio" name="Answer 2"
value="Answer 2" /></li>
</ol>
</fieldset>
<fieldset class="Action">
<input id="Vote" type="submit" value="Vote" name="Action.Vote"/>
</fieldset>
</form>

I think my markup is ok but should I place the Question inside a
legend in the fieldset?
<form>
<fieldset>
<legend>Question</legend>
<ol>
<li><input id="option1" type="radio" name="Answer 1"
value="Answer 1" /></li>
<li><input id="option2" type="radio" name="Answer 2"
value="Answer 2" /></li>
</ol>
</fieldset>
....

What do you think?

Thanks,
Miguel

Adrienne Boswell 10-08-2008 02:06 PM

Re: Poll Markup. Where should I place the question?
 
Gazing into my crystal ball I observed shapper <mdmoura@gmail.com>
writing in news:61f5c58c-258f-4dbf-ab93-18952022c288
@a19g2000pra.googlegroups.com:

> Hello,
>
> I am creating a poll using the following markup:
>
><p>Question</p>
><form>
> <fieldset>
> <ol>
> <li><input id="option1" type="radio" name="Answer 1"
> value="Answer 1" /></li>
> <li><input id="option2" type="radio" name="Answer 2"
> value="Answer 2" /></li>
> </ol>
> </fieldset>
> <fieldset class="Action">
> <input id="Vote" type="submit" value="Vote" name="Action.Vote"/>
> </fieldset>
></form>
>
> I think my markup is ok but should I place the Question inside a
> legend in the fieldset?
><form>
> <fieldset>
> <legend>Question</legend>
> <ol>
> <li><input id="option1" type="radio" name="Answer 1"
> value="Answer 1" /></li>
> <li><input id="option2" type="radio" name="Answer 2"
> value="Answer 2" /></li>
> </ol>
> </fieldset>
> ...
>
> What do you think?
>
> Thanks,
> Miguel
>


I would maybe do something like:

<form>
<fieldset><legend>Part I</legend>
<label>Question 1</label>
<ol>
<li><input id="option1" type="radio" name="Answer 1" value="Answer
1" /></li>
<li><input id="option2" type="radio" name="Answer 2" value="Answer
2" /></li>
</ol>
<label>Question 2</label>
......
</fieldset>
<fieldset><legend>Part II</legend>
....
</fieldset>
</form>



--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


shapper 10-08-2008 03:21 PM

Re: Poll Markup. Where should I place the question?
 
On Oct 8, 3:06*pm, Adrienne Boswell <arb...@yahoo.com> wrote:
> Gazing into my crystal ball I observed shapper <mdmo...@gmail.com>
> writing in news:61f5c58c-258f-4dbf-ab93-18952022c288
> @a19g2000pra.googlegroups.com:
>
>
>
> > Hello,

>
> > I am creating a poll using the following markup:

>
> ><p>Question</p>
> ><form>
> > *<fieldset>
> > * * <ol>
> > * * * <li><input id="option1" type="radio" name="Answer 1"
> > value="Answer 1" /></li>
> > * * * <li><input id="option2" type="radio" name="Answer 2"
> > value="Answer 2" /></li>
> > * * </ol>
> > *</fieldset>
> > *<fieldset class="Action">
> > * * <input id="Vote" type="submit" value="Vote" name="Action.Vote"/>
> > *</fieldset>
> ></form>

>
> > I think my markup is ok but should I place the Question inside a
> > legend in the fieldset?
> ><form>
> > *<fieldset>
> > *<legend>Question</legend>
> > * * <ol>
> > * * * <li><input id="option1" type="radio" name="Answer 1"
> > value="Answer 1" /></li>
> > * * * <li><input id="option2" type="radio" name="Answer 2"
> > value="Answer 2" /></li>
> > * * </ol>
> > *</fieldset>
> > ...

>
> > What do you think?

>
> > Thanks,
> > Miguel

>
> I would maybe do something like:
>
> <form>
> <fieldset><legend>Part I</legend>
> <label>Question 1</label>
> * <ol>
> * * *<li><input id="option1" type="radio" name="Answer 1" value="Answer
> 1" /></li>
> * * *<li><input id="option2" type="radio" name="Answer 2" value="Answer
> 2" /></li>
> * </ol>
> <label>Question 2</label>
> .....
> </fieldset>
> <fieldset><legend>Part II</legend>
> ...
> </fieldset>
> </form>
>
> --
> Adrienne Boswell at Home
> Arbpen Web Site Design Serviceshttp://www.cavalcade-of-coding.info
> Please respond to the group so others can share


And if the poll has only one question?

Your suggestion makes sense if I would have a questionnaire with many
sections and each section having many questions.

Adrienne Boswell 10-08-2008 04:04 PM

Re: Poll Markup. Where should I place the question?
 
Gazing into my crystal ball I observed shapper <mdmoura@gmail.com>
writing in news:6f6c26e2-f9a4-44a7-aaeb-7ecc9f673b0f@
64g2000hsm.googlegroups.com:

> On Oct 8, 3:06*pm, Adrienne Boswell <arb...@yahoo.com> wrote:
>> Gazing into my crystal ball I observed shapper <mdmo...@gmail.com>
>> writing in news:61f5c58c-258f-4dbf-ab93-18952022c288
>> @a19g2000pra.googlegroups.com:
>>
>>
>>
>> > Hello,

>>
>> > I am creating a poll using the following markup:

>>
>> ><p>Question</p>
>> ><form>
>> > *<fieldset>
>> > * * <ol>
>> > * * * <li><input id="option1" type="radio" name="Answer 1"
>> > value="Answer 1" /></li>
>> > * * * <li><input id="option2" type="radio" name="Answer 2"
>> > value="Answer 2" /></li>
>> > * * </ol>
>> > *</fieldset>
>> > *<fieldset class="Action">
>> > * * <input id="Vote" type="submit" value="Vote" name="Actio

> n.Vote"/>
>> > *</fieldset>
>> ></form>

>>
>> > I think my markup is ok but should I place the Question inside a
>> > legend in the fieldset?
>> ><form>
>> > *<fieldset>
>> > *<legend>Question</legend>
>> > * * <ol>
>> > * * * <li><input id="option1" type="radio" name="Answer 1"
>> > value="Answer 1" /></li>
>> > * * * <li><input id="option2" type="radio" name="Answer 2"
>> > value="Answer 2" /></li>
>> > * * </ol>
>> > *</fieldset>
>> > ...

>>
>> > What do you think?

>>
>> > Thanks,
>> > Miguel

>>
>> I would maybe do something like:
>>
>> <form>
>> <fieldset><legend>Part I</legend>
>> <label>Question 1</label>
>> * <ol>
>> * * *<li><input id="option1" type="radio" name="Answer 1" val

> ue="Answer
>> 1" /></li>
>> * * *<li><input id="option2" type="radio" name="Answer 2" val

> ue="Answer
>> 2" /></li>
>> * </ol>
>> <label>Question 2</label>
>> .....
>> </fieldset>
>> <fieldset><legend>Part II</legend>
>> ...
>> </fieldset>
>> </form>
>>
>> --
>> Adrienne Boswell at Home
>> Arbpen Web Site Design Serviceshttp://www.cavalcade-of-coding.info
>> Please respond to the group so others can share

>
> And if the poll has only one question?
>
> Your suggestion makes sense if I would have a questionnaire with many
> sections and each section having many questions.
>


Then I would not use a fieldset at all. The fieldset element is for
breaking up a form into sections, you are correct. The legend element
is for the legend of the fieldset. The element you are looking for is
the label element.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



All times are GMT. The time now is 12:07 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.