Re: Markup Validation for URLs with UTM

> Hi, I love your site and use it often to check HTML email code. One area I cannot find help with is the way your validator handles URLs with UTM code. For example, placing the following URL in a link causes 4 Errors and 6 warning(s):
>
> https://www.lps.upenn.edu/about/events/pre-health-post-baccalaureate-programs-virtual-information-session?utm_source=asda&utm_medium=email&utm_campaign=prehealth_asda_email

That link should not cause any problems in a standard HTML document,
when put in quotes.

That is,

<!DOCTYPE html>
<title>Test</title>
<a href="https://www.lps.upenn.edu/about/events/pre-health-post-baccalaureate-programs-virtual-information-session?utm_source=asda&utm_medium=email&utm_campaign=prehealth_asda_email">Test</a>

is perfectly valid.

If you omit the quotes, however, you will get validation issues
because the resulting markup is ambiguous—but, simply put, it’s the
equal signs that cause problems then, still not the ampersands.
(Simply put.)

You should be fine with these links as long as you quote them.

-- 
Jens Oliver Meiert
https://meiert.com/en/ · https://twitter.com/j9t

Received on Saturday, 4 December 2021 09:35:15 UTC