Forum Moderators: open

Message Too Old, No Replies

displaying <br> and ogther in web content

un hidding tags

         

henry0

7:02 pm on Aug 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am preparing a very simple "How to" for my users self content mangement tool
How may I display in my tutorial web page such tags as <br> which by definition are not supposed to be seen?

Hmmm... it shows here so what's the trick

regards

it might be so simple that I cannot figure it out :)

bateman_ap

7:05 pm on Aug 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



use code such as &lt;br&gt;

You can find a list of code if you do a search for "ascii codes" on google

Yidaki

7:07 pm on Aug 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you look at the source code of your post you'll find the answer:

&lt;br&gt; renders <br>

Just encode the tags you want to visualize.

;)

<added>i'm just too slow ...</added>

henry0

7:17 pm on Aug 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I knew I was going to be sorry for that post
thank you

:)

coosblues

6:35 am on Aug 26, 2003 (gmt 0)

10+ Year Member



Although I wasn't looking for the break tag your comments about using the ascii codes have also been what i've been overlooking. Thanks

Mohamed_E

4:47 pm on Aug 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Let me digress to a related topic ...

Many URLs contain an ampersand '&', and work perfectly well in all browsers. When you try to validate the code you get an incomprehensible error message about "entity &xyz not defined". The validator is less forgiving (that's its job!) and requires that you replace the & by its escaped form, '&amp;'.

I believe that this is the commonest question about validation that we see here. Sure stumped me when I started on that path ;)

moonbather

4:45 pm on Aug 27, 2003 (gmt 0)

10+ Year Member



You could make your page in Composer, which comes with the Mozilla browser, if you have that installed.

In Composer's Preview pane, you can type your tags directly, without having to resort to &gt; etc.

SEO_Sucks

4:47 pm on Aug 27, 2003 (gmt 0)

10+ Year Member



why not use image?

Purple Martin

2:01 am on Aug 28, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>> why not use image?

Because an image is an image, it's not text. A picture of an angle-bracket is not an angle-bracket. The correct way of putting text on a web page is to use text on a web page, not pictures of text.

[martine.org...]