Tidy 502

From Htmlpedia
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: