Reply to Re: How to avoid a space when doing a line break

Your name:

Reply:


Posted by Jukka K. Korpela on 11/14/05 00:15

"Stefan Mueller" <seekware-remove-@yahoo.com> wrote:

> I'd like to write my html code in a structured way.

Fine.

>
> Therefore I don't like to write
> Please click here: (<a href = "next.html">link</a>)
> --> Output: Please click here: (link)

"Output"? HTML is not a programming language.

Anyway, it's indeed bad practice. "Please click here" is foolish for many
reasons, though less foolish outside link text than inside it. Consider what
it looks like on paper, or in a browsing environment without anything to
click with. It also distracts from the context.

> I prefer
> Please click here: (
> <a href = "next.html">
> link
> </a>
> )
> --> Output: Please click here: ( link )

Why would that be better?

It seems that by "structured" you mean "prettyprinted". In that case, the
rules of HTML constitute a limitation. Spaces are significant as separators.

> Does someone know if there's a tag or something like that to tell the
> browser not to add a space?

You are kidding, aren't you?

> PS: This is only a simplified example which shows my problem. My real 'a
> href' has many lines like onMouseover, onMouseout, ...

It's not simple enough. And the onmouseover stuff most probably causes just
annoyance and distractions. But this does not affect the basic problem.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

[Back to original 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

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