Tidy 502

From Htmlpedia
Revision as of 22:26, 26 March 2019 by Mgueury (talk | contribs) (Created page with "== Tidy: Warning: <xx> attribute "yy" lacks value == === Cause: === The element xx has an attribute where yy value is empty. === Example: === <bad><a href=""></bad> <good...")
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Tidy: Warning: <xx> attribute "yy" lacks value

Cause:

The element xx has an attribute where yy value is empty.

Example:

Bad<a href="">
Good<a href="#">

The href attribute on a and area elements must have a value that is a valid URL potentially surrounded by spaces.

Solution:

  • Add a value to the attribute.

References: