• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is gt??

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy,

 
Pal Sudarshan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmm...
> didn't get posted.

Here is another try at the code
 
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm, I'm not sure. In the context in which it is posted, gt (as well as i) looks like an undeclared variable.

However, I wonder if you found this on some online mock exam or some such thing. In HTML & g t ; (without spaces between them) is interpreted as a greater than sign (>) . It's possible you simply ran into an error in someone's HTML.
[ July 29, 2004: Message edited by: Corey McGlone ]
 
Pal Sudarshan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is a modified example of Prof K's exam. I am not sure if I can post that on there. Is > some kind of escape sequence?
 
Pal Sudarshan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This post is converting '>' to '>'. Is '>' an escape sequence?
 
Pal Sudarshan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is another example:

 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You see, there are special character codes for use in HTML. If you put these characters together, without spaces between them, they'll be converted into something else:

& lt; --> <
& rt; --> >
& amp; --> &

etc. etc. etc.

There are a lot of these special codes for HTML. My guess is that you ran into a code that was poorly formed (like the one's I've written above) and, instead of seeing the character displayed, you saw the messed up sequence of characters.

I'm not certain, but that's what it looks like to me. In your original example, you had "& gt;". Well, if you take out that space, you'd get > instead.

If you can get at it, grab the HTML source for that question and post it here. Perhaps we can decipher what it's supposed to be from that.
 
Pal Sudarshan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank Corey. I think you are correct. The code would only make sense if these were special symbols.
 
Do you pee on your compost? Does this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic