Ordered list in HTML (Problem)

The output should be like:

Q1. some text here
Q2. some text here
Q3. some text here
Q4. some text here
Q5. some text here

Can this be done using an ordered list in HTML?
Or is there any other method in HTML?

Replies

  • Manish Goyal
    Manish Goyal
    Gaurav I don't think that you can display text with help of
    ordered list tag
    You can use this
    Q1  some TEXT HERE

    Q2  some text here
  • Mahesh Dahale
    Mahesh Dahale
    
    
    
    

    Numbered list:

    [list] [*]some text here [*]some text here [*]some text here [*]some text here [/list]
  • Sahithi Pallavi
    Sahithi Pallavi
    @ mahesh : I think your code prints like this.

    Numbered list :


    1. some text here
    2. some text here
    3. some text here
    4. some text here

    But, Gaurav asked to print Q1,Q2,...
    Is it possible to print like that?
  • gaurav.bhorkar
    gaurav.bhorkar
    Yes, the output should be

    Q1.
    Q2.

    instead of
    1.
    2.
    3.

    Exactly what Pallavi said.
  • Manish Goyal
    Manish Goyal
    hey Gaurav use like this
    Q1.  some text
    Q2.  some text
    Otherwise I don't think that there will be any other method
  • gaurav.bhorkar
    gaurav.bhorkar
    goyal420
    hey Gaurav use like this
    Q1.  some text
    Q2.  some text
    Otherwise I don't think that there will be any other method
    Ya, I also think that there is no method for this.
  • sookie
    sookie
    Well, if you want to do purely in HTML then it provides following kind of numbering in
  • tag

    • arabic numbers
    • lower alpha
    • upper alpha
    • lower roman
    • upper roman

    but if usage of style is allowed then using CSS it can be done so. Just give it a try.

    😀
  • gaurav.bhorkar
    gaurav.bhorkar
    sookie
    Well, if you want to do purely in HTML then it provides following kind of numbering in
  • tag

    • arabic numbers
    • lower alpha
    • upper alpha
    • lower roman
    • upper roman

    but if usage of style is allowed then using CSS it can be done so. Just give it a try.

    😀
  • Thanks for the suggestion sookie. Currently, I don't know CSS, but I'll consult somebody who knows CSS.
  • wlegend
    wlegend
    Hello,
    I suggest that you use break lines or a table with 0 in border to give a more organised text with ability to use effects, by the way , why you don't use an editor like dreamweaver and do what you wanna do in the design mode like you r doing in Microsoft word.
    good luck
  • Prasad Ajinkya
    Prasad Ajinkya
    Gaurav,
    Look up CSS, I think you can tweak the bullet points (
  • to prepend Q to it).
  • gaurav.bhorkar
    gaurav.bhorkar
    I think CSS is the only option to achieve such output.
  • apple6
    apple6
    The following code explains about the ordered list in HTML. The list items are specified using the tag [*].And, the list items tag i.e,
  • is enclosed in the tag
  • You are reading an archived discussion.

    Related Posts

    how to protect the system? 1 -atch all the security holes 2:-Encrypt important data. 3: Donot run unused daemon(background programmes) 4:-Remove unused setuid/setgid program. 5:-set up loghost How can we...
    Why an drop is always spherical in shape?
    can anybody tell me which is best center for doing DAC course in delhi and noida........and tell me the value in doing cdac course from authorized training institute.
    hello I want to make partitions of my hard disk.could anyone tell me the way to partition my disk without reinstalling the os & any third party tool if it...
    do any one have Millman Halkias INTEGRATED ELECTRONICS solution..i need it really...i got to appear in one comptetive exams next month..i need the solutions of that book. specially.the questions which...