-2

I have a doubt about this sentence in html:

    <a href="http://www.donate.co?amount=100&amp;destination=MessageTable/">

and this:

     <a href="http://www.donate.co?amount=100&destination=MessageTable/">

This sentence pass paramaters with GET. But I don't undertand because in the first sentence put & amp; and the second sentence put & only.

Thank you,

regards, javi

1 Answers1

2

In HTML & means "Start of an entity / character reference".

&lt; is how you say greater than instead of saying start of tag.

&amp; is how you say ampersand instead of saying start of entity

Quentin
  • 800,325
  • 104
  • 1,079
  • 1,205