link e...">

& Amp; and URLs in HTML

Is the URL written in HTML like this one invalid?

<a href="http://www.example.com/test.aspx?ID=34&amp;Type=5">link example</a>

or if the part &amp;will always be <?

+3
source share
2 answers

Please forgive the original editing, it seems I was wrong. From the W3C linked below:

Single ampersands. Although HTML user agents tend to close their eyes, you should never have a single ampersand (&) in your document. You should pay particular attention to URIs that include parameters. For example, your document should contain http://example.org/my-script.php?class=guest&name=user , and not http://example.org/my-script.php?class=guest&name=user .

http://www.w3.org/International/questions/qa-escapes#use

+6

HTML- . "&" , , . , . & copy = 3 © = 3, .

, &amp; URL- HTML

+3

Source: https://habr.com/ru/post/1725723/


All Articles