You are here: Re: Display HTML hyperlink code as pure text? « HTML « IT news, forums, messages
Re: Display HTML hyperlink code as pure text?

Posted by Jukka K. Korpela on 09/12/06 06:07

Toby Inkster <usenet200608@tobyinkster.co.uk> scripsit:

> You should probably still keep the <code>...</code> tags though -- as
> this lets browsers know that you're displaying some source code.

Besides, if the page is submitted to automatic translation, then the
translation engine _may_ treat <code> markup as indicating content that
should remain invariant in translation. Some engines do.

> <code>&lt;A HREF="http://www.google.co.uk/"&gt;Google&lt;/A&gt;</code>

Some people would say that these days, one should not use uppercase letters
in element and attribute names, since they are disallowed in XHTML.

The use of &gt; for > is merely a common practice for symmetry. There is no
need to "escape" > in HTML. The days when some browsers got this wrong have
gone long ago.

Anyway, as I have often replied in response to the oft-repeated question
"how do I show HTML code on my page", I'd like to tell the OP that if he had
to ask, he's probably not qualified to give others advice on using HTML
markup on his pages.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация