View Full Version : Does anyone know?
MTDesigns
02-06-2000, 03:57 AM
Does anyone know if this is a code and if so what does it mean?
<
Someone just sent me some code to correct and I noticed that wherever there was supposed to be a < there was &lt; in it's place.
Also, I've never come across this...instead of just using img src for an image link, using "low src" after img src.[nbsp][nbsp]What is the purpose of this?[nbsp][nbsp]
TIA!
Joi
[This message has been edited by MTDesigns (edited 02-06-00@04:29 am)]
JoeRT
02-06-2000, 04:15 AM
I've noticed FrontPage2000 does this every so often.[nbsp][nbsp]I offer various applets and images from my site, and the most common thing I see when people say they didn't work is all the < are replaced by &lt; (also the > gets replaced by something).[nbsp][nbsp]Not sure how people are cutting and pasting to get that result... I always encourage them to cut and paste into the raw HTML code.
------------------
Joe Torsitano
www.weatherforyou.com (http://www.weatherforyou.com)
www.tiswest.com (http://www.tiswest.com)
MTDesigns
02-06-2000, 05:17 AM
That's so weird... I code everything by hand so I'm not familiar with codes changing. I have Frontpage (was told it would make my life easier), but I gave it a shot and I stopped using it within an hour ;) .[nbsp][nbsp]There's got to be a better way!
Guess I'll stick with this person's original working code and just include any additions to that.[nbsp][nbsp]Much easier ;) .
Thanx!
Joi
Vroomfondel
02-06-2000, 10:32 AM
HTML specs restrict certain characters to be used only in tags. Since tags begin < and end > those characters can't be used for anything else since that confuses the browser into thinking it's a tag. Since those characters might be needed for a legimate reason like 1+1<7 they gave you a way to add them.
< is &lt;
> is &gt;
" is &quot;
etc etc etc
So if your're trying to demonstrate a code snippet like in an HTML tutorial, you can't type [b] since the browser will interpret that tag, it won't print it. So, to get it to print out a [b] tag you'd use &lt;B&gt;
Armand
02-06-2000, 11:06 AM
BTW since no seemed to cover it already, the low scr is usually used to load a smaller file size image to display while waiting for the page and larger file size image to load.
Dan Kaplan
02-06-2000, 11:23 AM
Vroomfondel and Armand provided the answers, but no one provided a rant...[nbsp][nbsp]:)
I'm continually amazed how often I hear a nearly identical concern:[nbsp][nbsp]"My page doesn't work for _____ reason and I'm using FrontPage version _____."[nbsp][nbsp]I'm not sure what's funnier:
1) That I hear this probably 4 or 5 times a day on average.
2) That FrontPage rarely takes the full brunt of the blame it deserves for consistently mangling code.
3) That people continue to recommend FrontPage.
And to cover my butt from a rebuttal, this position in no way reflects my views or opinions of the entity known as Microsoft, only a single piece of garbage they callously call software.[nbsp][nbsp];)
Drivel
PaulKroll
02-06-2000, 01:24 PM
Any book on HTML or any of the decent sites on HTML would tell you that using "<" literally in code when you want to DISPLAY "<" is wrong, and the appropriate code is &lt; (which stands for Less Than, incidentally). If FP2K is changing JoeRT's stuff from < to &lt;, it's doing The Right Thing and those codes would have nothing to do with a page having trouble displaying on any browser. Really. FP2K (and previous FPs) have several incredibly annoying problems w/HTML generation, but this isn't one of them.
(Improper nesting is one: if you have a page that prints to paper fine in Netscape, but runs sentences off the right edge of the paper in IE4 or IE5, check your [b] and [i] tags nesting. If you've cut and pasted text from, say, Word, into an FP page, it rarely gets the tags exactly right.)
(Another is replacing some codes that it SHOULD leave alone with codes it shouldn't. The Copyright symbol and Trademark symbols are &codes;, not single characters, but FP will put in single-character codes for those that only work in IE. And maybe Opera. It's specifically against the HTML spec to do such a thing, but that doesn't stop 'em. :))
(Have I done enough parenthesis today?)
JoeRT
02-06-2000, 02:51 PM
It just depends how people "cut and paste" code.[nbsp][nbsp]I've found some people do it into the 'Normal' screen on FP2000 instead of into the 'HTML' edit screen or using the HTML insert screen from the 'Normal' screen, and that's when these little oddities show up.[nbsp][nbsp]I agree totally that FP2000 is doing what it is supposed to do (and agree it has annoying problems :) ).
------------------
Joe Torsitano
www.weatherforyou.com (http://www.weatherforyou.com)
www.tiswest.com (http://www.tiswest.com)
MTDesigns
02-07-2000, 12:45 AM
I just wanted to say that when I uploaded the html page I was sent with the &lt; and others in the place of the "<" and ">"...all it did was display the html code.[nbsp][nbsp]When I went and changed them, the page at least showed up (incorrectly, but at least it showed up) ;) .
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.