Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 08:16 PM
Sean Berry
Guest
 
Posts: n/a
Default Displaying HTML tags in browser

How can I display something like this

<span class="browse">

in a browser without having it interpreted as an html tag.

Is there some other tag to have it treated as text?

Thanks.


  #2  
Old July 20th, 2005, 08:16 PM
Neal
Guest
 
Posts: n/a
Default Re: Displaying HTML tags in browser

On Tue, 6 Jul 2004 09:47:20 -0700, Sean Berry <sean_berry@cox.net> wrote:
[color=blue]
> How can I display something like this
>
> <span class="browse">
>
> in a browser without having it interpreted as an html tag.
>
> Is there some other tag to have it treated as text?
>
> Thanks.
>
>[/color]

Use &name; type entities. http://www.pemberley.com/janeinfo/latin1.html

&lt;span class="browse"&gt;
  #3  
Old July 20th, 2005, 08:16 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Displaying HTML tags in browser

"Sean Berry" <sean_berry@cox.net> wrote:
[color=blue]
>How can I display something like this
><span class="browse">
>in a browser without having it interpreted as an html tag.[/color]
Change < to &lt; (and if you want to be symmetrical change & to &gt;).
[color=blue]
>Is there some other tag to have it treated as text?[/color]

Not any more. There was once upon a time and some browser still
support it, but it's been dropped from the spec for a long time.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 20th, 2005, 08:17 PM
PeterMcC
Guest
 
Posts: n/a
Default Re: Displaying HTML tags in browser

Steve Pugh wrote in
<8vmle05gv6j3a70ee9pn09tj8nuujq4rqp@4ax.com>
[color=blue]
> "Sean Berry" <sean_berry@cox.net> wrote:
>[color=green]
>> How can I display something like this
>> <span class="browse">
>> in a browser without having it interpreted as an html tag.[/color][/color]
[color=blue]
> Change < to &lt; (and if you want to be symmetrical change & to &gt;).[/color]

I know it's only a typo, but for them as don't, it should have read:

Change < to &lt; (and if you want to be symmetrical change > to &gt;).

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.
  #5  
Old July 20th, 2005, 08:17 PM
David Dorward
Guest
 
Posts: n/a
Default Re: Displaying HTML tags in browser

Sean Berry wrote:
[color=blue]
> How can I display something like this
>
> <span class="browse">
>
> in a browser without having it interpreted as an html tag.[/color]

http://www.allmyfaqs.com/faq.pl?Show_HTML_examples


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
  #6  
Old July 20th, 2005, 08:17 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Displaying HTML tags in browser

"PeterMcC" <peter@mccourt.org.uk> wrote:[color=blue]
>Steve Pugh wrote:[color=green]
>>
>> Change < to &lt; (and if you want to be symmetrical change & to &gt;).[/color]
>
>I know it's only a typo, but for them as don't, it should have read:
>
>Change < to &lt; (and if you want to be symmetrical change > to &gt;).[/color]

Whoops, yes. Thanks.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #7  
Old July 20th, 2005, 08:17 PM
Tina Holmboe
Guest
 
Posts: n/a
Default Re: Displaying HTML tags in browser

Sean Berry wrote:
[color=blue]
> How can I display something like this
>
> <span class="browse">
>
> in a browser without having it interpreted as an html tag.
>
> Is there some other tag to have it treated as text?[/color]

Not really, no. What you need to do is encode the < and > as &lt; and
&gt; respectively.

--
- Tina Holmboe Greytower Technologies (UK) Ltd.
tina@greytower.co.uk http://www.greytower.co.uk
[+46] 0708 557 905
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles