Links on multi-lines

A

Andrew Tang

Hi,

Does anyone knows if a hyperlink spanning multiple lines are allowed (i.e.
has a <br /> tag somewhere between the <a></a> tags). There seems to be a
problem with Mac browsers and these kinds of hyperlinks. Could it be an old
browser issue?

Thanks,
Andy
 
J

Jukka K. Korpela

Andrew Tang said:
Does anyone knows if a hyperlink spanning multiple lines are allowed
(i.e. has a <br /> tag somewhere between the <a></a> tags).

By the syntax, they surely are. The <br> tag is inline (text level) markup,
so it's allowed inside <a>.

On the other hand, I try to avoid creating links that may get divided into
several lines (though I don't try that at any cost*)), and still less would
I normally use a forced line break inside link text. In addition to
potential other problems, the user may get confused since he does not
immediately see whether there are two (or more) links or just one. (Using
the text-indent property in CSS may help in some cases.)

*) For a link text like "RFC 2396" inside running text, it's almost always a
good idea to use "RFC&nbsp;2396". I would also try to avoid having just a
short word left to the next line, as in "Introduction to ISO Latin&nbsp;1"
or even "Introduction to ISO&nbsp;Latin&nbsp;1".
There seems
to be a problem with Mac browsers and these kinds of hyperlinks. Could
it be an old browser issue?

Hard to tell without specific data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top