Subscript and Superscript

This is a discussion on Subscript and Superscript within the A Brief History of Cprogramming.com forums, part of the Community Boards category; How To use with html subscript (x1 - 1 is index) and superscript (x2 - x on square)?...

  1. #1
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669

    Question Subscript and Superscript

    How To use with html subscript (x1 - 1 is index) and superscript (x2 - x on square)?
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    -

  3. #3
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    You don't understand? My question is how to write x^2 in the normal way with html.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Would "x& sup2" work for your purposes? Take the space out and you get x&sup2

    -Prelude
    My best code is written with the delete key.

  5. #5
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    Alright, it's working.

    Thank you!
    Last edited by GaPe; 03-06-2002 at 01:25 PM.
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  6. #6
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    H&sub2O .. aww
    H&sup2O

  7. #7
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    You should also be able to use the tags <sub>subscript</sub> and <sup>superscript</sup>

    We are talking about HTML here, tight?
    This is my signature. Remind me to change it.

  8. #8
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    <sup>yes sir!</sup>
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  9. #9
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    ...just that HTML is OFF on this board, eh? And a darn good thing it is Or else we'd have all kinds of messed up pages due to bad code...
    This is my signature. Remind me to change it.

  10. #10
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    yeah, and then you could do: <iframe src="http://www.kiddypornsite.com"></iframe> and everybody would have kiddy porn in their history!

  11. #11
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Brian, that link's broken


  12. #12
    Registered User
    Join Date
    Aug 2001
    Posts
    106
    Umm... Govt,
    It works on mine, just use a little cut 'n paste.
    Persistence always pays off

  13. #13
    back? dbaryl's Avatar
    Join Date
    Oct 2001
    Posts
    597
    Originally posted by dbaryl
    Or else we'd have all kinds of messed up pages due to bad code...
    ...or worse!
    This is my signature. Remind me to change it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. subscript and superscript
    By karanc in forum C Programming
    Replies: 2
    Last Post: 12-27-2001, 09:55 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21