开发者

Can I word wrap a URL inside a HTML hyperlink

开发者 https://www.devze.com 2022-12-20 17:05 出处:网络
Is there a way to separate the URL name in a hyperlink so i开发者_JS百科t continues onto the next line?In the application I am using I need to use a long URL and the space is limited so it wraps aroun

Is there a way to separate the URL name in a hyperlink so i开发者_JS百科t continues onto the next line? In the application I am using I need to use a long URL and the space is limited so it wraps around to the next line. However, a space is automatically added to it and the link is then broken. Is there a continuation character to tell the application to keep link together or a way to use a shorter variable name that contains the longer actual URL?


No, HTML treats any and all whitespace characters (including multiple series of them) as a single space. You cannot disable this.


Is it absolutely necessary to put the URL as the hyperlink text?

In fact, showing a shorter meaningful description about the URL would be better for the hyperlink text.

meaning descr

I don't the actual requirement, but thought to leave this comment for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号