<a href=""> adding &#34; to URL

时间:2017-09-23 13:35:39

标签: html

I'm trying to link two key phrases from my homepage to the relevant service page of the website - Sounds easy enough, but for some reason it won't work and I'm clueless as to what the problem is.

<a href="http://something-nice.co.uk/service/vintage-rustic-wedding-furniture-hire/">rustic furniture</a>

<a href="http://something-nice.co.uk/service/rustic-table-chair-hire/">tables & chairs</a>

The page I'm trying to do this on can be found here

但出于某种原因,点击链接后,它会进入404页面。 我注意到点击链接后,网址显示为:http://something-nic...ble-chair-hire&#34; &lt; ----使用额外的&#34;

因此,我没有复制URL,而是将其手动输入到href标签中。 但它仍然没有工作!!!

我在这里做错了什么?

2 个答案:

答案 0 :(得分:0)

我喜欢&amp; quot;在href中标记,也许是吗?

答案 1 :(得分:0)

我认为你在“&lt;”之间增加了一个额外的空格和“a”这就是为什么它不起作用。应用此更改后,代码在我的Chrome浏览器中工作正常。

<a href="http://something-nice.co.uk/service/vintage-rustic-wedding-furniture-hire/">rustic furniture

<a href="http://something-nice.co.uk/service/rustic-table-chair-hire/">tables & chairs